From 809ce8c11dd45ec02f359c624671ee03ece07dfa Mon Sep 17 00:00:00 2001 From: Chris R Date: Tue, 1 Sep 2015 16:25:13 -0700 Subject: [PATCH] React to IAppBuilder.Server API change. --- .../StartupNtlmAuthentication.cs | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/test/ServerComparison.TestSites/StartupNtlmAuthentication.cs b/test/ServerComparison.TestSites/StartupNtlmAuthentication.cs index 104061fca7..b2584e3a9b 100644 --- a/test/ServerComparison.TestSites/StartupNtlmAuthentication.cs +++ b/test/ServerComparison.TestSites/StartupNtlmAuthentication.cs @@ -3,6 +3,7 @@ using Microsoft.AspNet.Builder; using Microsoft.AspNet.Http; +using Microsoft.AspNet.Http.Features; using Microsoft.AspNet.Server.WebListener; using Microsoft.Dnx.Runtime; using Microsoft.Framework.Configuration; @@ -49,10 +50,10 @@ namespace ServerComparison.TestSites // Set up NTLM authentication for WebListener like below. // For IIS and IISExpress: Use inetmgr to setup NTLM authentication on the application vDir or modify the applicationHost.config to enable NTLM. - if ((app.Server as ServerInformation) != null) + var listener = app.ServerFeatures.Get(); + if (listener != null) { - var serverInformation = (ServerInformation)app.Server; - serverInformation.Listener.AuthenticationManager.AuthenticationSchemes = + listener.AuthenticationManager.AuthenticationSchemes = AuthenticationSchemes.Negotiate | AuthenticationSchemes.NTLM | AuthenticationSchemes.AllowAnonymous; }