Пример #1
0
 /// <summary>
 /// Dispose the object.
 /// </summary>
 /// <param name="disposing"><code>true</code> when called from <see cref="Dispose()"/>.</param>
 protected virtual void Dispose(bool disposing)
 {
     if (!_disposedValue)
     {
         if (disposing)
         {
             _tempData.Dispose();
             if (!_notifiedAsFinished)
             {
                 _fileSystem.UploadFinished(File.Id);
             }
         }
         _disposedValue = true;
     }
 }
Пример #2
0
 protected virtual void Dispose(bool disposing)
 {
     if (!_disposedValue)
     {
         if (disposing)
         {
             _tempData.Dispose();
             if (!_notifiedAsFinished)
             {
                 _fileSystem.UploadFinished(ParentId, Name, true).Wait();
             }
         }
         _disposedValue = true;
     }
 }