Beispiel #1
0
 public bool ShouldTakeSnapshot(Snapshot previousSnapshot)
 {
     return  previousSnapshot == null || 
             previousSnapshot.LastEventSequence < this.LastEventSequence;
 }
Beispiel #2
0
 public void LoadSnapshot(Snapshot snapshot)
 {
     var s = (InventoryItemSnapshot) snapshot;
     this.ItemId = s.ItemId;
     this.Description = s.Description;
 }