Class SelectionsManager
- Namespace
- ZeroInstall.Services
- Assembly
- ZeroInstall.Services.dll
Provides methods for filtering Selections.
public class SelectionsManager : ISelectionsManager
- Inheritance
-
SelectionsManager
- Implements
- Inherited Members
- Extension Methods
Remarks
This class is immutable and thread-safe.
Constructors
SelectionsManager(IFeedManager, IImplementationStore, IPackageManager)
Provides methods for filtering Selections.
public SelectionsManager(IFeedManager feedManager, IImplementationStore implementationStore, IPackageManager packageManager)
Parameters
feedManager
IFeedManagerimplementationStore
IImplementationStorepackageManager
IPackageManager
Remarks
This class is immutable and thread-safe.
Methods
GetDiff(Selections, Selections)
Generates a list of differences between two selections.
public IEnumerable<SelectionsDiffNode> GetDiff(Selections oldSelections, Selections newSelections)
Parameters
oldSelections
SelectionsThe old selections to base the comparison on.
newSelections
SelectionsThe new selections to compare against.
Returns
GetImplementations(IEnumerable<ImplementationSelection>)
Retrieves the original Implementations these selections were based on.
public IEnumerable<Implementation> GetImplementations(IEnumerable<ImplementationSelection> selections)
Parameters
selections
IEnumerable<ImplementationSelection>The ImplementationSelections to map back to Implementations.
Returns
GetTree(Selections)
Generates a tree representation of the dependencies within the selections.
public NamedCollection<SelectionsTreeNode> GetTree(Selections selections)
Parameters
selections
Selections
Returns
GetUncached(IEnumerable<ImplementationSelection>)
Returns a list of any downloadable ImplementationSelections that are missing from an IImplementationStore.
public IEnumerable<ImplementationSelection> GetUncached(IEnumerable<ImplementationSelection> selections)
Parameters
selections
IEnumerable<ImplementationSelection>The selections to search for ImplementationSelections that are missing.
Returns
Remarks
Feed files may be downloaded, no implementations are downloaded.
Exceptions
- KeyNotFoundException
A Feed or Implementation is missing.
- IOException
A problem occurred while reading the feed file.
- UnauthorizedAccessException
Read access to the cache is not permitted.
- InvalidDataException
The feed file could not be parsed.