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?
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?