コード例 #1
0
        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.
        }
コード例 #2
0
 /// <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();
 }