public static Task SendCommandAsync(this AppRunner runner, string command)
 {
     return(runner.SendCommandAsync(command, CommonTestTimeouts.SendCommand));
 }
 public static async Task SendCommandAsync(this AppRunner runner, string command, TimeSpan timeout)
 {
     using CancellationTokenSource cancellation = new(timeout);
     await runner.SendCommandAsync(command, cancellation.Token).ConfigureAwait(false);
 }
 public static async Task SendEndScenarioAsync(this AppRunner runner, TimeSpan timeout)
 {
     using CancellationTokenSource cancellation = new(timeout);
     await runner.EndScenarioAsync(cancellation.Token).ConfigureAwait(false);
 }
 public static Task SendEndScenarioAsync(this AppRunner runner)
 {
     return(runner.SendEndScenarioAsync(CommonTestTimeouts.SendCommand));
 }
 public static async Task <int> WaitForExitAsync(this AppRunner runner, TimeSpan timeout)
 {
     using CancellationTokenSource cancellation = new(timeout);
     return(await runner.WaitForExitAsync(cancellation.Token).ConfigureAwait(false));
 }
 public static Task <int> WaitForExitAsync(this AppRunner runner)
 {
     return(runner.WaitForExitAsync(CommonTestTimeouts.WaitForExit));
 }
 public static Task StartAsync(this AppRunner runner)
 {
     return(runner.StartAsync(CommonTestTimeouts.StartProcess));
 }