Example #1
0
 public void When(UserDeactivated e)
 {
     _store.UpdateOrThrow(e.AggregateId, (view) =>
     {
         view.DeactivatedAt = e.DeactivatedAt;
         view.Lifetime      = view.CreatedAt.Subtract(e.DeactivatedAt).Duration();
     });
 }
Example #2
0
 public void When(UserDeactivated e)
 {
     _store.TryDelete(e.AggregateId);
 }
Example #3
0
 public void Handle(UserDeactivated message)
 {
     _service.UpdateMember(message.UserId);
 }