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

Provides extension methods for ISolver. More...

Static Public Member Functions

static ? Selections TrySolve (this ISolver solver, Requirements requirements)
 Provides Selections that satisfy a set of Requirements. Catches most exceptions and Logs them. More...
 

Detailed Description

Provides extension methods for ISolver.

Member Function Documentation

◆ TrySolve()

static ? Selections ZeroInstall.Services.Solvers.SolverExtensions.TrySolve ( this ISolver  solver,
Requirements  requirements 
)
inlinestatic

Provides Selections that satisfy a set of Requirements. Catches most exceptions and Logs them.

Parameters
solverThe ISolver implementation.
requirementsA set of requirements/restrictions imposed by the user on the implementation selection process.
Returns
The ImplementationSelections chosen for the feed; null if there was a problem.

Feed files may be downloaded, signature validation is performed, implementations are not downloaded.

Exceptions
OperationCanceledExceptionThe user canceled the task.
ArgumentExceptionrequirements is incomplete.

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