C# Class ZeroInstall.BootstrapProcess

Downloads and executes an instance of Zero Install.
Inheritance: ServiceLocator
显示文件 Open project: 0install/0install-win

Private Properties

Property Type Description
Fetch void
GetCached System.Diagnostics.ProcessStartInfo
GetEmbeddedArgs IEnumerable
GetExistingInstance System.Diagnostics.ProcessStartInfo
GetStartInfo System.Diagnostics.ProcessStartInfo
HandleSharedOptions void
ImportArchives void
ImportFeeds void
Solve void
SolveOffline void
SolveRefresh void

Public Methods

Method Description
BootstrapProcess ( [ handler, bool gui ) : System

Creates a new bootstrap process.

Execute ( [ args ) : ExitCode

Executes the bootstrap process controlled by command-line arguments.

Private Methods

Method Description
Fetch ( ) : void

Downloads any implementations selected by the Solver that are not in the cache yet.

GetCached ( ) : ProcessStartInfo
GetEmbeddedArgs ( ) : IEnumerable

Gets implicit command-line arguments based on the EmbeddedConfig, if any.

GetExistingInstance ( ) : ProcessStartInfo
GetStartInfo ( ) : ProcessStartInfo
HandleSharedOptions ( ) : void

Handles arguments passed to the target that are also applicable to the bootstrapper.

ImportArchives ( ) : void

Imports implementation archives into the IStore.

ImportFeeds ( ) : void

Imports bundled feeds and GnuPG keys.

Solve ( ) : void

Runs the Solver to select a version of Zero Install.

SolveOffline ( ) : void

Runs the Solver in offlie mode.

SolveRefresh ( ) : void

Runs the Solver in refresh mode (re-download all feeds).

Method Details

BootstrapProcess() public method

Creates a new bootstrap process.
public BootstrapProcess ( [ handler, bool gui ) : System
handler [ A callback object used when the the user needs to be asked questions or informed about download and IO tasks.
gui bool true if the application was launched in GUI mode; false if it was launched in command-line mode.
return System

Execute() public method

Executes the bootstrap process controlled by command-line arguments.
public Execute ( [ args ) : ExitCode
args [ The command-line arguments to handle.
return ExitCode