예제 #1
0
        static public InvocationObserver get(Ice.ObjectPrx proxy, string op, Dictionary <string, string> context)
        {
            CommunicatorObserver obsv = ((Ice.ObjectPrxHelperBase)proxy).reference__().getInstance().getObserver();

            if (obsv != null)
            {
                InvocationObserver observer;
                if (context == null)
                {
                    observer = obsv.getInvocationObserver(proxy, op, _emptyContext);
                }
                else
                {
                    observer = obsv.getInvocationObserver(proxy, op, context);
                }
                if (observer != null)
                {
                    observer.attach();
                }
                return(observer);
            }
            return(null);
        }
예제 #2
0
        public static InvocationObserver get(Ice.IObjectPrx proxy, string op, Dictionary <string, string> context)
        {
            CommunicatorObserver obsv = proxy.Communicator.initializationData().observer;

            if (obsv != null)
            {
                InvocationObserver observer;
                if (context == null)
                {
                    observer = obsv.getInvocationObserver(proxy, op, _emptyContext);
                }
                else
                {
                    observer = obsv.getInvocationObserver(proxy, op, context);
                }
                if (observer != null)
                {
                    observer.attach();
                }
                return(observer);
            }
            return(null);
        }
예제 #3
0
        static public InvocationObserver get(Instance instance, string op)
        {
            CommunicatorObserver obsv = instance.initializationData().observer;

            if (obsv != null)
            {
                InvocationObserver observer = obsv.getInvocationObserver(null, op, _emptyContext);
                if (observer != null)
                {
                    observer.attach();
                }
                return(observer);
            }
            return(null);
        }