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