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