Class SelectionCandidateComparer
- Namespace
- ZeroInstall.Services.Solvers
- Assembly
- ZeroInstall.Services.dll
Ranks SelectionCandidates.
public sealed class SelectionCandidateComparer : IComparer<SelectionCandidate>
- Inheritance
-
objectSelectionCandidateComparer
- Implements
Constructors
SelectionCandidateComparer(Stability, NetworkLevel, LanguageSet, Predicate<Implementation>)
Ranks SelectionCandidates.
public SelectionCandidateComparer(Stability stabilityPolicy, NetworkLevel networkUse, LanguageSet languages, Predicate<Implementation> isCached)
Parameters
stabilityPolicyStabilityImplementations at this stability level or higher are preferred. Lower levels are used only if there is no other choice.
networkUseNetworkLevelControls how liberally network access is attempted.
languagesLanguageSetThe preferred languages for the implementation.
isCachedPredicate<Implementation>sed to determine which implementations are already cached in the IImplementationStore.
Methods
Compare(SelectionCandidate?, SelectionCandidate?)
public int Compare(SelectionCandidate? x, SelectionCandidate? y)