We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5015239 commit 4e54dfdCopy full SHA for 4e54dfd
src/Microsoft.OpenApi/Reader/OpenApiReaderRegistry.cs
@@ -2,6 +2,7 @@
2
// Licensed under the MIT license.
3
4
using System;
5
+using System.Collections.Concurrent;
6
using System.Collections.Generic;
7
using Microsoft.OpenApi.Interfaces;
8
@@ -12,7 +13,7 @@ namespace Microsoft.OpenApi.Reader
12
13
/// </summary>
14
public static class OpenApiReaderRegistry
15
{
- private static readonly Dictionary<string, IOpenApiReader> _readers = new(StringComparer.OrdinalIgnoreCase);
16
+ private static readonly ConcurrentDictionary<string, IOpenApiReader> _readers = new(StringComparer.OrdinalIgnoreCase);
17
18
/// <summary>
19
/// Defines a default OpenAPI reader.
0 commit comments