public static void SendMessage <T>(T message) { try { _messages.Add(message); _messaging.Send(message); } catch (Exception e) { // THIS IS IMPORTANT, NO FAILURES CAN POSSIBLY GET OUT HERE Console.WriteLine(e); } }
public static void SendMessage <T>(T message) { try { _messages.Add(message); _messaging.Send(message); } catch (Exception e) { // THIS IS IMPORTANT, NO FAILURES CAN POSSIBLY GET OUT HERE ConsoleWriter.Write(ConsoleColor.Yellow, e.ToString()); } }
public void SendMessage <T>(T message) { try { _messaging.Send(message); } catch (Exception e) { // THIS IS IMPORTANT, NO FAILURES CAN POSSIBLY GET OUT HERE var color = Console.ForegroundColor; Console.ForegroundColor = ConsoleColor.Yellow; Console.WriteLine(e.ToString()); Console.ForegroundColor = color; } }