C# Class ZeroInstall.Services.Injector.Executor

显示文件 Open project: 0install/0install-win Class Usage Examples

Public Methods

Method Description
Executor ( [ store ) : System

Creates a new executor.

GetImplementationPath ( ImplementationSelection implementation ) : string
GetStartInfo ( Selections selections ) : ProcessStartInfo
Start ( Selections selections ) : Process

Private Methods

Method Description
AppendUserArgs ( [ arguments, [ commandLine ) : void

Appends the user specified arguments to the command-line.

ApplyBindings ( [ bindingContainer, [ implementation, [ startInfo ) : void

Applies all Bindings listed in a specific IBindingContainer.

ApplyCommandLine ( [ commandLine, [ startInfo ) : void

Split and apply main command-line

ApplyDependencyBindings ( [ dependencyContainer, [ startInfo ) : void

Applies Bindings to make a set of Dependencys available.

ApplyEnvironmentBinding ( [ binding, [ implementation, [ startInfo ) : void

Applies an EnvironmentBinding by modifying environment variables.

ApplyExecutableInPath ( [ binding, [ implementation, [ startInfo ) : void

Applies an ExecutableInPath binding by creating a run-environment executable.

ApplyExecutableInVar ( [ binding, [ implementation, [ startInfo ) : void

Applies an ExecutableInVar binding by creating a run-environment executable.

ApplyWorkingDir ( [ binding, [ implementation, [ startInfo ) : void

Applies a WorkingDir change to the ProcessStartInfo.

This method can only be called successfully once per BuildStartInfoWithBindings().

BuildStartInfoWithBindings ( ) : ProcessStartInfo
DeployRunEnvExecutable ( [ name ) : string
ExpandCommandLine ( [ commandLine, [ environmentVariables ) : IList
GetCommandLine ( [ implementation, [ commandName, [ startInfo ) : List
GetMainImplementation ( ) : ImplementationSelection
GetRunEnvTemplate ( ) : string
PrependWrapper ( [ commandLine ) : void

Prepends the user-specified Wrapper, if any, to the command-line.

ProcessRunEnvBindings ( [ startInfo ) : void

Split and apply command-lines for executable bindings. This is delayed until the end because environment variables that might be modified are expanded.

SplitCommandLine ( [ commandLine ) : CommandLineSplit

Splits a command-line into a file name and an arguments part.

Method Details

Executor() public method

Creates a new executor.
public Executor ( [ store ) : System
store [ Used to locate the selected s.
return System

GetImplementationPath() public method

public GetImplementationPath ( ImplementationSelection implementation ) : string
implementation ImplementationSelection
return string

GetStartInfo() public method

public GetStartInfo ( Selections selections ) : ProcessStartInfo
selections Selections
return System.Diagnostics.ProcessStartInfo

Start() public method

public Start ( Selections selections ) : Process
selections Selections
return System.Diagnostics.Process