diff --git a/src/Identity/samples/IdentitySample.Mvc/Program.cs b/src/Identity/samples/IdentitySample.Mvc/Program.cs index 03110954a3a2..b157694babc8 100644 --- a/src/Identity/samples/IdentitySample.Mvc/Program.cs +++ b/src/Identity/samples/IdentitySample.Mvc/Program.cs @@ -7,14 +7,16 @@ public static class Program { public static void Main(string[] args) { - var host = new WebHostBuilder() - .UseKestrel() - .UseContentRoot(Directory.GetCurrentDirectory()) - .UseIISIntegration() - .UseStartup() - .Build(); + var host = CreateHostBuilder(args).Build(); host.Run(); } + + public static IWebHostBuilder CreateHostBuilder(string[] args) => + new WebHostBuilder() + .UseKestrel() + .UseContentRoot(Directory.GetCurrentDirectory()) + .UseIISIntegration() + .UseStartup(); } -} \ No newline at end of file +}