Example #1
0
 private static async Task SendOrderStarted(OrderStartedEvent @event) =>
 await OrderContextHttpClient.WhenAsync(new OrderContextQueryClient.OrderStartedEvent
 {
     BuyerId = @event.BuyerId,
     City    = @event.City,
     OrderId = @event.OrderId,
     Street  = @event.Street
 });
Example #2
0
 private static async Task SendOrderCancelled(OrderCancelledEvent @event) =>
 await OrderContextHttpClient.WhenAsync(new OrderContextQueryClient.OrderCancelledEvent
 {
     OrderId = @event.OrderId
 });