Example #1
0
 public async Task CompensateAsync(CarReservationCreated message, ISagaContext context)
 {
     await _busPublisher.SendAsync(new CancelCarReservation(message.ReservationId),
                                   CorrelationContext.FromId(context.CorrelationId));
 }
Example #2
0
 public async Task HandleAsync(CarReservationCreated message, ISagaContext context)
 {
     await _busPublisher.SendAsync(new CreateHotelReservation(message.UserId, message.StartDate, message.EndDate),
                                   CorrelationContext.FromId(context.CorrelationId));
 }