private void OnOpenConnectionHandler(OpenConnectionEventSource source, OpenConnectionEventArgs e) { Logger.Debug("[GenericTransportAgent] DeliveryAgent - OpenConnection fired..."); foreach (var x in Configuration.Config.DeliveryAgentConfig.OnOpenConnection) { try { x.Execute(new EmailItem(e.DeliverableMailItem)); } catch (Exception ex) { Logger.Error(ex, @"Error executing ""OnOpenConnection"""); } } }
private void OnOpenConnectionHandler(OpenConnectionEventSource source, OpenConnectionEventArgs e) { Logger.Debug("[GenericExchangeTransportagent] [DeliveryAgent] OpenConnection fired..."); _config.DeliveryAgentConfig.OnOpenConnection.ToList().ForEach(x => { try { x.Execute(new EmailItem(e.DeliverableMailItem)); } catch (Exception ex) { Logger.Error(ex, @"Error executing ""OnOpenConnection"""); } }); }
private void OnOpenConnectionHandler(OpenConnectionEventSource source, OpenConnectionEventArgs e) { Logger.Debug("[GenericTransportAgent] DeliveryAgent - OpenConnection fired..."); _config.DeliveryAgentConfig.OnOpenConnection.ToList().ForEach(x => { try { x.Execute(new EmailItem(e.DeliverableMailItem)); } catch (Exception ex) { Logger.Error(ex, @"Error executing ""OnOpenConnection"""); } }); }