Try our conversational search powered by Generative AI!

Custom Content Providers and threading

Vote:
 

I have a site with mutliple custom content providers. On site startup it triggers the LoadChildrenReferencesAndTypes method of the content provider. This calls the database and get the custom data to convert it to IContent. I am using a DbContext to access the database. The problem I am running into is that I am getting an error intermittently that DbContext is busy. DbContext is not thread safe and I assume these custom content providers are operating on different threads. Am I stuck here? Do I need to get my data from teh database differently? Like with ADO? Can anyone confirm if these custom content providers really are multi-threaded?

#282265
Jun 22, 2022 17:48
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.