Adds more functionality for LazyManyObjectsResolverBase - adding type list delegates for lazy resolution.

This commit is contained in:
Shannon Deminick
2013-01-23 17:39:07 +03:00
parent aea1a03453
commit f467b8cb6c
3 changed files with 181 additions and 28 deletions

View File

@@ -320,7 +320,16 @@ 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>