protected virtual void Dispose(bool disposing) { if (disposing) { // Release managed resources. if (rpcAdapter != null) { try { rpcAdapter.Unbind(); } finally { rpcAdapter.Dispose(); rpcAdapter = null; } } } // Release unmanaged resources. }
/// <summary> /// Constructor, initialize a DRSR client.<para/> /// Create the instance will not connect to server, you should call BindOverTcp to /// actually connect to DRSR server. /// </summary> public DsaopClient() { rpcAdapter = new DsaopRpcAdapter(); }