public RootInfo Handle(RootUpdated e, RootInfo state) { return(new RootInfo { CreatedAt = state.CreatedAt, UpdatedAt = e.Timestamp, NumberOfUpdates = state.NumberOfUpdates + 1, }); }
private void ApplyEvent(RootUpdated e) { UpdatedAt = e.Timestamp; }