Show / Hide Table of Contents

Class ProcessRunnerResult

Represents the result of a process execution.

Inheritance
object
ProcessRunnerResult
Implements
IProcessRunnerResult
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: Benday.Common
Assembly: Benday.Common.dll
Syntax
public class ProcessRunnerResult : IProcessRunnerResult

Constructors

| Edit this page View Source

ProcessRunnerResult()

Creates a new instance of ProcessRunnerResult with default values.

Declaration
public ProcessRunnerResult()
| Edit this page View Source

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 Source

ErrorText

The standard error text from the process.

Declaration
public string ErrorText { get; }
Property Value
Type Description
string
| Edit this page View Source

ExitCode

The exit code from the process. Returns -1 if not yet completed.

Declaration
public int ExitCode { get; }
Property Value
Type Description
int
| Edit this page View Source

HasCompleted

Indicates if the process has completed (either successfully or with error).

Declaration
public bool HasCompleted { get; }
Property Value
Type Description
bool
| Edit this page View Source

IsError

Indicates if the process completed with an error (non-zero exit code).

Declaration
public bool IsError { get; }
Property Value
Type Description
bool
| Edit this page View Source

IsSuccess

Indicates if the process completed successfully (zero exit code).

Declaration
public bool IsSuccess { get; }
Property Value
Type Description
bool
| Edit this page View Source

IsTimeout

Indicates if the process timed out.

Declaration
public bool IsTimeout { get; }
Property Value
Type Description
bool
| Edit this page View Source

OutputText

The standard output text from the process.

Declaration
public string OutputText { get; }
Property Value
Type Description
string

Implements

IProcessRunnerResult

Extension Methods

ObjectAssertExtensions.ShouldBeNull<T>(T?, string)
ObjectAssertExtensions.ShouldBeSameAs<T>(T, T, string)
ObjectAssertExtensions.ShouldEqual<T>(T, T, string)
ObjectAssertExtensions.ShouldNotBeNull<T>(T?, string)
ObjectAssertExtensions.ShouldNotBeSameAs<T>(T, T, string)
ObjectAssertExtensions.ShouldNotEqual<T>(T, T, string)
ObjectAssertExtensions.ShouldBeOfType<T>(object?, string)
ObjectAssertExtensions.ShouldNotBeOfType<T>(object?, string)
  • Edit this page
  • View Source
In this article
Back to top Copyright © www.benday.com | info@benday.com