Interface IProcessRunner
Inherited Members
System.IDisposable.Dispose()
Assembly: MediaBrowser.Model.dll
Syntax
public interface IProcessRunner : IDisposable
Properties
LastExitCode
Declaration
int? LastExitCode { get; }
Property Value
Type |
Description |
System.Nullable<System.Int32> |
|
Name
Declaration
Property Value
Type |
Description |
System.String |
|
Methods
Run(String, String)
Declaration
bool Run(string exeFileName, string commandLineArgs)
Parameters
Type |
Name |
Description |
System.String |
exeFileName |
|
System.String |
commandLineArgs |
|
Returns
Type |
Description |
System.Boolean |
|
Run(String, String, String)
Declaration
bool Run(string exeFileName, string commandLineArgs, string workingDirectory)
Parameters
Type |
Name |
Description |
System.String |
exeFileName |
|
System.String |
commandLineArgs |
|
System.String |
workingDirectory |
|
Returns
Type |
Description |
System.Boolean |
|
WaitAndKillAsync(Int32)
Declaration
Task<bool> WaitAndKillAsync(int timeoutMs)
Parameters
Type |
Name |
Description |
System.Int32 |
timeoutMs |
|
Returns
Type |
Description |
System.Threading.Tasks.Task<System.Boolean> |
|
WaitForExitAsync(Int32, CancellationToken)
Declaration
Task<bool> WaitForExitAsync(int timeoutMs, CancellationToken cancellationToken = default(CancellationToken))
Parameters
Type |
Name |
Description |
System.Int32 |
timeoutMs |
|
System.Threading.CancellationToken |
cancellationToken |
|
Returns
Type |
Description |
System.Threading.Tasks.Task<System.Boolean> |
|
Extension Methods