示例#1
0
文件: Proxy.cs 项目: bholl/zeroc-ice
        public virtual void setup(IceInternal.Reference rf, ObjectPrx proxy, bool async)
        {
            //
            // No need to synchronize, as this operation is only called
            // upon initialization.
            //

            Debug.Assert(handler__ == null);

            if(async)
            {
                IceInternal.ConnectRequestHandler handler = new IceInternal.ConnectRequestHandler(rf, proxy, this);
                handler__ = handler.connect();
            }
            else
            {
                handler__ = new IceInternal.ConnectionRequestHandler(rf, proxy);
            }
        }
示例#2
0
文件: Proxy.cs 项目: bholl/zeroc-ice
        //
        // Only for use by ObjectPrx
        //
        internal void copyFrom__(ObjectDelM_ from)
        {
            //
            // No need to synchronize "from", as the delegate is immutable
            // after creation.
            //

            //
            // No need to synchronize, as this operation is only called
            // upon initialization.
            //

            Debug.Assert(handler__ == null);

            handler__ = from.handler__;
        }
示例#3
0
文件: Proxy.cs 项目: bholl/zeroc-ice
 public virtual void setRequestHandler__(IceInternal.RequestHandler handler)
 {
     handler__ = handler;
 }