예제 #1
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);
        }
예제 #2
0
        public static InvocationObserver?get(Ice.Communicator communicator, string op)
        {
            CommunicatorObserver?obsv = communicator.Observer;

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