Beispiel #1
0
 internal void OnCloseConnection(CloseConnectionEventArgs e)
 {
     if (evCloseConnection != null)
     {
         evCloseConnection(this, e);
     }
 }
Beispiel #2
0
        protected void OnConnectionClosedHandler(CloseConnectionEventArgs args)
        {
            var handler = OnConnectionClosed;

            if (handler != null)
            {
                handler(args);
            }
        }
Beispiel #3
0
 private void OnCloseConnectionHandler(CloseConnectionEventSource source, CloseConnectionEventArgs e)
 {
     Logger.Debug("[GenericTransportAgent] DeliveryAgent - OnClose fired...");
     foreach (var x in Configuration.Config.DeliveryAgentConfig.OnCloseConnection)
     {
         try
         {
             x.Execute();
         }
         catch (Exception ex)
         {
             Logger.Error(ex, @"Error executing ""OnCloseConnection""");
         }
     }
 }
Beispiel #4
0
 internal void OnCloseConnection(CloseConnectionEventArgs e) {
   if (CloseConnection != null)
     CloseConnection(this, e);
 }
 private void OnCloseConnectionHandler(CloseConnectionEventSource source, CloseConnectionEventArgs e)
 {
     Logger.Debug("[GenericExchangeTransportagent] [DeliveryAgent] OnClose fired...");
     _config.DeliveryAgentConfig.OnCloseConnection.ToList().ForEach(x => { try { x.Execute(); } catch (Exception ex) { Logger.Error(ex, @"Error executing ""OnCloseConnection"""); } });
 }
 private void OnCloseConnectionHandler(CloseConnectionEventSource source, CloseConnectionEventArgs e)
 {
     Logger.Debug("[GenericTransportAgent] DeliveryAgent - OnClose fired...");
     _config.DeliveryAgentConfig.OnCloseConnection.ToList().ForEach(x => { try { x.Execute(); } catch (Exception ex) { Logger.Error(ex, @"Error executing ""OnCloseConnection"""); } });
 }
Beispiel #7
0
 private void GenericConnectionClosed(CloseConnectionEventArgs args)
 {
     Logger.Trace(string.Format("Closed connection {0}", args.Connection.Name));
 }