/// <inheritdoc /> public override void WriteInfo(StorageInfo info, bool stableChunkChanged) { if (stableChunkChanged) { info.RefreshStableChunks(); } LocalSyncData.WriteInfo(Id, info); }
/// <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; } }