/// <summary> /// Entry point method /// </summary> /// <param name="oid">Object ID</param> /// <param name="name">Stub Interface Name</param> /// <param name="handler">XP Protocol instance</param> /// <returns></returns> public static object NewProxyInstance(int oid, string name, XPProtocol handler) { try { return(new Proxy(oid, handler, FindTypeByName(name)).GetTransparentProxy()); } catch (TypeLoadException e) { throw new RemoteException("Cannot find type", e); } }
/// <summary> /// Entry point method /// </summary> /// <param name="oid">Object ID</param> /// <param name="name">Stub Interface Name</param> /// <param name="handler">XP Protocol instance</param> /// <returns></returns> public static object NewProxyInstance(int oid, string name, XPProtocol handler) { try { return new Proxy(oid, handler, FindTypeByName(name)).GetTransparentProxy(); } catch (TypeLoadException e) { throw new RemoteException("Cannot find type", e); } }
protected Remote(Uri u) { this.proto = new XPProtocol(); this.proto.initialize(u); }
protected Proxy(int oid, XPProtocol handler, Type t) : base(t) { this.oid = oid; this.handler = handler; }