Пример #1
0
 private static Task ConfigureShutdownHandler()
 {
     return(Task.Run(() =>
                     ShutdownHandler.Configure(ShutdownCancellationTokenSource)));
 }
Пример #2
0
 private static async Task ConfigureShutdownHandler() =>
 await Task.Run(() =>
                ShutdownHandler.Configure(ShutdownCancellationTokenSource));