Bloom.ImageProcessing.RuntimeImageProcessor.Dispose C# (CSharp) Méthode

Dispose() public méthode

public Dispose ( ) : void
Résultat void
        public void Dispose()
        {
            if (_originalPathToProcessedVersionPath == null)
                return;

            TryToDeleteCachedImages();
            _originalPathToProcessedVersionPath = null;

            //NB: this turns out to be dangerous. Without it, we still delete all we can, leave some files around
            //each time, and then deleting them on the next run
            //			_cacheFolder.Dispose();

            GC.SuppressFinalize(this);
        }

Usage Example

Exemple #1
0
        protected override void Dispose(bool fDisposing)
        {
            if (fDisposing)
            {
                if (_cache != null)
                {
                    _cache.Dispose();
                }
                _cache = null;
            }

            base.Dispose(fDisposing);
        }