Show / Hide Table of Contents

Class SolverExtensions

Provides extension methods for ISolver.

Inheritance
Object
SolverExtensions
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; null if there was a problem.

Remarks

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

Exceptions
Type Condition
OperationCanceledException

The user canceled the task.

ArgumentException

requirements is incomplete.

In This Article
Back to top Copyright Bastian Eicher et al