Use command line args when configuring the server

This commit is contained in:
Frank A. Krueger 2017-11-15 22:01:51 -06:00
parent b67e87d19e
commit 3a7b01e747
1 changed files with 7 additions and 6 deletions

View File

@ -19,6 +19,7 @@ namespace AspNetCoreMvc
public static IWebHost BuildWebHost (string[] args) =>
WebHost.CreateDefaultBuilder (args)
.UseConfiguration (new ConfigurationBuilder ().AddCommandLine (args).Build ())
.UseStartup<Startup> ()
.Build ();
}