Ensures all resolvers are sealed. Changes CacheRefreshersResolver, DataTypesResolver, MacroFieldEditorsResolver, PackageActionsResolver, ActionsResolver
to all be lazy resolvers as they are not needed instantly on app startup (not needed by the front-end) This will make app startup a lot quicker. Fixes ActionsResolver to not use the PluginManager to resolve the types when it is instantiating them since these are passed in the ctor. Updates all unit tests to use lazy delegate for these resolvers and they are all passing.
This commit is contained in:
@@ -320,16 +320,7 @@ namespace Umbraco.Core.ObjectResolution
|
||||
{
|
||||
return new WriteLock(_lock);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Returns an upgradeable read lock for use when reading/modifying collections
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
protected UpgradeableReadLock GetUpgradeableReadLock()
|
||||
{
|
||||
return new UpgradeableReadLock(_lock);
|
||||
}
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Throws an exception if resolution is frozen
|
||||
/// </summary>
|
||||
|
||||
Reference in New Issue
Block a user