예제 #1
0
 public Task Handle(BalanceChangedEvent_V1 msg, IMessageMetadata metadata)
 {
     _publisher.Publish(new BalanceAggregateChangedEventNotification {
         AggregateId = msg.SourceId
     });
     return(Task.CompletedTask);
 }
예제 #2
0
 private void Apply(BalanceChangedEvent_V1 e)
 {
     Amount += e.AmountChange;
 }