Threading Issue with DbContext in Azure Functions Using Cosmos DB Provider, and MediatR
I’m using Entity Framework Core with the Cosmos DB provider in Azure Functions, and when two HTTP-triggered functions are invoked simultaneously, I get an exception stating that the DbContext
was accessed from another thread.