Show / Hide Table of Contents

Interface IProcessRunner

Interface for running external processes synchronously.

Namespace: Benday.Common
Assembly: Benday.Common.dll
Syntax
public interface IProcessRunner

Properties

| Edit this page View Source

ErrorText

The error text from the process.

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

HasCompleted

Indicates if the process has completed.

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

IsError

Indicates if the process completed with an error.

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

IsSuccess

Indicates if the process completed successfully.

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

IsTimeout

Indicates if the process timed out.

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

OutputText

The output text from the process.

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

StartInfo

The ProcessStartInfo object used to configure the process.

Declaration
ProcessStartInfo StartInfo { get; }
Property Value
Type Description
ProcessStartInfo
| Edit this page View Source

Timeout

The timeout in milliseconds for the process to run.

Declaration
int Timeout { get; set; }
Property Value
Type Description
int

Methods

| Edit this page View Source

Run()

Run the process synchronously and wait for completion.

Declaration
IProcessRunnerResult Run()
Returns
Type Description
IProcessRunnerResult

The result of the process execution.

Exceptions
Type Condition
InvalidOperationException

Thrown if Run() is called more than once.

TimeoutException

Thrown if the process times out.

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