internal FsFileData GetFile(FileComparisonInfo comparisonInfo, long length) { Monitor.Enter(_fileData); try { throw new NotImplementedException(); } finally { Monitor.Exit(_fileData); } }
internal void PurgeFileData(long length, FileComparisonInfo comparisonInfo) { Monitor.Enter(_fileData); try { throw new NotImplementedException(); } finally { Monitor.Exit(_fileData); } }
internal FsFileData GetFileData(long length, FileComparisonInfo comparisonInfo) { Monitor.Enter(_fileData); try { SizeGroupedFileData fileData; if (_fileData.ContainsKey(length)) { fileData = _fileData[length]; } else { fileData = new SizeGroupedFileData(length); _fileData.Add(length, fileData); } return(fileData.GetFile(comparisonInfo)); } finally { Monitor.Exit(_fileData); } }
internal FsFileData GetFile(FileComparisonInfo comparisonInfo) { Monitor.Enter(_fileData); try { ComparisonGroupedData groupData; if (_fileData.ContainsKey(comparisonInfo.Checksum)) { groupData = _fileData[comparisonInfo.Checksum]; } else { groupData = new ComparisonGroupedData(); _fileData.Add(comparisonInfo.Checksum, groupData); } return(groupData.GetFile(comparisonInfo, _length)); } finally { Monitor.Exit(_fileData); } }
internal FsFileData(long length, FileComparisonInfo comparisonInfo) : this(length) { ComparisonInfo = comparisonInfo; }
internal void PurgeFile(FileComparisonInfo comparisonInfo) { throw new NotImplementedException(); }