C# Class Mercurial.CommandProcessor

This class handles executing external executables in order to process commands.
Mostrar archivo Open project: TargetProcess/Target-Process-Plugins

Public Methods

Method Description
BeginExecute ( string workingDirectory, string executable, ICommand command, string>.KeyValuePair environmentVariables, IEnumerable specialArguments, AsyncCallback callback ) : IAsyncResult

Executes the given executable to process the given command asynchronously.

EndExecute ( IAsyncResult result ) : void

Finalizes asynchronous execution of the command.

Execute ( string workingDirectory, string executable, ICommand command, string>.KeyValuePair environmentVariables, IEnumerable specialArguments ) : void

Executes the given executable to process the given command.

Method Details

BeginExecute() public static method

Executes the given executable to process the given command asynchronously.
/// is null or empty. /// - or - /// is null or empty. /// - or - /// is null. /// - or - /// is null. /// - or - /// is null. ///
public static BeginExecute ( string workingDirectory, string executable, ICommand command, string>.KeyValuePair environmentVariables, IEnumerable specialArguments, AsyncCallback callback ) : IAsyncResult
workingDirectory string /// The working directory while executing the command. ///
executable string /// The full path to and name of the executable to execute. ///
command ICommand /// The options to the executable. ///
environmentVariables string>.KeyValuePair /// An array of objects, containing environment variable /// overrides to use while executing the executable. ///
specialArguments IEnumerable /// Any special arguments to pass to the executable, not defined by the /// object, typically common arguments that should always be passed to the executable. ///
callback AsyncCallback /// A callback to call when the execution has completed. The value of the /// object passed to the will be the /// object. ///
return IAsyncResult

EndExecute() public static method

Finalizes asynchronous execution of the command.
/// is null. /// /// is not a that was returned from . ///
public static EndExecute ( IAsyncResult result ) : void
result IAsyncResult /// The object returned from . ///
return void

Execute() public static method

Executes the given executable to process the given command.
/// is null or empty. /// - or - /// is null or empty. /// - or - /// is null. /// - or - /// is null. /// - or - /// is null. /// /// The executable did not finish in the allotted time. ///
public static Execute ( string workingDirectory, string executable, ICommand command, string>.KeyValuePair environmentVariables, IEnumerable specialArguments ) : void
workingDirectory string /// The working directory while executing the command. ///
executable string /// The full path to and name of the executable to execute. ///
command ICommand /// The options to the executable. ///
environmentVariables string>.KeyValuePair /// An array of objects, containing environment variable /// overrides to use while executing the executable. ///
specialArguments IEnumerable /// Any special arguments to pass to the executable, not defined by the /// object, typically common arguments that should always be passed to the executable. ///
return void