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