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