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