Ejemplo n.º 1
0
        private static object GetMessageObject(string path, MethodBase method, object[] args)
        {
            FakeMessage msg = new FakeMessage(path, method, args);

            if (_usecom)
            {
                return(new FakeComObjRef(msg));
            }
            else
            {
                return(RemotingServices.Marshal(msg));
            }
        }
Ejemplo n.º 2
0
        private static object GetMessageObject(string path, MethodBase method, object[] args)
        {
            if (_useser)
            {
                return new MethodCallWrapper(path, method, args);
            }

            FakeMessage msg = new FakeMessage(path, method, args);
            if (_usecom)
            {
                return new FakeComObjRef(msg);
            }
            else
            {
                return RemotingServices.Marshal(msg);
            }
        }