Print started

This commit is contained in:
David Fowler 2015-05-12 18:32:53 -07:00
parent a4a37b2f0f
commit 8c58f7ac1a
1 changed files with 1 additions and 0 deletions

View File

@ -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();