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
파일 보기 프로젝트 열기: 0install/0install-win

공개 메소드들

메소드 설명
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