Class CacheNodeBuilder
- Namespace
- ZeroInstall.Store.ViewModel
- Assembly
- ZeroInstall.Store.dll
Builds CacheNodes for Feeds and Implementations.
public sealed class CacheNodeBuilder
- Inheritance
-
CacheNodeBuilder
- Inherited Members
Constructors
CacheNodeBuilder(ITaskHandler, IFeedCache, IImplementationStore?)
Creates a new cache node builder.
public CacheNodeBuilder(ITaskHandler handler, IFeedCache feedCache, IImplementationStore? implementationStore = null)
Parameters
handler
ITaskHandlerA callback object used when the user needs to be informed about IO tasks.
feedCache
IFeedCacheUsed to get local feed files.
implementationStore
IImplementationStoreUsed to get cached implementations. Leave unset to only list feeds.
Methods
Build()
Builds a list of CacheNodes for Feeds and Implementations.
public NamedCollection<CacheNode> Build()
Returns
Exceptions
- IOException
A problem occurred while reading from a cache.
- UnauthorizedAccessException
Read access to a cache is not permitted.