We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f35eb17 commit 5ab47f3Copy full SHA for 5ab47f3
src/Identity/samples/IdentitySample.Mvc/Program.cs
@@ -7,14 +7,16 @@ public static class Program
7
{
8
public static void Main(string[] args)
9
10
- var host = new WebHostBuilder()
11
- .UseKestrel()
12
- .UseContentRoot(Directory.GetCurrentDirectory())
13
- .UseIISIntegration()
14
- .UseStartup<Startup>()
15
- .Build();
16
+ var host = CreateHostBuilder(args).Build();
17
host.Run();
18
}
+
+ public static IWebHostBuilder CreateHostBuilder(string[] args) =>
+ new WebHostBuilder()
+ .UseKestrel()
+ .UseContentRoot(Directory.GetCurrentDirectory())
19
+ .UseIISIntegration()
20
+ .UseStartup<Startup>();
21
-}
22
+}
0 commit comments