示例#1
0
        protected void FireProviderConnectionEvent(IProvider provider, int type, Hashtable parameterMap)
#endif
        {
            PipeConnectionEvent evt = new PipeConnectionEvent(this);

            evt.Provider     = provider;
            evt.Type         = type;
            evt.ParameterMap = parameterMap;
            FirePipeConnectionEvent(evt);
        }
示例#2
0
        protected void FireConsumerConnectionEvent(IConsumer consumer, int type, Hashtable parameterMap)
#endif
        {
            // Create event object
            PipeConnectionEvent evt = new PipeConnectionEvent(this);

            // Fill it up
            evt.Consumer     = consumer;
            evt.Type         = type;
            evt.ParameterMap = parameterMap;
            // Fire it
            FirePipeConnectionEvent(evt);
        }
示例#3
0
 /// <summary>
 /// Fire any pipe connection event.
 /// </summary>
 /// <param name="evt">Pipe connection event.</param>
 protected void FirePipeConnectionEvent(PipeConnectionEvent evt)
 {
     foreach (IPipeConnectionListener element in _listeners)
     {
         try
         {
             element.OnPipeConnectionEvent(evt);
         }
         catch (Exception ex)
         {
             log.Error("Exception when handling pipe connection event", ex);
         }
     }
 }