From 7caf2518ff66927c8e6673927e908d5b1d530338 Mon Sep 17 00:00:00 2001 From: Chris R Date: Thu, 18 Aug 2016 13:57:54 -0700 Subject: [PATCH] React to WebListener settings API changes --- test/ServerComparison.TestSites.Standalone/Program.cs | 6 +++--- test/ServerComparison.TestSites/Program.cs | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/test/ServerComparison.TestSites.Standalone/Program.cs b/test/ServerComparison.TestSites.Standalone/Program.cs index 6c63b24ab6..f8d42cb693 100644 --- a/test/ServerComparison.TestSites.Standalone/Program.cs +++ b/test/ServerComparison.TestSites.Standalone/Program.cs @@ -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; }); } diff --git a/test/ServerComparison.TestSites/Program.cs b/test/ServerComparison.TestSites/Program.cs index d85b138e76..ae990d9995 100644 --- a/test/ServerComparison.TestSites/Program.cs +++ b/test/ServerComparison.TestSites/Program.cs @@ -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; }); }