Esempio n. 1
0
        adopt(IncomingBase inc)
        {
            instance_ = inc.instance_;
            //inc.instance_ = null; // Don't reset instance_.

            observer_     = inc.observer_;
            inc.observer_ = null;

            servant_     = inc.servant_;
            inc.servant_ = null;

            locator_     = inc.locator_;
            inc.locator_ = null;

            cookie_     = inc.cookie_;
            inc.cookie_ = null;

            response_     = inc.response_;
            inc.response_ = false;

            compress_     = inc.compress_;
            inc.compress_ = 0;

            //
            // Adopt the stream - it creates less garbage.
            //
            os_     = inc.os_;
            inc.os_ = null;

            connection_     = inc.connection_;
            inc.connection_ = null;
        }
Esempio n. 2
0
        adopt(IncomingBase inc)
        {
            instance_ = inc.instance_;
            //inc.instance_ = null; // Don't reset instance_.

            observer_ = inc.observer_;
            inc.observer_ = null;

            servant_ = inc.servant_;
            inc.servant_ = null;

            locator_ = inc.locator_;
            inc.locator_ = null;

            cookie_ = inc.cookie_;
            inc.cookie_ = null;

            response_ = inc.response_;
            inc.response_ = false;

            compress_ = inc.compress_;
            inc.compress_ = 0;

            //
            // Adopt the stream - it creates less garbage.
            //
            os_ = inc.os_;
            inc.os_ = null;

            responseHandler_ = inc.responseHandler_;
            inc.responseHandler_ = null;
        }
Esempio n. 3
0
        protected internal IncomingBase(IncomingBase inc) // Adopts the argument. It must not be used afterwards.
        {
            //
            // We don't change current_ as it's exposed by Ice::Request.
            //
            current_ = inc.current_;

            //
            // Deep copy
            //
            if (inc.interceptorAsyncCallbackList_ != null)
            {
                //
                // Copy, not just reference
                //
                interceptorAsyncCallbackList_ =
                    new List <Ice.DispatchInterceptorAsyncCallback>(inc.interceptorAsyncCallbackList_);
            }

            adopt(inc);
        }
Esempio n. 4
0
        protected internal IncomingBase(IncomingBase inc) // Adopts the argument. It must not be used afterwards.
        {
            //
            // We don't change current_ as it's exposed by Ice::Request.
            //
            current_ = inc.current_;

            //
            // Deep copy
            //
            if(inc.interceptorAsyncCallbackList_ != null)
            {
                //
                // Copy, not just reference
                //
                interceptorAsyncCallbackList_ =
                    new List<Ice.DispatchInterceptorAsyncCallback>(inc.interceptorAsyncCallbackList_);
            }

            adopt(inc);
        }