C# Class ZeroInstall.Services.Solvers.FallbackSolver

Wraps two solvers always passing requests to the primary one intially and falling back to secondary one should the primary one fail.
This class is immutable and thread-safe.
Inheritance: ISolver
显示文件 Open project: 0install/0install-win

Public Methods

Method Description
FallbackSolver ( ISolver primarySolver, ISolver secondarySolver ) : System.Net

Creates a new fallback solver.

Solve ( Requirements requirements ) : Selections

Method Details

FallbackSolver() public method

Creates a new fallback solver.
public FallbackSolver ( ISolver primarySolver, ISolver secondarySolver ) : System.Net
primarySolver ISolver The solver to run initially.
secondarySolver ISolver The solver to fall back to should fail.
return System.Net

Solve() public method

public Solve ( Requirements requirements ) : Selections
requirements Requirements
return Selections