Exemple #1
0
        public static void Run()
        {
            var server = new CustomServer();
            server.HelloMethod("My message");

            server = (CustomServer)new MyProxy(typeof(CustomServer)).GetTransparentProxy();
            server.MyExternMethod();
            var pingable = (IPingable)server;
            pingable.Ping();
            server.HelloMethod("My message");
        }
Exemple #2
0
        public static void Run()
        {
            var server = new CustomServer();

            server.HelloMethod("My message");

            server = (CustomServer) new MyProxy(typeof(CustomServer)).GetTransparentProxy();
            server.MyExternMethod();
            var pingable = (IPingable)server;

            pingable.Ping();
            server.HelloMethod("My message");
        }