Skip to content

Commit 245d756

Browse files
authored
Update ContainerControlledLifetimeManager.cs
1 parent e54c3cf commit 245d756

File tree

1 file changed

+1
-16
lines changed

1 file changed

+1
-16
lines changed

src/Lifetime/ContainerControlledLifetimeManager.cs

Lines changed: 1 addition & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ namespace Unity.Lifetime
1313
/// </summary>
1414
public class ContainerControlledLifetimeManager : SynchronizedLifetimeManager,
1515
ISingletonLifetimePolicy,
16-
IBuildPlanPolicy,
1716
IDisposable
1817
{
1918

@@ -42,21 +41,7 @@ public void Dispose()
4241
Dispose(true);
4342
GC.SuppressFinalize(this);
4443
}
45-
46-
/// <summary>
47-
/// Standard Dispose pattern implementation.
48-
/// </summary>
49-
/// <param name="disposing">Always true, since we don't have a finalizer.</param>
50-
protected virtual void Dispose(bool disposing)
51-
{
52-
if (Value == null) return;
53-
if (Value is IDisposable disposable)
54-
{
55-
disposable.Dispose();
56-
}
57-
Value = null;
58-
}
59-
44+
6045
#endregion
6146
}
6247
}

0 commit comments

Comments
 (0)