React to IISIntegration changes.
This commit is contained in:
parent
5840689f64
commit
7ae9315cde
|
|
@ -12,7 +12,7 @@ namespace ServerComparison.TestSites
|
||||||
var host = new WebHostBuilder()
|
var host = new WebHostBuilder()
|
||||||
.UseServer("Microsoft.AspNetCore.Server.Kestrel")
|
.UseServer("Microsoft.AspNetCore.Server.Kestrel")
|
||||||
.UseDefaultConfiguration(args)
|
.UseDefaultConfiguration(args)
|
||||||
.UseIISUrl()
|
.UseIIS()
|
||||||
.UseStartup("ServerComparison.TestSites")
|
.UseStartup("ServerComparison.TestSites")
|
||||||
.Build();
|
.Build();
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -4,7 +4,6 @@
|
||||||
using System;
|
using System;
|
||||||
using Microsoft.AspNetCore.Builder;
|
using Microsoft.AspNetCore.Builder;
|
||||||
using Microsoft.AspNetCore.Http;
|
using Microsoft.AspNetCore.Http;
|
||||||
using Microsoft.AspNetCore.Http.Features;
|
|
||||||
using Microsoft.Extensions.Logging;
|
using Microsoft.Extensions.Logging;
|
||||||
using Microsoft.Net.Http.Server;
|
using Microsoft.Net.Http.Server;
|
||||||
|
|
||||||
|
|
@ -55,10 +54,6 @@ namespace ServerComparison.TestSites
|
||||||
listener.AuthenticationManager.AuthenticationSchemes =
|
listener.AuthenticationManager.AuthenticationSchemes =
|
||||||
AuthenticationSchemes.Negotiate | AuthenticationSchemes.NTLM | AuthenticationSchemes.AllowAnonymous;
|
AuthenticationSchemes.Negotiate | AuthenticationSchemes.NTLM | AuthenticationSchemes.AllowAnonymous;
|
||||||
}
|
}
|
||||||
else
|
|
||||||
{
|
|
||||||
app.UseIIS();
|
|
||||||
}
|
|
||||||
|
|
||||||
app.Use((context, next) =>
|
app.Use((context, next) =>
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue