Beispiel #1
0
 public void Dispose()
 {
     if (_chunkStorageWriter == null)
     {
         return;
     }
     _chunkStorageWriter.Dispose();
     _chunkStorageWriter = null;
 }
Beispiel #2
0
            public FileChunkReference(long size, int count, IChunkStorage <T> chunkStorage, bool chunkWriter = false)
            {
                _chunkStorage = chunkStorage;
                TotalSize     = size;
                Count         = count;

                if (chunkWriter)
                {
                    _chunkStorageWriter = chunkStorage.OpenForWrite();
                }
            }