Exemple #1
0
 private static Task ConfigureShutdownHandler()
 {
     return(Task.Run(() =>
                     ShutdownHandler.Configure(ShutdownCancellationTokenSource)));
 }
Exemple #2
0
 private static async Task ConfigureShutdownHandler() =>
 await Task.Run(() =>
                ShutdownHandler.Configure(ShutdownCancellationTokenSource));