Output "Application is shutting down" message
This commit is contained in:
parent
ef0de2b6e7
commit
7b513de5c3
|
|
@ -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.
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue