protected void AddHandler(ResponseHandler handler)
 {
     queue.Enqueue(handler);
 }
Example #2
0
        protected void End()
        {
            active = false;
            if(parent == null)
                return;

            ResponseHandler temp = parent;
            parent = null;
            temp.Next();
        }
Example #3
0
        protected void PushHandler(ResponseHandler handler)
        {
            if(!active)
                throw new InvalidOperationException();
            handler.parent = this;

            current.Push(handler);
            handler.Start();
        }
Example #4
0
 public void PushTempHandler(ResponseHandler handler)
 {
     PushHandler(handler);
 }