From 7b513de5c3a8379706a76c6b7bb0380ee83194b7 Mon Sep 17 00:00:00 2001 From: Mohammad Rahhal Date: Thu, 9 Jun 2016 12:34:17 +0300 Subject: [PATCH] Output "Application is shutting down" message --- src/Microsoft.AspNetCore.Hosting/WebHostExtensions.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Microsoft.AspNetCore.Hosting/WebHostExtensions.cs b/src/Microsoft.AspNetCore.Hosting/WebHostExtensions.cs index 4c2d815010..6504208c0b 100644 --- a/src/Microsoft.AspNetCore.Hosting/WebHostExtensions.cs +++ b/src/Microsoft.AspNetCore.Hosting/WebHostExtensions.cs @@ -20,6 +20,7 @@ namespace Microsoft.AspNetCore.Hosting { Console.CancelKeyPress += (sender, eventArgs) => { + Console.WriteLine("Application is shutting down..."); cts.Cancel(); // Don't terminate the process immediately, wait for the Main thread to exit gracefully.