public void Close(FileWrapper file) { lock (this) { if (_files.ContainsKey(file.Path)) { FileCounter counter = _files[file.Path]; if (--counter.Count == 0) { counter.Stream.Dispose(); _files.Remove(file.Path); } } } }
public FileSync(FileWrapper file) { _file = file; }