C# Class ZeroInstall.Services.Solvers.SelectionCandidateProvider

Generates SelectionCandidates for ISolvers to choose among.
Caches loaded Feeds, preferences, etc..
Mostra file Open project: 0install/0install-win Class Usage Examples

Public Methods

Method Description
GetSortedCandidates ( [ requirements ) : IList

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

LookupOriginalImplementation ( ImplementationSelection implemenationSelection ) : Implementation

Retrieves the original Implementation an ImplementationSelection was based ofF.

SelectionCandidateProvider ( [ config, [ feedManager, [ store, [ packageManager, [ languages ) : System

Creates a new SelectionCandidate provider.

Private Methods

Method Description
AddFeedToDict ( Feed>.[ dictionary, [ feedUri, [ requirements ) : void

Loads a feed and adds it to a dictionary if it is not already in it. Recursivley adds Feed.Feeds references.

BuildCacheChecker ( IStore store ) : Predicate

Returns a predicate that checks whether a given Implementation is cached in the store (or has an ImplementationBase.LocalPath or ExternalImplementation.IsInstalled).

GetCandidates ( FeedUri feedUri, Feed feed, Requirements requirements ) : IEnumerable
GetFeeds ( Requirements requirements ) : Feed>.IDictionary

Loads the main feed for the specified requirements, additional feeds added by local configuration and Feed.Feeds references.

GetNativeFeedPaths ( FeedUri interfaceUri ) : IEnumerable
GetSitePackagePaths ( FeedUri interfaceUri ) : IEnumerable

Method Details

GetSortedCandidates() public method

Gets all SelectionCandidates for a specific set of Requirements sorted from best to worst.
public GetSortedCandidates ( [ requirements ) : IList
requirements [
return IList

LookupOriginalImplementation() public method

Retrieves the original Implementation an ImplementationSelection was based ofF.
public LookupOriginalImplementation ( ImplementationSelection implemenationSelection ) : Implementation
implemenationSelection ImplementationSelection
return Implementation

SelectionCandidateProvider() public method

Creates a new SelectionCandidate provider.
public SelectionCandidateProvider ( [ config, [ feedManager, [ store, [ packageManager, [ languages ) : System
config [ User settings controlling network behaviour, solving, etc.
feedManager [ Provides access to remote and local s. Handles downloading, signature verification and caching.
store [ Used to check which s are already cached.
packageManager [ An external package manager that can install s.
languages [ The preferred languages for the implementation.
return System