C# Класс ZeroInstall.Commands.CliCommands.Selection

Select a version of the program identified by URI, and compatible versions of all of its dependencies.
Наследование: CliCommand
Показать файл Открыть проект

Защищенные свойства (Protected)

Свойство Тип Описание
CustomizeSelections bool
Selections Selections
SelectionsDocument bool
ShowXml bool

Private Properties

Свойство Тип Описание
GetSelectionsOutput string
SolveCallback Selections
TryParseSelectionsDocument void

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

Метод Описание
Execute ( ) : ExitCode
Parse ( IEnumerable args ) : void
Selection ( [ handler ) : System

Защищенные методы

Метод Описание
RefreshSolve ( ) : void

Run Solve with IFeedManager.Refresh set to true.

SetInterfaceUri ( FeedUri uri ) : void

Sets Requirements.InterfaceUri and applies Requirements options that need to be deferred to the end of the parsing process.

ShowOutput ( ) : ExitCode
ShowSelections ( ) : void

Displays the Selections to the user.

Solve ( ) : void

Runs ISolver.Solve (unless SelectionsDocument is true) and stores the result in Selections.

Приватные методы

Метод Описание
GetSelectionsOutput ( ) : string
SolveCallback ( ) : Selections

Run Solve and inform the caller as well as the ICommandHandler of any changes.

TryParseSelectionsDocument ( ) : void

Trys to parse Requirements.InterfaceUri as a pre-computed Selection.Selections document.

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

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

public Execute ( ) : ExitCode
Результат ExitCode

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

public Parse ( IEnumerable args ) : void
args IEnumerable
Результат void

RefreshSolve() защищенный Метод

Run Solve with IFeedManager.Refresh set to true.
protected RefreshSolve ( ) : void
Результат void

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

public Selection ( [ handler ) : System
handler [
Результат System

SetInterfaceUri() защищенный Метод

Sets Requirements.InterfaceUri and applies Requirements options that need to be deferred to the end of the parsing process.
protected SetInterfaceUri ( FeedUri uri ) : void
uri FeedUri
Результат void

ShowOutput() защищенный Метод

protected ShowOutput ( ) : ExitCode
Результат ExitCode

ShowSelections() защищенный Метод

Displays the Selections to the user.
protected ShowSelections ( ) : void
Результат void

Solve() защищенный Метод

Runs ISolver.Solve (unless SelectionsDocument is true) and stores the result in Selections.
The user canceled the task. A file could not be downloaded from the internet. An external application or file required by the solver could not be accessed. The was unable to provide a set of that fulfill the .
protected Solve ( ) : void
Результат void

Описание свойств

CustomizeSelections защищенное свойство

Indicates the user wants a UI to modify the Selections.
protected bool CustomizeSelections
Результат bool

Selections защищенное свойство

Cached ISolver results.
protected Selections Selections
Результат Selections

SelectionsDocument защищенное свойство

Indicates the user provided a pre-computed Selections XML document instead of using the ISolver.
protected bool SelectionsDocument
Результат bool

ShowXml защищенное свойство

Indicates the user wants a machine-readable output.
protected bool ShowXml
Результат bool