Show / Hide Table of Contents

Interface ISelectionsManager

Provides methods for filtering Selections.

Namespace: ZeroInstall.Services
Assembly: ZeroInstall.Services.dll
Syntax
public interface ISelectionsManager
Remarks

Implementations of this interface are immutable and thread-safe.

Methods

GetDiff(Selections, Selections)

Generates a list of differences between two selections.

Declaration
IEnumerable<SelectionsDiffNode> GetDiff(Selections oldSelections, Selections newSelections)
Parameters
Type Name Description
Selections oldSelections

The old selections to base the comparison on.

Selections newSelections

The new selections to compare against.

Returns
Type Description
IEnumerable<SelectionsDiffNode>

GetImplementations(IEnumerable<ImplementationSelection>)

Retrieves the original Implementations these selections were based on.

Declaration
IEnumerable<Implementation> GetImplementations(IEnumerable<ImplementationSelection> selections)
Parameters
Type Name Description
IEnumerable<ImplementationSelection> selections

The ImplementationSelections to map back to Implementations.

Returns
Type Description
IEnumerable<Implementation>

GetTree(Selections)

Generates a tree representation of the dependencies within the selections.

Declaration
NamedCollection<SelectionsTreeNode> GetTree(Selections selections)
Parameters
Type Name Description
Selections selections
Returns
Type Description
NamedCollection<SelectionsTreeNode>

GetUncached(IEnumerable<ImplementationSelection>)

Returns a list of any downloadable ImplementationSelections that are missing from an IImplementationStore.

Declaration
IEnumerable<ImplementationSelection> GetUncached(IEnumerable<ImplementationSelection> selections)
Parameters
Type Name Description
IEnumerable<ImplementationSelection> selections

The selections to search for ImplementationSelections that are missing.

Returns
Type Description
IEnumerable<ImplementationSelection>
Remarks

Feed files may be downloaded, no implementations are downloaded.

Exceptions
Type Condition
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.

Extension Methods

SelectionsManagerExtensions.GetUncachedImplementations(ISelectionsManager, Selections)
In This Article
Back to top Copyright Bastian Eicher et al