public Task NotifyMessageExecutedAsync(MessageExecutingResult messageResult)
 {
     if (messageResult.Status == MessageExecutingStatus.Success)
     {
         _transportationContext.Ack();
         _logger.Info($"Result={messageResult}\r\nRawMessage={JsonConvert.SerializeObject(messageResult.RawMessage)}");
     }
     else
     {
         _logger.Error($"Result={messageResult}\r\nRawMessage={JsonConvert.SerializeObject(messageResult.RawMessage)}\r\n{messageResult.StackTrace}");
     }
     return(Task.CompletedTask);
 }
Beispiel #2
0
 public async Task NotifyMessageExecutedAsync(MessageExecutingResult messageResult)
 {
     await Task.Delay(10);
 }