예제 #1
0
파일: Client.cs 프로젝트: psroczyk/CQRS-ES
 public void Apply(NewAccountCreatedEvent @event)
 {
     Account = new Account(@event.ClientId, @event.Number);
 }
예제 #2
0
 public Task Handle(NewAccountCreatedEvent @event, CancellationToken cancellationToken)
 {
     Save(@event.Id, @event);
     return(Task.CompletedTask);
 }