コード例 #1
0
 /// <exception cref="System.IO.IOException"/>
 public SCMUploaderProtocolPBClientImpl(long clientVersion, IPEndPoint addr, Configuration
                                        conf)
 {
     RPC.SetProtocolEngine(conf, typeof(SCMUploaderProtocolPB), typeof(ProtobufRpcEngine
                                                                       ));
     proxy = RPC.GetProxy <SCMUploaderProtocolPB>(clientVersion, addr, conf);
 }
コード例 #2
0
 public virtual void Close()
 {
     if (this.proxy != null)
     {
         RPC.StopProxy(this.proxy);
         this.proxy = null;
     }
 }