C# Class ZeroInstall.Commands.CliCommands.Selection

Select a version of the program identified by URI, and compatible versions of all of its dependencies.
Inheritance: CliCommand
Show file Open project: 0install/0install-win

Protected Properties

Property Type Description
CustomizeSelections bool
Selections Selections
SelectionsDocument bool
ShowXml bool

Private Properties

Property Type Description
GetSelectionsOutput string
SolveCallback Selections
TryParseSelectionsDocument void

Public Methods

Method Description
Execute ( ) : ExitCode
Parse ( IEnumerable args ) : void
Selection ( [ handler ) : System

Protected Methods

Method Description
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.

Private Methods

Method Description
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.

Method Details

Execute() public method

public Execute ( ) : ExitCode
return ExitCode

Parse() public method

public Parse ( IEnumerable args ) : void
args IEnumerable
return void

RefreshSolve() protected method

Run Solve with IFeedManager.Refresh set to true.
protected RefreshSolve ( ) : void
return void

Selection() public method

public Selection ( [ handler ) : System
handler [
return System

SetInterfaceUri() protected method

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
return void

ShowOutput() protected method

protected ShowOutput ( ) : ExitCode
return ExitCode

ShowSelections() protected method

Displays the Selections to the user.
protected ShowSelections ( ) : void
return void

Solve() protected method

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
return void

Property Details

CustomizeSelections protected property

Indicates the user wants a UI to modify the Selections.
protected bool CustomizeSelections
return bool

Selections protected property

Cached ISolver results.
protected Selections Selections
return Selections

SelectionsDocument protected property

Indicates the user provided a pre-computed Selections XML document instead of using the ISolver.
protected bool SelectionsDocument
return bool

ShowXml protected property

Indicates the user wants a machine-readable output.
protected bool ShowXml
return bool