Revert "use WebHost.CreateDefaultBuilder in IdentitySample.Mvc"
This reverts commit 20ec50d5d2.
This commit is contained in:
parent
c69b0423a4
commit
f147951d92
|
|
@ -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<Startup>()
|
||||
.Build();
|
||||
|
||||
host.Run();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Reference in New Issue