oops, updated the reset to resetcollections for clearing collections for resolvers.
This commit is contained in:
@@ -80,7 +80,7 @@ namespace Umbraco.Core.ObjectResolution
|
||||
|
||||
public void Dispose()
|
||||
{
|
||||
Reset();
|
||||
ResetCollections();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -141,7 +141,7 @@ namespace Umbraco.Core.ObjectResolution
|
||||
private void DisposeResources()
|
||||
{
|
||||
_legacyResolver.Dispose();
|
||||
Reset();
|
||||
ResetCollections();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -340,7 +340,7 @@ namespace Umbraco.Core.ObjectResolution
|
||||
/// WARNING! Do not use this unless you know what you are doing, clear all types registered and instances
|
||||
/// created. Typically only used if a resolver is no longer used in an application and memory is to be GC'd
|
||||
/// </summary>
|
||||
internal void Reset()
|
||||
internal void ResetCollections()
|
||||
{
|
||||
using (new WriteLock(_lock))
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user