Zero Install .NET API 2.20.0
ZeroInstall.Services.Solvers.SelectionCandidateProvider Class Reference

Generates SelectionCandidates for ISolvers to choose among. More...

Inheritance diagram for ZeroInstall.Services.Solvers.SelectionCandidateProvider:
ZeroInstall.Services.Solvers.ISelectionCandidateProvider

Public Member Functions

 SelectionCandidateProvider (Config config, IFeedManager feedManager, IImplementationStore implementationStore, IPackageManager packageManager)
 Creates a new SelectionCandidate provider. More...
 
IReadOnlyList< SelectionCandidateGetSortedCandidates (Requirements requirements)
 Gets all SelectionCandidates for a specific set of Requirements sorted from best to worst. More...
 
Implementation LookupOriginalImplementation (ImplementationSelection implementationSelection)
 Retrieves the original Implementation an ImplementationSelection was based ofF. More...
 
void Clear ()
 Clears any in-memory caches. More...
 

Detailed Description

Generates SelectionCandidates for ISolvers to choose among.

This class performs in-memory caching of InterfacePreferencess and implementations and is thread-safe.

Constructor & Destructor Documentation

◆ SelectionCandidateProvider()

ZeroInstall.Services.Solvers.SelectionCandidateProvider.SelectionCandidateProvider ( Config  config,
IFeedManager  feedManager,
IImplementationStore  implementationStore,
IPackageManager  packageManager 
)
inline

Creates a new SelectionCandidate provider.

Parameters
configUser settings controlling network behaviour, solving, etc.
feedManagerProvides access to remote and local Feeds. Handles downloading, signature verification and caching.
implementationStoreUsed to check which Implementations are already cached.
packageManagerAn external package manager that can install PackageImplementations.

Member Function Documentation

◆ Clear()

void ZeroInstall.Services.Solvers.SelectionCandidateProvider.Clear ( )
inline

Clears any in-memory caches.

Implements ZeroInstall.Services.Solvers.ISelectionCandidateProvider.

◆ GetSortedCandidates()

IReadOnlyList< SelectionCandidate > ZeroInstall.Services.Solvers.SelectionCandidateProvider.GetSortedCandidates ( Requirements  requirements)
inline

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

Implements ZeroInstall.Services.Solvers.ISelectionCandidateProvider.

◆ LookupOriginalImplementation()

Implementation ZeroInstall.Services.Solvers.SelectionCandidateProvider.LookupOriginalImplementation ( ImplementationSelection  implementationSelection)
inline

Retrieves the original Implementation an ImplementationSelection was based ofF.

Implements ZeroInstall.Services.Solvers.ISelectionCandidateProvider.


The documentation for this class was generated from the following file: