Reacting to hosting rename
This commit is contained in:
parent
9e032102f6
commit
115e89d6f8
|
|
@ -73,13 +73,13 @@ namespace AntiforgerySample
|
|||
|
||||
public static void Main(string[] args)
|
||||
{
|
||||
var application = new WebApplicationBuilder()
|
||||
.UseConfiguration(WebApplicationConfiguration.GetDefault(args))
|
||||
var host = new WebHostBuilder()
|
||||
.UseDefaultConfiguration(args)
|
||||
.UseIISPlatformHandlerUrl()
|
||||
.UseStartup<Startup>()
|
||||
.Build();
|
||||
|
||||
application.Run();
|
||||
host.Run();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -23,7 +23,7 @@ namespace Microsoft.AspNet.Antiforgery.FunctionalTests
|
|||
new KeyValuePair<string, string>("webroot", "wwwroot")
|
||||
});
|
||||
|
||||
var builder = new WebApplicationBuilder()
|
||||
var builder = new WebHostBuilder()
|
||||
.UseConfiguration(configurationBuilder.Build())
|
||||
.UseStartup(typeof(AntiforgerySample.Startup))
|
||||
.UseApplicationBasePath("../../../../samples/AntiforgerySample");
|
||||
|
|
|
|||
Loading…
Reference in New Issue