Updating to 2.1RC1

This commit is contained in:
Steve Smith
2018-05-19 17:13:55 -04:00
parent 4e7f3d7302
commit 80604062d9
12 changed files with 25 additions and 34 deletions

View File

@@ -13,7 +13,8 @@ namespace Microsoft.eShopWeb
{
public static void Main(string[] args)
{
var host = BuildWebHost(args);
var host = CreateWebHostBuilder(args)
.Build();
using (var scope = host.Services.CreateScope())
{
@@ -38,10 +39,9 @@ namespace Microsoft.eShopWeb
host.Run();
}
public static IWebHost BuildWebHost(string[] args) =>
public static IWebHostBuilder CreateWebHostBuilder(string[] args) =>
WebHost.CreateDefaultBuilder(args)
.UseUrls("http://0.0.0.0:5106")
.UseStartup<Startup>()
.Build();
.UseStartup<Startup>();
}
}