Esempio n. 1
0
        public async Task StopAsync(CancellationToken token = default)
        {
            await _cli.StopAsync(token).ConfigureAwait(false);

            await WaitForShutdownAsync(token).ConfigureAwait(false);
        }
Esempio n. 2
0
 public void Quit(ICommandLineInterface cli)
 {
     // Do not await it because the app will wait
     // until the command execution is over.
     cli.StopAsync();
 }