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:
Shannon Deminick
2013-01-23 18:40:40 +03:00
parent f467b8cb6c
commit 82c2560822
20 changed files with 36 additions and 44 deletions

View File

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