From f147951d92ff5b4413d7ffdd55dcc91dfcfdfdca Mon Sep 17 00:00:00 2001 From: Hao Kung Date: Tue, 24 Oct 2017 14:54:41 -0700 Subject: [PATCH] Revert "use WebHost.CreateDefaultBuilder in IdentitySample.Mvc" This reverts commit 20ec50d5d26f2052afcfcf640c69c6049208e799. --- samples/IdentitySample.Mvc/Program.cs | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) diff --git a/samples/IdentitySample.Mvc/Program.cs b/samples/IdentitySample.Mvc/Program.cs index a49f6eaad4..03110954a3 100644 --- a/samples/IdentitySample.Mvc/Program.cs +++ b/samples/IdentitySample.Mvc/Program.cs @@ -1,15 +1,20 @@ -using Microsoft.AspNetCore; +using System.IO; using Microsoft.AspNetCore.Hosting; namespace IdentitySample { public static class Program { - public static void Main(string[] args) => BuildWebHost(args).Run(); - - public static IWebHost BuildWebHost(string[] args) => - WebHost.CreateDefaultBuilder(args) + public static void Main(string[] args) + { + var host = new WebHostBuilder() + .UseKestrel() + .UseContentRoot(Directory.GetCurrentDirectory()) + .UseIISIntegration() .UseStartup() .Build(); + + host.Run(); + } } -} +} \ No newline at end of file