Swashbuckle.AspNetCore icon indicating copy to clipboard operation
Swashbuckle.AspNetCore copied to clipboard

Replacing thread-safe version dictionary objects for SchemaRepository

Open shmilyyan opened this issue 2 years ago • 0 comments

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

shmilyyan avatar Oct 22 '22 07:10 shmilyyan