Class ProcessRunnerResult
Represents the result of a process execution.
Implements
Inherited Members
Namespace: Benday.Common
Assembly: Benday.Common.dll
Syntax
public class ProcessRunnerResult : IProcessRunnerResult
Constructors
| Edit this page View SourceProcessRunnerResult()
Creates a new instance of ProcessRunnerResult with default values.
Declaration
public ProcessRunnerResult()
ProcessRunnerResult(bool, bool, bool, int, string, string)
Creates a new instance of ProcessRunnerResult with the specified values.
Declaration
public ProcessRunnerResult(bool isError, bool isSuccess, bool isTimeout, int exitCode, string outputText, string errorText)
Parameters
| Type | Name | Description |
|---|---|---|
| bool | isError | Indicates if the process completed with an error. |
| bool | isSuccess | Indicates if the process completed successfully. |
| bool | isTimeout | Indicates if the process timed out. |
| int | exitCode | The exit code from the process. |
| string | outputText | The standard output text from the process. |
| string | errorText | The standard error text from the process. |
Properties
| Edit this page View SourceErrorText
The standard error text from the process.
Declaration
public string ErrorText { get; }
Property Value
| Type | Description |
|---|---|
| string |
ExitCode
The exit code from the process. Returns -1 if not yet completed.
Declaration
public int ExitCode { get; }
Property Value
| Type | Description |
|---|---|
| int |
HasCompleted
Indicates if the process has completed (either successfully or with error).
Declaration
public bool HasCompleted { get; }
Property Value
| Type | Description |
|---|---|
| bool |
IsError
Indicates if the process completed with an error (non-zero exit code).
Declaration
public bool IsError { get; }
Property Value
| Type | Description |
|---|---|
| bool |
IsSuccess
Indicates if the process completed successfully (zero exit code).
Declaration
public bool IsSuccess { get; }
Property Value
| Type | Description |
|---|---|
| bool |
IsTimeout
Indicates if the process timed out.
Declaration
public bool IsTimeout { get; }
Property Value
| Type | Description |
|---|---|
| bool |
OutputText
The standard output text from the process.
Declaration
public string OutputText { get; }
Property Value
| Type | Description |
|---|---|
| string |