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
SyncedAtDateTimeOffsetWhen the sync finished.
LocalintHow many of the source's objects have a current local copy.
ListedintHow many objects the source lists (not cancelled).
DownloadedintHow many objects this sync downloaded.
PrunedintHow many local copies this sync deleted (no longer listed, or cancelled).
FailedintHow many downloads failed.
NeededByteslong?When the sync stopped because it would download more than MaxBytes, how much it needed; otherwise null.
PruneSkippedboolTrue 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
Failed
How many downloads failed.
public int Failed { get; init; }
Property Value
Listed
How many objects the source lists (not cancelled).
public int Listed { get; init; }
Property Value
Local
How many of the source's objects have a current local copy.
public int Local { get; init; }
Property Value
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
Pruned
How many local copies this sync deleted (no longer listed, or cancelled).
public int Pruned { get; init; }
Property Value
SyncedAt
When the sync finished.
public DateTimeOffset SyncedAt { get; init; }