jjm.one.CommandLineToolWrapper  2.0.0-alpha.0
A C# library that provides a wrapper for command line tools.
Public Member Functions | List of all members
IProcessRunner Interface Reference

Represents a class that is responsible for running processes. More...

Inheritance diagram for IProcessRunner:
Inheritance graph
[legend]

Public Member Functions

Task< ProcessResult > RunProcessAsync (ProcessStartInfo startInfo, bool captureOutput=true, bool captureError=true)
 Runs a process asynchronously using the provided start info. More...
 

Detailed Description

Represents a class that is responsible for running processes.

Member Function Documentation

◆ RunProcessAsync()

Task<ProcessResult> IProcessRunner.RunProcessAsync ( ProcessStartInfo  startInfo,
bool  captureOutput = true,
bool  captureError = true 
)

Runs a process asynchronously using the provided start info.

Parameters
startInfoThe process start info.
captureOutputWhether to capture the process output.
captureErrorWhether to capture the process error.
Returns
A task that represents the asynchronous operation. The task result contains the process result.
Exceptions
ProcessFailedExceptionThrown when the process exits with a non-zero code.
Here is the caller graph for this function:

The documentation for this interface was generated from the following file: