コード例 #1
0
 public Task Handle(FeeCreatedEvent message)
 {
     _repository.Save(new FeeReadModel
     {
         Cost        = message.Cost,
         EntityId    = message.FeeId,
         Tag         = message.Tag,
         AggregateId = message.Id
     });
     return(Task.CompletedTask);
 }