Grpc.Core.ClientBase.html 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277
  1. <!DOCTYPE html>
  2. <!--[if IE]><![endif]-->
  3. <html>
  4. <head>
  5. <meta charset="utf-8">
  6. <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
  7. <title>Class ClientBase
  8. | gRPC C# </title>
  9. <meta name="viewport" content="width=device-width">
  10. <meta name="title" content="Class ClientBase
  11. | gRPC C# ">
  12. <meta name="generator" content="docfx 2.36.0.0">
  13. <link rel="shortcut icon" href="../favicon.ico">
  14. <link rel="stylesheet" href="../styles/docfx.vendor.css">
  15. <link rel="stylesheet" href="../styles/docfx.css">
  16. <link rel="stylesheet" href="../styles/main.css">
  17. <meta property="docfx:navrel" content="../toc.html">
  18. <meta property="docfx:tocrel" content="toc.html">
  19. <meta property="docfx:rel" content="../">
  20. </head>
  21. <body data-spy="scroll" data-target="#affix" data-offset="120">
  22. <div id="wrapper">
  23. <header>
  24. <nav id="autocollapse" class="navbar navbar-inverse ng-scope" role="navigation">
  25. <div class="container">
  26. <div class="navbar-header">
  27. <button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#navbar">
  28. <span class="sr-only">Toggle navigation</span>
  29. <span class="icon-bar"></span>
  30. <span class="icon-bar"></span>
  31. <span class="icon-bar"></span>
  32. </button>
  33. <a class="navbar-brand" href="../index.html">
  34. <img id="logo" class="svg" src="../logo.svg" alt="">
  35. </a>
  36. </div>
  37. <div class="collapse navbar-collapse" id="navbar">
  38. <form class="navbar-form navbar-right" role="search" id="search">
  39. <div class="form-group">
  40. <input type="text" class="form-control" id="search-query" placeholder="Search" autocomplete="off">
  41. </div>
  42. </form>
  43. </div>
  44. </div>
  45. </nav>
  46. <div class="subnav navbar navbar-default">
  47. <div class="container hide-when-search" id="breadcrumb">
  48. <ul class="breadcrumb">
  49. <li></li>
  50. </ul>
  51. </div>
  52. </div>
  53. </header>
  54. <div class="container body-content">
  55. <div id="search-results">
  56. <div class="search-list"></div>
  57. <div class="sr-items">
  58. <p><i class="glyphicon glyphicon-refresh index-loading"></i></p>
  59. </div>
  60. <ul id="pagination"></ul>
  61. </div>
  62. </div>
  63. <div role="main" class="container body-content hide-when-search">
  64. <div class="sidenav hide-when-search">
  65. <a class="btn toc-toggle collapse" data-toggle="collapse" href="#sidetoggle" aria-expanded="false" aria-controls="sidetoggle">Show / Hide Table of Contents</a>
  66. <div class="sidetoggle collapse" id="sidetoggle">
  67. <div id="sidetoc"></div>
  68. </div>
  69. </div>
  70. <div class="article row grid-right">
  71. <div class="col-md-10">
  72. <article class="content wrap" id="_content" data-uid="Grpc.Core.ClientBase">
  73. <h1 id="Grpc_Core_ClientBase" data-uid="Grpc.Core.ClientBase" class="text-break">Class ClientBase
  74. </h1>
  75. <div class="markdown level0 summary"><p>Base class for client-side stubs.</p>
  76. </div>
  77. <div class="markdown level0 conceptual"></div>
  78. <div class="inheritance">
  79. <h5>Inheritance</h5>
  80. <div class="level0"><span class="xref">System.Object</span></div>
  81. <div class="level1"><span class="xref">ClientBase</span></div>
  82. <div class="level2"><a class="xref" href="Grpc.Core.ClientBase-1.html">ClientBase&lt;T&gt;</a></div>
  83. </div>
  84. <div class="inheritedMembers">
  85. <h5>Inherited Members</h5>
  86. <div>
  87. <span class="xref">System.Object.Equals(System.Object)</span>
  88. </div>
  89. <div>
  90. <span class="xref">System.Object.Equals(System.Object, System.Object)</span>
  91. </div>
  92. <div>
  93. <span class="xref">System.Object.GetHashCode()</span>
  94. </div>
  95. <div>
  96. <span class="xref">System.Object.GetType()</span>
  97. </div>
  98. <div>
  99. <span class="xref">System.Object.MemberwiseClone()</span>
  100. </div>
  101. <div>
  102. <span class="xref">System.Object.ReferenceEquals(System.Object, System.Object)</span>
  103. </div>
  104. <div>
  105. <span class="xref">System.Object.ToString()</span>
  106. </div>
  107. </div>
  108. <h6><strong>Namespace</strong>: <a class="xref" href="Grpc.Core.html">Grpc.Core</a></h6>
  109. <h6><strong>Assembly</strong>: Grpc.Core.Api.dll</h6>
  110. <h5 id="Grpc_Core_ClientBase_syntax">Syntax</h5>
  111. <div class="codewrapper">
  112. <pre><code class="lang-csharp hljs">public abstract class ClientBase</code></pre>
  113. </div>
  114. <h3 id="constructors">Constructors
  115. </h3>
  116. <a id="Grpc_Core_ClientBase__ctor_" data-uid="Grpc.Core.ClientBase.#ctor*"></a>
  117. <h4 id="Grpc_Core_ClientBase__ctor" data-uid="Grpc.Core.ClientBase.#ctor">ClientBase()</h4>
  118. <div class="markdown level1 summary"><p>Initializes a new instance of <code>ClientBase</code> class that
  119. throws <code>NotImplementedException</code> upon invocation of any RPC.
  120. This constructor is only provided to allow creation of test doubles
  121. for client classes (e.g. mocking requires a parameterless constructor).</p>
  122. </div>
  123. <div class="markdown level1 conceptual"></div>
  124. <h5 class="decalaration">Declaration</h5>
  125. <div class="codewrapper">
  126. <pre><code class="lang-csharp hljs">protected ClientBase()</code></pre>
  127. </div>
  128. <a id="Grpc_Core_ClientBase__ctor_" data-uid="Grpc.Core.ClientBase.#ctor*"></a>
  129. <h4 id="Grpc_Core_ClientBase__ctor_Grpc_Core_CallInvoker_" data-uid="Grpc.Core.ClientBase.#ctor(Grpc.Core.CallInvoker)">ClientBase(CallInvoker)</h4>
  130. <div class="markdown level1 summary"><p>Initializes a new instance of <code>ClientBase</code> class.</p>
  131. </div>
  132. <div class="markdown level1 conceptual"></div>
  133. <h5 class="decalaration">Declaration</h5>
  134. <div class="codewrapper">
  135. <pre><code class="lang-csharp hljs">public ClientBase(CallInvoker callInvoker)</code></pre>
  136. </div>
  137. <h5 class="parameters">Parameters</h5>
  138. <table class="table table-bordered table-striped table-condensed">
  139. <thead>
  140. <tr>
  141. <th>Type</th>
  142. <th>Name</th>
  143. <th>Description</th>
  144. </tr>
  145. </thead>
  146. <tbody>
  147. <tr>
  148. <td><a class="xref" href="Grpc.Core.CallInvoker.html">CallInvoker</a></td>
  149. <td><span class="parametername">callInvoker</span></td>
  150. <td><p>The <code>CallInvoker</code> for remote call invocation.</p>
  151. </td>
  152. </tr>
  153. </tbody>
  154. </table>
  155. <a id="Grpc_Core_ClientBase__ctor_" data-uid="Grpc.Core.ClientBase.#ctor*"></a>
  156. <h4 id="Grpc_Core_ClientBase__ctor_Grpc_Core_ChannelBase_" data-uid="Grpc.Core.ClientBase.#ctor(Grpc.Core.ChannelBase)">ClientBase(ChannelBase)</h4>
  157. <div class="markdown level1 summary"><p>Initializes a new instance of <code>ClientBase</code> class.</p>
  158. </div>
  159. <div class="markdown level1 conceptual"></div>
  160. <h5 class="decalaration">Declaration</h5>
  161. <div class="codewrapper">
  162. <pre><code class="lang-csharp hljs">public ClientBase(ChannelBase channel)</code></pre>
  163. </div>
  164. <h5 class="parameters">Parameters</h5>
  165. <table class="table table-bordered table-striped table-condensed">
  166. <thead>
  167. <tr>
  168. <th>Type</th>
  169. <th>Name</th>
  170. <th>Description</th>
  171. </tr>
  172. </thead>
  173. <tbody>
  174. <tr>
  175. <td><a class="xref" href="Grpc.Core.ChannelBase.html">ChannelBase</a></td>
  176. <td><span class="parametername">channel</span></td>
  177. <td><p>The channel to use for remote call invocation.</p>
  178. </td>
  179. </tr>
  180. </tbody>
  181. </table>
  182. <a id="Grpc_Core_ClientBase__ctor_" data-uid="Grpc.Core.ClientBase.#ctor*"></a>
  183. <h4 id="Grpc_Core_ClientBase__ctor_Grpc_Core_ClientBase_ClientBaseConfiguration_" data-uid="Grpc.Core.ClientBase.#ctor(Grpc.Core.ClientBase.ClientBaseConfiguration)">ClientBase(ClientBase.ClientBaseConfiguration)</h4>
  184. <div class="markdown level1 summary"><p>Initializes a new instance of <code>ClientBase</code> class.</p>
  185. </div>
  186. <div class="markdown level1 conceptual"></div>
  187. <h5 class="decalaration">Declaration</h5>
  188. <div class="codewrapper">
  189. <pre><code class="lang-csharp hljs">protected ClientBase(ClientBase.ClientBaseConfiguration configuration)</code></pre>
  190. </div>
  191. <h5 class="parameters">Parameters</h5>
  192. <table class="table table-bordered table-striped table-condensed">
  193. <thead>
  194. <tr>
  195. <th>Type</th>
  196. <th>Name</th>
  197. <th>Description</th>
  198. </tr>
  199. </thead>
  200. <tbody>
  201. <tr>
  202. <td><a class="xref" href="Grpc.Core.ClientBase.ClientBaseConfiguration.html">ClientBase.ClientBaseConfiguration</a></td>
  203. <td><span class="parametername">configuration</span></td>
  204. <td><p>The configuration.</p>
  205. </td>
  206. </tr>
  207. </tbody>
  208. </table>
  209. <h3 id="properties">Properties
  210. </h3>
  211. <a id="Grpc_Core_ClientBase_CallInvoker_" data-uid="Grpc.Core.ClientBase.CallInvoker*"></a>
  212. <h4 id="Grpc_Core_ClientBase_CallInvoker" data-uid="Grpc.Core.ClientBase.CallInvoker">CallInvoker</h4>
  213. <div class="markdown level1 summary"><p>Gets the call invoker.</p>
  214. </div>
  215. <div class="markdown level1 conceptual"></div>
  216. <h5 class="decalaration">Declaration</h5>
  217. <div class="codewrapper">
  218. <pre><code class="lang-csharp hljs">protected CallInvoker CallInvoker { get; }</code></pre>
  219. </div>
  220. <h5 class="propertyValue">Property Value</h5>
  221. <table class="table table-bordered table-striped table-condensed">
  222. <thead>
  223. <tr>
  224. <th>Type</th>
  225. <th>Description</th>
  226. </tr>
  227. </thead>
  228. <tbody>
  229. <tr>
  230. <td><a class="xref" href="Grpc.Core.CallInvoker.html">CallInvoker</a></td>
  231. <td></td>
  232. </tr>
  233. </tbody>
  234. </table>
  235. </article>
  236. </div>
  237. <div class="hidden-sm col-md-2" role="complementary">
  238. <div class="sideaffix">
  239. <nav class="bs-docs-sidebar hidden-print hidden-xs hidden-sm affix" id="affix">
  240. <!-- <p><a class="back-to-top" href="#top">Back to top</a><p> -->
  241. </nav>
  242. </div>
  243. </div>
  244. </div>
  245. </div>
  246. <footer>
  247. <div class="grad-bottom"></div>
  248. <div class="footer">
  249. <div class="container">
  250. <span class="pull-right">
  251. <a href="#top">Back to top</a>
  252. </span>
  253. <span>Generated by <strong>DocFX</strong></span>
  254. </div>
  255. </div>
  256. </footer>
  257. </div>
  258. <script type="text/javascript" src="../styles/docfx.vendor.js"></script>
  259. <script type="text/javascript" src="../styles/docfx.js"></script>
  260. <script type="text/javascript" src="../styles/main.js"></script>
  261. </body>
  262. </html>