Swashbuckle.AspNetCore
Swashbuckle.AspNetCore copied to clipboard
Replacing thread-safe version dictionary objects for SchemaRepository
I am trying to replace the GeneratePaths part of the logic of SwaggerGenerator with concurrent execution. I accidentally found that the dictionary storage structure in the SchemaRepository object is not thread-safe, which causes the logic of concurrent construction to not proceed normally, prompting an exception when adding a dictionary, here by replacing the storage structure solves this problem