Пример #1
0
 private void Errors_MessageSentToErrorQueue(object sender, NServiceBus.Faults.FailedMessage e)
 {
     ServiceEventSource.Current.Message("Message sent to error queue");
 }
 private static void Errors_MessageSentToErrorQueue(object sender, NServiceBus.Faults.FailedMessage e)
 {
     Console.ForegroundColor = ConsoleColor.Yellow;
     Console.WriteLine($"Message sent to error queue: {Encoding.UTF8.GetString(e.Body)}");
     Console.ResetColor();
 }