Class SolverExtensions
Provides extension methods for ISolver.
Namespace: ZeroInstall.Services.Solvers
Assembly: ZeroInstall.Services.dll
Syntax
public static class SolverExtensions : Object
Methods
TrySolve(ISolver, Requirements)
Provides Selections that satisfy a set of Requirements. Catches most exceptions and Logs them.
Declaration
public static Selections TrySolve(this ISolver solver, Requirements requirements)
Parameters
Type | Name | Description |
---|---|---|
ISolver | solver | The ISolver implementation. |
Requirements | requirements | A set of requirements/restrictions imposed by the user on the implementation selection process. |
Returns
Type | Description |
---|---|
Selections | The ImplementationSelections chosen for the feed; |
Remarks
Feed files may be downloaded, signature validation is performed, implementations are not downloaded.
Exceptions
Type | Condition |
---|---|
OperationCanceledException | The user canceled the task. |
ArgumentException |
|