Skip to content
This repository was archived by the owner on Nov 20, 2018. It is now read-only.

Commit a9e2842

Browse files
committed
Ordinal
1 parent a01fba5 commit a9e2842

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/Microsoft.AspNetCore.Authentication.Core/AuthenticationHandlerProvider.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
// Copyright (c) .NET Foundation. All rights reserved.
22
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
33

4+
using System;
45
using System.Collections.Generic;
56
using System.Threading.Tasks;
67
using Microsoft.AspNetCore.Http;
@@ -18,7 +19,7 @@ public AuthenticationHandlerProvider(IAuthenticationSchemeProvider schemes)
1819
public IAuthenticationSchemeProvider Schemes { get; }
1920

2021
// handler instance cache, need to initialize once per request
21-
private Dictionary<string, IAuthenticationHandler> _handlerMap = new Dictionary<string, IAuthenticationHandler>();
22+
private Dictionary<string, IAuthenticationHandler> _handlerMap = new Dictionary<string, IAuthenticationHandler>(StringComparer.Ordinal);
2223

2324
public async Task<IAuthenticationHandler> GetHandlerAsync(HttpContext context, string authenticationScheme)
2425
{

0 commit comments

Comments
 (0)