Output "Application is shutting down" message

This commit is contained in:
Mohammad Rahhal 2016-06-09 12:34:17 +03:00 committed by Chris R
parent ef0de2b6e7
commit 7b513de5c3
1 changed files with 1 additions and 0 deletions

View File

@ -20,6 +20,7 @@ namespace Microsoft.AspNetCore.Hosting
{ {
Console.CancelKeyPress += (sender, eventArgs) => Console.CancelKeyPress += (sender, eventArgs) =>
{ {
Console.WriteLine("Application is shutting down...");
cts.Cancel(); cts.Cancel();
// Don't terminate the process immediately, wait for the Main thread to exit gracefully. // Don't terminate the process immediately, wait for the Main thread to exit gracefully.