TestimoX

API Reference

Class

ServiceProcessRunner

Namespace TestimoX.Services
Assembly TestimoX
Modifiers static

Runs service-related executables and captures output.

Inheritance

  • Object
  • ServiceProcessRunner

Methods

Run 3 overloads
public static ServiceProcessResult Run(String fileName, IEnumerable<String> arguments, Nullable<TimeSpan> timeout = null) #
Returns: ServiceProcessResult

Executes the specified process and captures output.

Parameters

fileName System.String requiredposition: 0
Executable path.
arguments System.String requiredposition: 1
Arguments to pass.
timeout System.Nullable{System.TimeSpan} = null optionalposition: 2
Maximum time to wait for completion.

Returns

Process execution result.

Run(System.String fileName, System.Collections.Generic.IEnumerable{System.String} arguments, System.Nullable{System.TimeSpan} timeout) #

Executes the specified process and captures output.

Parameters

fileName System.String required
Executable path.
arguments System.Collections.Generic.IEnumerable{System.String} required
Arguments to pass.
timeout System.Nullable{System.TimeSpan} required
Maximum time to wait for completion.

Returns

Process execution result.

public static ServiceProcessResult Run(String fileName, IEnumerable<String> arguments, IReadOnlyDictionary<String, String> environmentVariables, Nullable<TimeSpan> timeout = null) #
Returns: ServiceProcessResult

Executes the specified process and captures output.

Parameters

fileName System.String requiredposition: 0
Executable path.
arguments System.Collections.Generic.IEnumerable{System.String} requiredposition: 1
Arguments to pass.
environmentVariables System.Collections.Generic.IReadOnlyDictionary{System.String,System.String} requiredposition: 2
Additional environment variables for the process.
timeout System.Nullable{System.TimeSpan} = null optionalposition: 3
Maximum time to wait for completion.

Returns

Process execution result.