/// <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; } }
protected virtual void Dispose(bool disposing) { if (!_disposedValue) { if (disposing) { _tempData.Dispose(); if (!_notifiedAsFinished) { _fileSystem.UploadFinished(ParentId, Name, true).Wait(); } } _disposedValue = true; } }