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;
|
using Microsoft.AspNetCore.Hosting;
|
||||||
|
|
||||||
namespace IdentitySample
|
namespace IdentitySample
|
||||||
{
|
{
|
||||||
public static class Program
|
public static class Program
|
||||||
{
|
{
|
||||||
public static void Main(string[] args) => BuildWebHost(args).Run();
|
public static void Main(string[] args)
|
||||||
|
{
|
||||||
public static IWebHost BuildWebHost(string[] args) =>
|
var host = new WebHostBuilder()
|
||||||
WebHost.CreateDefaultBuilder(args)
|
.UseKestrel()
|
||||||
|
.UseContentRoot(Directory.GetCurrentDirectory())
|
||||||
|
.UseIISIntegration()
|
||||||
.UseStartup<Startup>()
|
.UseStartup<Startup>()
|
||||||
.Build();
|
.Build();
|
||||||
|
|
||||||
|
host.Run();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Loading…
Reference in New Issue