src/Autofac/Core/Lifetime/LifetimeScope.cs
/// <summary>
/// Releases unmanaged and - optionally - managed resources.
/// </summary>
/// <param name="disposing"><c>true</c> to release both managed and unmanaged resources; <c>false</c> to release only unmanaged resources.</param>
Releases unmanaged and - optionally - managed resources.
Releases unmanaged and - optionally - managed resources .
protected override void Dispose(bool disposing)
        {
            if (disposing)
            {
                var handler = CurrentScopeEnding;
                try
                {
                    handler?.Invoke(this, new LifetimeScopeEndingEventArgs(this));
                }
                finally
                {
                    Disposer.Dispose();
                }
                _sharedInstances.Clear();
                parentScope = null;
            }
            base.Dispose(disposing);
        }
protected override void Dispose ( bool disposing ) { if ( disposing ) { var handler = CurrentScopeEnding ; try { handler ? . Invoke ( this , new LifetimeScopeEndingEventArgs ( this ) ) ; } finally { Disposer . Dispose ( ) ; } _sharedInstances . Clear ( ) ; parentScope = null ; } base . Dispose ( disposing ) ; }
Releases unmanaged and - optionally - managed resources.
Releases unmanaged and - optionally - managed resources .
// ReSharper disable once InconsistentlySynchronizedField
disposing
bool
None