Fix build

This commit is contained in:
Hao Kung 2015-06-25 17:36:51 -07:00
parent c77f3978d4
commit 981d040cc2
1 changed files with 2 additions and 3 deletions

View File

@ -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();
}
}