Example #1
0
 public RootInfo Handle(RootUpdated e, RootInfo state)
 {
     return(new RootInfo
     {
         CreatedAt = state.CreatedAt,
         UpdatedAt = e.Timestamp,
         NumberOfUpdates = state.NumberOfUpdates + 1,
     });
 }
Example #2
0
File: Root.cs Project: zedr0n/ZES
 private void ApplyEvent(RootUpdated e)
 {
     UpdatedAt = e.Timestamp;
 }