Exemple #1
0
 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);
     }
 }
Exemple #2
0
        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);
            }
        }
Exemple #3
0
 /// <summary>
 /// Implements the logic for actually retrieving file from the cache.
 /// </summary>
 /// <returns></returns>
 protected abstract BinaryFile GetBinaryFile(CacheFileInfo fileInfo);
Exemple #4
0
 /// <summary>
 /// Writes the given info to the cache.
 /// </summary>
 /// <param name="fileInfo"></param>
 /// <returns></returns>
 protected abstract void PutFileInfo(CacheFileInfo fileInfo);