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