Class SecomSyncPolicy
- Namespace
- EncDotNet.S100.Collections.Library
- Assembly
- EncDotNet.S100.Collections.dll
Sync rules for SECOM services (issue #807): every listed object that is not cancelled is kept downloaded, in the service's managed folder.
public sealed class SecomSyncPolicy : ILibrarySyncPolicy
- Inheritance
-
SecomSyncPolicy
- Implements
- Inherited Members
Methods
CanPrune(SourceIndex)
True when index lists everything the source offers
now (complete and fresh), so copies it does not list may be pruned.
public bool CanPrune(SourceIndex index)
Parameters
indexSourceIndex
Returns
Remarks
A SECOM index without a fingerprint was served from the copy on disk (the service was down); a warning means it was capped.
PruneFolder(CollectionSource, SourceIndex)
A download location of the managed folder the source's copies live in, so copies no source lists any more can be pruned there; null when the source never prunes.
public RemoteItemLocation? PruneFolder(CollectionSource source, SourceIndex index)
Parameters
sourceCollectionSourceindexSourceIndex
Returns
Supports(CollectionSource)
True when this policy can keep source's kind in sync (whether or not it is asked to).
public bool Supports(CollectionSource source)
Parameters
sourceCollectionSource
Returns
Wanted(SourceIndex)
The items of index that should have a current local copy.
public IReadOnlyList<CollectionItem> Wanted(SourceIndex index)
Parameters
indexSourceIndex