private void OnHelpCommandHandler(ReceiveCommandEventSource source, HelpCommandEventArgs e)
 {
     Logger.Debug("[GenericTransportAgent] SmtpReceiveAgent - OnHelpCommand fired...");
     foreach (var x in Configuration.Config.SmtpReceiveAgentConfig.OnHelpCommand)
     {
         try
         {
             x.Execute();
         }
         catch (Exception ex)
         {
             Logger.Error(ex, @"Error executing ""OnHelpCommand""");
         }
     }
 }
 void OnHelpCommandHandler(ReceiveCommandEventSource source, HelpCommandEventArgs e)
 {
     Logger.Debug("[GenericTransportAgent] SmtpReceiveAgent - OnHelpCommand fired...");
     _config.SmtpReceiveAgentConfig.OnHelpCommand.ToList().ForEach(x => { try { x.Execute(); } catch (Exception ex) { Logger.Error(ex, @"Error executing ""OnHelpCommand"""); } });
 }
Exemple #3
0
 void OnHelpCommandHandler(ReceiveCommandEventSource source, HelpCommandEventArgs e)
 {
     Logger.Debug("[GenericExchangeTransportagent] [SmtpReceiveAgent] OnHelpCommand fired...");
     _config.SmtpReceiveAgentConfig.OnHelpCommand.ToList().ForEach(x => { try { x.Execute(); } catch (Exception ex) { Logger.Error(ex, @"Error executing ""OnHelpCommand"""); } });
 }