Print started
This commit is contained in:
parent
a4a37b2f0f
commit
8c58f7ac1a
|
|
@ -34,6 +34,7 @@ namespace Microsoft.AspNet.Hosting
|
|||
var host = new WebHostBuilder(_serviceProvider, config).Build();
|
||||
using (host.Start())
|
||||
{
|
||||
Console.WriteLine("Started");
|
||||
var appShutdownService = host.ApplicationServices.GetRequiredService<IApplicationShutdown>();
|
||||
Console.CancelKeyPress += delegate { appShutdownService.RequestShutdown(); };
|
||||
appShutdownService.ShutdownRequested.WaitHandle.WaitOne();
|
||||
|
|
|
|||
Loading…
Reference in New Issue