Beispiel #1
0
 public async Task Handle(CancelTicketsRequest message, IMessageHandlerContext context)
 {
     Log.Info($"Tickets for Trip Id {message.TripId} are canceled");
     var result = new TicketsPurchaseResponse {
         TripId = message.TripId, IsBooked = false
     };
     await context.Publish(result);
 }
Beispiel #2
0
 private async Task CancelFlightTickets(IMessageHandlerContext context)
 {
     Log.Info($"Sending cancel tickets request for Trip Id {Data.TripId}");
     Data.OrderStatuses[OrderType.FlichtTickets] = OrderStatus.CancelRequestIsSent;
     var command = new CancelTicketsRequest {
         TripId = Data.TripId
     };
     await context.Send(command);
 }