예제 #1
0
 public RootInfo Handle(RootUpdated e, RootInfo state)
 {
     return(new RootInfo
     {
         CreatedAt = state.CreatedAt,
         UpdatedAt = e.Timestamp,
         NumberOfUpdates = state.NumberOfUpdates + 1,
     });
 }
예제 #2
0
파일: Root.cs 프로젝트: zedr0n/ZES
 private void ApplyEvent(RootUpdated e)
 {
     UpdatedAt = e.Timestamp;
 }