public async Task Handle(OrderPaidIntegrationEvent @event)
        {
            var message = @event;
            var id      = message.OrderId;

            await _alterationService.MoveToTheNextStatusAsync(id);
        }
예제 #2
0
 public async Task Handle(AlterationFinishedIntegrationEvent @event)
 {
     try
     {
         var message = @event;
         var id      = message.OrderId;
         await _alterationService.MoveToTheNextStatusAsync(id);
     }
     catch (System.Exception ex)
     {
         _logger.LogError($"Event:{JsonConvert.SerializeObject(@event)}. ErrorMessage:{ex.Message}");
     }
     finally
     {
     }
 }