コード例 #1
0
 /// <inheritdoc />
 public override void WriteInfo(StorageInfo info, bool stableChunkChanged)
 {
     if (stableChunkChanged)
     {
         info.RefreshStableChunks();
     }
     LocalSyncData.WriteInfo(Id, info);
 }
コード例 #2
0
 /// <inheritdoc />
 public override void WriteInfo(StorageInfo info, bool stableChunkChanged)
 {
     using (var s = Memory.CreateViewStream())
     {
         using (var ms = new MemoryStream())
         {
             info.WriteToStream(ms);
             ms.Position = 0;
             ms.CopyTo(s);
             s.Flush();
         }
         if (stableChunkChanged)
         {
             info.RefreshStableChunks();
         }
         _cachedInfo = info;
     }
 }