Class ProcessExtensions
Process Extension class.
Inherited Members
Namespace: Microsoft.MixedReality.Toolkit
Assembly: cs.temp.dll.dll
Syntax
public static class ProcessExtensions
Methods
StartProcessAsync(Process, ProcessStartInfo, Boolean, CancellationToken)
Starts a process asynchronously.
Declaration
public static Task<ProcessResult> StartProcessAsync(this Process process, ProcessStartInfo startInfo, bool showDebug = false, CancellationToken cancellationToken = null)
Parameters
Type | Name | Description |
---|---|---|
Process | process | This Process. |
ProcessStartInfo | startInfo | The Process start info. |
Boolean | showDebug | Should output debug code to Editor Console? |
CancellationToken | cancellationToken |
Returns
Type | Description |
---|---|
Task<ProcessResult> |
Remarks
The provided Process Start Info must not use shell execution, and should redirect the standard output and errors.
StartProcessAsync(Process, ProcessStartInfo, Boolean, CancellationToken)
Starts a process asynchronously.
Declaration
public static Task<ProcessResult> StartProcessAsync(this Process process, ProcessStartInfo startInfo, bool showDebug = false, CancellationToken cancellationToken = null)
Parameters
Type | Name | Description |
---|---|---|
Process | process | This Process. |
ProcessStartInfo | startInfo | The Process start info. |
Boolean | showDebug | Should output debug code to Editor Console? |
CancellationToken | cancellationToken |
Returns
Type | Description |
---|---|
Task<ProcessResult> |
Remarks
The provided Process Start Info must not use shell execution, and should redirect the standard output and errors.
StartProcessAsync(Process, String, String, Boolean, CancellationToken)
Starts a process asynchronously.
Declaration
public static Task<ProcessResult> StartProcessAsync(this Process process, string fileName, string args, bool showDebug = false, CancellationToken cancellationToken = null)
Parameters
Type | Name | Description |
---|---|---|
Process | process | This Process. |
String | fileName | The process executable to run. |
String | args | The Process arguments. |
Boolean | showDebug | Should output debug code to Editor Console? |
CancellationToken | cancellationToken |
Returns
Type | Description |
---|---|
Task<ProcessResult> |
StartProcessAsync(Process, String, String, Boolean, CancellationToken)
Starts a process asynchronously.
Declaration
public static Task<ProcessResult> StartProcessAsync(this Process process, string fileName, string args, bool showDebug = false, CancellationToken cancellationToken = null)
Parameters
Type | Name | Description |
---|---|---|
Process | process | This Process. |
String | fileName | The process executable to run. |
String | args | The Process arguments. |
Boolean | showDebug | Should output debug code to Editor Console? |
CancellationToken | cancellationToken |
Returns
Type | Description |
---|---|
Task<ProcessResult> |