Ejemplo n.º 1
0
 private void Apply(AddressConfirmed evt)
 {
     _status = _status == Status.PaymentReceived
         ? Status.ReadyToCompleteForShipping
         : Status.AddressReceived;
 }
Ejemplo n.º 2
0
 private void Apply(AddressConfirmed evt)
 {
     status = status == Status.PaymentReceived ? Status.ReadyToComplete : Status.AddressReceived;
 }
Ejemplo n.º 3
0
 public async Task HandleAsync(AddressConfirmed @event)
 {
     await ExecuteAsync(@event.AggregateId, shippingSaga => shippingSaga.CompleteForShipping());
 }