Table of Contents

Class LibrarySyncStatus

Namespace
EncDotNet.S100.Collections.Library
Assembly
EncDotNet.S100.Collections.dll

Where a synced source stands after its last sync.

public sealed record LibrarySyncStatus : IEquatable<LibrarySyncStatus>
Inheritance
LibrarySyncStatus
Implements
Inherited Members

Constructors

LibrarySyncStatus(DateTimeOffset, int, int, int, int, int, long?, bool)

Where a synced source stands after its last sync.

public LibrarySyncStatus(DateTimeOffset SyncedAt, int Local, int Listed, int Downloaded, int Pruned, int Failed, long? NeededBytes = null, bool PruneSkipped = false)

Parameters

SyncedAt DateTimeOffset

When the sync finished.

Local int

How many of the source's objects have a current local copy.

Listed int

How many objects the source lists (not cancelled).

Downloaded int

How many objects this sync downloaded.

Pruned int

How many local copies this sync deleted (no longer listed, or cancelled).

Failed int

How many downloads failed.

NeededBytes long?

When the sync stopped because it would download more than MaxBytes, how much it needed; otherwise null.

PruneSkipped bool

True when copies were not pruned because the listing was not complete and fresh (the service was unreachable, or the source was capped).

Properties

Downloaded

How many objects this sync downloaded.

public int Downloaded { get; init; }

Property Value

int

Failed

How many downloads failed.

public int Failed { get; init; }

Property Value

int

Listed

How many objects the source lists (not cancelled).

public int Listed { get; init; }

Property Value

int

Local

How many of the source's objects have a current local copy.

public int Local { get; init; }

Property Value

int

NeededBytes

When the sync stopped because it would download more than MaxBytes, how much it needed; otherwise null.

public long? NeededBytes { get; init; }

Property Value

long?

PruneSkipped

True when copies were not pruned because the listing was not complete and fresh (the service was unreachable, or the source was capped).

public bool PruneSkipped { get; init; }

Property Value

bool

Pruned

How many local copies this sync deleted (no longer listed, or cancelled).

public int Pruned { get; init; }

Property Value

int

SyncedAt

When the sync finished.

public DateTimeOffset SyncedAt { get; init; }

Property Value

DateTimeOffset