Ejemplo n.º 1
0
		public override MarshalByRefObject CreateInstance(Type type)
		{
			Console.WriteLine("Creating proxy of type " + type.ToString());
			MarshalByRefObject instance = base.CreateInstance(type);
			MyProxy proxy = new MyProxy(type, instance);
			return (MarshalByRefObject)proxy.GetTransparentProxy();
		}
Ejemplo n.º 2
0
        public override MarshalByRefObject CreateInstance(Type type)
        {
            Console.WriteLine("Creating proxy of type " + type.ToString());
            MarshalByRefObject instance = base.CreateInstance(type);
            MyProxy            proxy    = new MyProxy(type, instance);

            return((MarshalByRefObject)proxy.GetTransparentProxy());
        }