From 981d040cc254dd15c5022c4d9cfd216501efdb87 Mon Sep 17 00:00:00 2001 From: Hao Kung Date: Thu, 25 Jun 2015 17:36:51 -0700 Subject: [PATCH] Fix build --- test/ServerComparison.TestSites/StartupNtlmAuthentication.cs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/test/ServerComparison.TestSites/StartupNtlmAuthentication.cs b/test/ServerComparison.TestSites/StartupNtlmAuthentication.cs index 294ed28cad..fbccb64f7a 100644 --- a/test/ServerComparison.TestSites/StartupNtlmAuthentication.cs +++ b/test/ServerComparison.TestSites/StartupNtlmAuthentication.cs @@ -56,7 +56,7 @@ namespace ServerComparison.TestSites serverInformation.Listener.AuthenticationManager.AuthenticationSchemes = AuthenticationSchemes.NTLM | AuthenticationSchemes.AllowAnonymous; } - app.Use((context, next) => + app.Use((context, next) => { if (context.Request.Path.Equals(new PathString("/Anonymous"))) { @@ -71,8 +71,7 @@ namespace ServerComparison.TestSites } else { - context.Authentication.Challenge(); - return Task.FromResult(0); + return context.Authentication.ChallengeAsync(); } }