Пример #1
0
 internal void setActive(IncomingAsync cb)
 {
     Debug.Assert(_cb == null);
     _cb = cb;
 }
Пример #2
0
 internal void setActive(IncomingAsync cb)
 {
     Debug.Assert(_cb == null);
     _cb = cb;
 }
Пример #3
0
        //
        // These functions allow this object to be reused, rather than reallocated.
        //
        public override void reset(Instance instance, ResponseHandler handler, Ice.ConnectionI connection,
            Ice.ObjectAdapter adapter, bool response, byte compress, int requestId)
        {
            _cb = null;
            _inParamPos = -1;

            base.reset(instance, handler, connection, adapter, response, compress, requestId);

            //
            // Prepare the response if necessary.
            //
            if(response)
            {
                os_.writeBlob(IceInternal.Protocol.replyHdr);

                //
                // Add the request ID.
                //
                os_.writeInt(requestId);
            }
        }
Пример #4
0
        public override void reclaim()
        {
            _cb = null;
            _inParamPos = -1;

            base.reclaim();
        }
Пример #5
0
 public void killAsync()
 {
     //
     // Always runs in the dispatch thread
     //
     if(_cb != null)
     {
         //
         // May raise ResponseSentException
         //
         _cb.deactivate__(this);
         _cb = null;
     }
 }
Пример #6
0
        //
        // These functions allow this object to be reused, rather than reallocated.
        //
        public override void reset(Instance instance, Ice.ConnectionI connection, Ice.ObjectAdapter adapter,
                                   bool response, byte compress, int requestId)
        {
            _cb = null;
            _inParamPos = -1;

            if(_is == null)
            {
                _is = new BasicStream(instance);
            }

            base.reset(instance, connection, adapter, response, compress, requestId);
        }
Пример #7
0
        public override void reclaim()
        {
            _cb = null;
            _inParamPos = -1;
            if(_is != null)
            {
                _is.reset();
            }

            base.reclaim();
        }