protected virtual void Dispose(bool disposing)
 {
     if (disposing)
     {
         _taskTracker?.Dispose();
         BackingContentSession?.Dispose();
         WriteThroughContentSession?.Dispose();
         _tempDirectory.Dispose();
     }
 }
Ejemplo n.º 2
0
        /// <summary>
        ///     Dispose pattern.
        /// </summary>
        private void Dispose(bool disposing)
        {
            if (_disposed)
            {
                return;
            }

            if (disposing)
            {
                _sessionForStream.Dispose();
                _sessionForPath.Dispose();
            }

            _disposed = true;
        }