private static void LogError(string message, IMailingHandler handler, Exception exception = null) { message = GetFormattedMessage(message, handler); LogError(message, exception); }
private static void LogInfo(string message, IMailingHandler handler) { message = GetFormattedMessage(message, handler); MailingUtilities.Log.Info(message); }
private static string GetFormattedMessage(string message, IMailingHandler handler) { string typeName = handler.GetType().Name; return(GetFormattedMessage(message, typeName)); }