Show / Hide Table of Contents

Interface ISelectionCandidateProvider

Generates SelectionCandidates for ISolvers to choose among.

Namespace: ZeroInstall.Services.Solvers
Assembly: ZeroInstall.Services.dll
Syntax
public interface ISelectionCandidateProvider
Remarks

Implementations of this interface may perform in-memory caching and are thread-safe.

Properties

FailedFeeds

A list of feeds that could not be downloaded along with the exceptions describing the problems.

Declaration
IReadOnlyDictionary<FeedUri, Exception> FailedFeeds { get; }
Property Value
Type Description
IReadOnlyDictionary<FeedUri, Exception>

Methods

Clear()

Clears any in-memory caches.

Declaration
void Clear()

GetSortedCandidates(Requirements)

Gets all SelectionCandidates for a specific set of Requirements sorted from best to worst.

Declaration
IReadOnlyList<SelectionCandidate> GetSortedCandidates(Requirements requirements)
Parameters
Type Name Description
Requirements requirements
Returns
Type Description
IReadOnlyList<SelectionCandidate>

LookupOriginalImplementation(ImplementationSelection)

Retrieves the original Implementation an ImplementationSelection was based ofF.

Declaration
Implementation LookupOriginalImplementation(ImplementationSelection implementationSelection)
Parameters
Type Name Description
ImplementationSelection implementationSelection
Returns
Type Description
Implementation
Exceptions
Type Condition
KeyNotFoundException

The implementationSelection was not provided by GetSortedCandidates(Requirements).

In This Article
Back to top Copyright Bastian Eicher et al