Class ProcessStarter
A process starter.
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Kephas.Diagnostics
Assembly: Kephas.Core.dll
Syntax
public class ProcessStarter : Loggable, ILoggable, IProcessStarter
Constructors
| Improve this Doc View SourceProcessStarter(ProcessStartInfo)
Initializes a new instance of the ProcessStarter class.
Declaration
public ProcessStarter(ProcessStartInfo processStartInfo)
Parameters
Type | Name | Description |
---|---|---|
System.Diagnostics.ProcessStartInfo | processStartInfo | Information describing the process start. |
Properties
| Improve this Doc View SourceProcessStartInfo
Gets information describing the process start.
Declaration
public ProcessStartInfo ProcessStartInfo { get; }
Property Value
Type | Description |
---|---|
System.Diagnostics.ProcessStartInfo | Information describing the process start. |
Methods
| Improve this Doc View SourceStartAsync(Action<Process>, CancellationToken)
Starts the process asynchronously.
Declaration
public Task<ProcessStartResult> StartAsync(Action<Process> config = null, CancellationToken cancellationToken = default(CancellationToken))
Parameters
Type | Name | Description |
---|---|---|
System.Action<System.Diagnostics.Process> | config | (Optional) Callback to configure the process before start. |
System.Threading.CancellationToken | cancellationToken | (Optional) The cancellation token. |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task<ProcessStartResult> | The asynchronous result. |