public async Task Handle(OrderPaidIntegrationEvent @event) { var message = @event; var id = message.OrderId; await _alterationService.MoveToTheNextStatusAsync(id); }
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 { } }