Class OnlineSyncPolicy
- Namespace
- EncDotNet.S100.Collections.Library
- Assembly
- EncDotNet.S100.Collections.dll
Sync rules for the other online kinds (issue #809): NOAA and USACE ENC feeds, community chart lists, S-100 feeds, remote S-100 catalogues and forecast feeds. Every listed item that is not cancelled is kept downloaded and current — a newer edition or update, a newer package, a forecast's latest run (which replaces the last in place).
public sealed class OnlineSyncPolicy : ILibrarySyncPolicy
- Inheritance
-
OnlineSyncPolicy
- Implements
- Inherited Members
Remarks
Nothing is pruned: these kinds share managed folders (all NOAA cells, for one) with downloads made by hand, which are not caches.
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
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