示例#1
0
 /// <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);
     }
 }
示例#2
0
 /// <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);
     }
 }
示例#3
0
 protected Remote(Uri u)
 {
     this.proto = new XPProtocol();
     this.proto.initialize(u);
 }
示例#4
0
 protected Proxy(int oid, XPProtocol handler, Type t) : base(t)
 {
     this.oid     = oid;
     this.handler = handler;
 }
示例#5
0
 protected Proxy(int oid, XPProtocol handler, Type t)
     : base(t)
 {
     this.oid = oid;
     this.handler = handler;
 }
示例#6
0
 protected Remote(Uri u)
 {
     this.proto = new XPProtocol();
     this.proto.initialize(u);
 }