src/packages/EmbedIO/Files/FileModule.cs
/// <summary>
/// Releases unmanaged and - optionally - managed resources.
/// </summary>
/// <param name="disposing"><see langword="true"/> to release both managed and unmanaged resources;
/// <see langword="false"/> to release only unmanaged resources.</param>
Releases unmanaged and - optionally - managed resources.
Releases unmanaged and - optionally - managed resources .
protected virtual void Dispose(bool disposing)
        {
            if (!disposing)
                return;
            if (_cacheSection != null)
                Provider.ResourceChanged -= _cacheSection.Remove;
            if (Provider is IDisposable disposableProvider)
                disposableProvider.Dispose();
            if (_cacheSection != null)
                Cache.RemoveSection(_cacheSectionName);
        }
protected virtual void Dispose ( bool disposing ) { if ( ! disposing ) return ; if ( _cacheSection != null ) Provider . ResourceChanged -= _cacheSection . Remove ; if ( Provider is IDisposable disposableProvider ) disposableProvider . Dispose ( ) ; if ( _cacheSection != null ) Cache . RemoveSection ( _cacheSectionName ) ; }
Releases unmanaged and - optionally - managed resources.
Releases unmanaged and - optionally - managed resources .
disposing
bool
to release both managed and unmanaged resources;
to release only unmanaged resources.
to release both managed and unmanaged resources ; to release only unmanaged resources .