Fix program main to actually use config

This commit is contained in:
Hao Kung 2015-04-24 00:10:36 -07:00
parent 234bbf82f2
commit 5093c06b2a
1 changed files with 1 additions and 1 deletions

View File

@ -34,7 +34,7 @@ namespace Microsoft.AspNet.Hosting
config.AddEnvironmentVariables();
config.AddCommandLine(args);
var host = new WebHostBuilder(_serviceProvider).Build();
var host = new WebHostBuilder(_serviceProvider, config).Build();
var serverShutdown = host.Start();
var loggerFactory = host.ApplicationServices.GetRequiredService<ILoggerFactory>();
var appShutdownService = host.ApplicationServices.GetRequiredService<IApplicationShutdown>();