React to WebListener settings API changes

This commit is contained in:
Chris R 2016-08-18 13:57:54 -07:00
parent 735118bda5
commit 7caf2518ff
2 changed files with 6 additions and 6 deletions

View File

@ -21,7 +21,7 @@ namespace ServerComparison.TestSites.Standalone
.UseIISIntegration()
.UseStartup("ServerComparison.TestSites.Standalone");
// Switch beteween Kestrel and WebListener for different tests. Default to Kestrel for normal app execution.
// Switch between Kestrel and WebListener for different tests. Default to Kestrel for normal app execution.
if (string.Equals(builder.GetSetting("server"), "Microsoft.AspNetCore.Server.WebListener", System.StringComparison.Ordinal))
{
if (string.Equals(builder.GetSetting("environment") ??
@ -33,8 +33,8 @@ namespace ServerComparison.TestSites.Standalone
// modify the applicationHost.config to enable NTLM.
builder.UseWebListener(options =>
{
options.Listener.AuthenticationManager.AllowAnonymous = true;
options.Listener.AuthenticationManager.AuthenticationSchemes =
options.ListenerSettings.Authentication.AllowAnonymous = true;
options.ListenerSettings.Authentication.Schemes =
AuthenticationSchemes.Negotiate | AuthenticationSchemes.NTLM;
});
}

View File

@ -21,7 +21,7 @@ namespace ServerComparison.TestSites
.UseIISIntegration()
.UseStartup("ServerComparison.TestSites");
// Switch beteween Kestrel and WebListener for different tests. Default to Kestrel for normal app execution.
// Switch between Kestrel and WebListener for different tests. Default to Kestrel for normal app execution.
if (string.Equals(builder.GetSetting("server"), "Microsoft.AspNetCore.Server.WebListener", System.StringComparison.Ordinal))
{
if (string.Equals(builder.GetSetting("environment") ??
@ -33,8 +33,8 @@ namespace ServerComparison.TestSites
// modify the applicationHost.config to enable NTLM.
builder.UseWebListener(options =>
{
options.Listener.AuthenticationManager.AllowAnonymous = true;
options.Listener.AuthenticationManager.AuthenticationSchemes =
options.ListenerSettings.Authentication.AllowAnonymous = true;
options.ListenerSettings.Authentication.Schemes =
AuthenticationSchemes.Negotiate | AuthenticationSchemes.NTLM;
});
}