Пример #1
0
 /// <summary> Causes the event to be forwarded to the next layer up in the hierarchy. Typically called
 /// by the implementation of <code>Up</code> (when done).
 /// </summary>
 public virtual void  passUp(Event evt)
 {
     if (up_prot != null)
     {
         up_prot.receiveUpEvent(evt);
     }
     else
     {
         stack.NCacheLog.Error("Protocol", "no upper layer available");
     }
 }
Пример #2
0
        /// <summary> Causes the event to be forwarded to the next layer up in the hierarchy. Typically called
        /// by the implementation of <code>Up</code> (when done).
        /// </summary>
        public virtual void  passUp(Event evt)
        {
            if (up_prot != null)
            {
#if DEBUG
                if (evt.Type == Event.MSG)
                {
                    Message msg = (Message)evt.Arg;
                    if (stack.NCacheLog.IsInfoEnabled)
                    {
                        stack.NCacheLog.Info(Name + ".passUp()", "hdr: " + Global.CollectionToString(msg.Headers));
                    }
                }
#endif
                up_prot.receiveUpEvent(evt);
            }
            else
            {
                stack.NCacheLog.Error("Protocol", "no upper layer available");
            }
        }