Пример #1
0
 private static void LogError(string message, IMailingHandler handler, Exception exception = null)
 {
     message = GetFormattedMessage(message, handler);
     LogError(message, exception);
 }
Пример #2
0
 private static void LogInfo(string message, IMailingHandler handler)
 {
     message = GetFormattedMessage(message, handler);
     MailingUtilities.Log.Info(message);
 }
Пример #3
0
        private static string GetFormattedMessage(string message, IMailingHandler handler)
        {
            string typeName = handler.GetType().Name;

            return(GetFormattedMessage(message, typeName));
        }