Zero Install .NET API 2.20.0
ZeroInstall.Services.Solvers.ISolver Interface Reference

Chooses a set of Implementations to satisfy the requirements of a program and its user. More...

Inheritance diagram for ZeroInstall.Services.Solvers.ISolver:
ZeroInstall.Services.Solvers.BacktrackingSolver ZeroInstall.Services.Solvers.ExternalSolver ZeroInstall.Services.Solvers.FallbackSolver

Public Member Functions

Selections Solve (Requirements requirements)
 Provides Selections that satisfy a set of Requirements. More...
 

Detailed Description

Chooses a set of Implementations to satisfy the requirements of a program and its user.

Implementations of this interface are immutable and thread-safe.

Member Function Documentation

◆ Solve()

Selections ZeroInstall.Services.Solvers.ISolver.Solve ( Requirements  requirements)

Provides Selections that satisfy a set of Requirements.

Parameters
requirementsThe requirements to satisfy.
Returns
The selected ImplementationSelections.

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

Exceptions
OperationCanceledExceptionThe user canceled the task.
ArgumentExceptionrequirements is incomplete.
IOExceptionA problem occurred while reading the feed file.
WebExceptionA problem occurred while fetching the feed file.
UnauthorizedAccessExceptionAccess to the cache is not permitted.
SignatureExceptionThe signature data of a remote feed file could not be verified.
SolverExceptionThe solver was unable to provide Selections that fulfill the requirements .

Implemented in ZeroInstall.Services.Solvers.BacktrackingSolver, ZeroInstall.Services.Solvers.ExternalSolver, and ZeroInstall.Services.Solvers.FallbackSolver.


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