public bool RemoveDeltaSnapshot(Snapshot snapshot) { if (snapshot.IsAppOwner) { return(OutboundDeltaSnapshots.Remove(snapshot.Id)); } else { return(InboundDeltaSnapshots.Remove(snapshot.Id)); } }
public bool TryGetDeltaSnapshot(ushort id, bool isAppOwner, out Snapshot snapshot) { if (isAppOwner) { return(OutboundDeltaSnapshots.TryGetValue(id, out snapshot)); } else { return(InboundDeltaSnapshots.TryGetValue(id, out snapshot)); } }
public void AddDeltaSnapshot(Snapshot snapshot) { if (snapshot.IsAppOwner) { OutboundDeltaSnapshots.Add(snapshot.Id, snapshot); } else { InboundDeltaSnapshots.Add(snapshot.Id, snapshot); } }