C# Класс 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.
Наследование: ISolver
Показать файл Открыть проект

Открытые методы

Метод Описание
FallbackSolver ( ISolver primarySolver, ISolver secondarySolver ) : System.Net

Creates a new fallback solver.

Solve ( Requirements requirements ) : Selections

Описание методов

FallbackSolver() публичный Метод

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.
Результат System.Net

Solve() публичный Метод

public Solve ( Requirements requirements ) : Selections
requirements Requirements
Результат Selections