C# Class ZocBuild.Database.ExternalProcess

An object that can start an external process and read its output.
Inheritance: IExternalProcess
Datei anzeigen Open project: Zocdoc/ZocBuild.Database

Public Methods

Method Description
ExecuteAsync ( string arguments, string workingDirectory ) : Task

Executes the external process and returns the results from standard out.

ExternalProcess ( string executablePath ) : System

Constructs an external process object that can invoke the executable at the given path.

Private Methods

Method Description
CreateProcess ( string arguments, string workingDirectory ) : Process

Method Details

ExecuteAsync() public method

Executes the external process and returns the results from standard out.
Thrown if the process executable doesn't exist or is inaccessible. Thrown if a non-zero exit code is returned from the process.
public ExecuteAsync ( string arguments, string workingDirectory ) : Task
arguments string The arguments to supply to the process.
workingDirectory string The path to the working directory in which the process should execute.
return Task

ExternalProcess() public method

Constructs an external process object that can invoke the executable at the given path.
public ExternalProcess ( string executablePath ) : System
executablePath string
return System