Fix IList to IEnumerable change.

This commit is contained in:
Chris Ross 2014-07-03 10:06:24 -07:00
parent 81c967dfa4
commit fe0e5be913
1 changed files with 2 additions and 2 deletions

View File

@ -38,7 +38,7 @@ namespace Microsoft.AspNet.Server.WebListener
private AuthenticationTypes _customChallenges; private AuthenticationTypes _customChallenges;
internal AuthenticationHandler(RequestContext requestContext) internal AuthenticationHandler(RequestContext requestContext)
{ {
_requestContext = requestContext; _requestContext = requestContext;
_authTypes = requestContext.AuthenticationChallenges; _authTypes = requestContext.AuthenticationChallenges;
_customChallenges = AuthenticationTypes.None; _customChallenges = AuthenticationTypes.None;
@ -79,7 +79,7 @@ namespace Microsoft.AspNet.Server.WebListener
{ {
var authString = authType.ToString(); var authString = authType.ToString();
// Not including any auth types means it's a blanket challenge for any auth type. // Not including any auth types means it's a blanket challenge for any auth type.
if (context.AuthenticationTypes == null || context.AuthenticationTypes.Count == 0 if (context.AuthenticationTypes == null || !context.AuthenticationTypes.Any()
|| context.AuthenticationTypes.Contains(authString, StringComparer.Ordinal)) || context.AuthenticationTypes.Contains(authString, StringComparer.Ordinal))
{ {
_customChallenges |= authType; _customChallenges |= authType;