protected sealed override void PutFileInfo(CacheFileInfo fileInfo) { // Reference tables don't need no reference tables of their own if (fileInfo.Index != Index.ReferenceTables) { this.GetReferenceTable(fileInfo.Index, true).SetFileInfo(fileInfo.FileId.Value, fileInfo); this._changedReferenceTableIndexes.Add(fileInfo.Index); } }
public void FromBinaryFile(BinaryFile file) { this.Info = file.Info; var thisBinaryFile = this as BinaryFile; if (thisBinaryFile != null) { thisBinaryFile.Data = file.Data; } else { this.Decode(file.Data); } }
/// <summary> /// Implements the logic for actually retrieving file from the cache. /// </summary> /// <returns></returns> protected abstract BinaryFile GetBinaryFile(CacheFileInfo fileInfo);
/// <summary> /// Writes the given info to the cache. /// </summary> /// <param name="fileInfo"></param> /// <returns></returns> protected abstract void PutFileInfo(CacheFileInfo fileInfo);