Don't miss out Virtual Happy Hour this Friday (April 26).

Try our conversational search powered by Generative AI!

ContentProviderDependencyHelper is causing lock contention in StructureMap

Found in

EPiServer.CMS.Core 9.8.2

Fixed in

EPiServer.CMS.Core 9.12.3

(Or a related package)

Created

Aug 19, 2016

Updated

Oct 04, 2016

Area

CMS Core

State

Closed, Fixed and tested


Description

ContentProviderDependencyHelper is wrapped by an Injected<T>. Due to heavy usage in ContentProviderBase, many calls are being made to StructureMap, causing lock contention. In some cases, this issue caused a site to effectively hang when too many threads are trying to get instances of this class from StructureMap.

NOTE: This fix removes the wrapping Injected<T> on the INTERNAL API DependencyHelper on the Content Provider base class. If you used this API, you need to modify your code.