Grpc.Core.Interceptors.ClientInterceptorContext-2.html 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286
  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>Struct ClientInterceptorContext&lt;TRequest, TResponse&gt;
  8. | gRPC C# </title>
  9. <meta name="viewport" content="width=device-width">
  10. <meta name="title" content="Struct ClientInterceptorContext&lt;TRequest, TResponse&gt;
  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. <script type="text/javascript"> (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){ (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o), m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m) })(window,document,'script','//www.google-analytics.com/analytics.js','ga'); ga('create', 'UA-60127042-1', 'auto'); ga('send', 'pageview'); </script> </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.Interceptors.ClientInterceptorContext`2">
  73. <h1 id="Grpc_Core_Interceptors_ClientInterceptorContext_2" data-uid="Grpc.Core.Interceptors.ClientInterceptorContext`2" class="text-break">Struct ClientInterceptorContext&lt;TRequest, TResponse&gt;
  74. </h1>
  75. <div class="markdown level0 summary"><p>Carries along the context associated with intercepted invocations on the client side.
  76. This is an EXPERIMENTAL API.</p>
  77. </div>
  78. <div class="markdown level0 conceptual"></div>
  79. <div class="inheritedMembers">
  80. <h5>Inherited Members</h5>
  81. <div>
  82. <span class="xref">System.ValueType.Equals(System.Object)</span>
  83. </div>
  84. <div>
  85. <span class="xref">System.ValueType.GetHashCode()</span>
  86. </div>
  87. <div>
  88. <span class="xref">System.ValueType.ToString()</span>
  89. </div>
  90. <div>
  91. <span class="xref">System.Object.Equals(System.Object, System.Object)</span>
  92. </div>
  93. <div>
  94. <span class="xref">System.Object.ReferenceEquals(System.Object, System.Object)</span>
  95. </div>
  96. <div>
  97. <span class="xref">System.Object.GetType()</span>
  98. </div>
  99. </div>
  100. <h6><strong>Namespace</strong>: <a class="xref" href="Grpc.Core.Interceptors.html">Grpc.Core.Interceptors</a></h6>
  101. <h6><strong>Assembly</strong>: Grpc.Core.dll</h6>
  102. <h5 id="Grpc_Core_Interceptors_ClientInterceptorContext_2_syntax">Syntax</h5>
  103. <div class="codewrapper">
  104. <pre><code class="lang-csharp hljs">public struct ClientInterceptorContext&lt;TRequest, TResponse&gt;
  105. where TRequest : class where TResponse : class</code></pre>
  106. </div>
  107. <h5 class="typeParameters">Type Parameters</h5>
  108. <table class="table table-bordered table-striped table-condensed">
  109. <thead>
  110. <tr>
  111. <th>Name</th>
  112. <th>Description</th>
  113. </tr>
  114. </thead>
  115. <tbody>
  116. <tr>
  117. <td><span class="parametername">TRequest</span></td>
  118. <td></td>
  119. </tr>
  120. <tr>
  121. <td><span class="parametername">TResponse</span></td>
  122. <td></td>
  123. </tr>
  124. </tbody>
  125. </table>
  126. <h3 id="constructors">Constructors
  127. </h3>
  128. <a id="Grpc_Core_Interceptors_ClientInterceptorContext_2__ctor_" data-uid="Grpc.Core.Interceptors.ClientInterceptorContext`2.#ctor*"></a>
  129. <h4 id="Grpc_Core_Interceptors_ClientInterceptorContext_2__ctor_Grpc_Core_Method__0__1__System_String_Grpc_Core_CallOptions_" data-uid="Grpc.Core.Interceptors.ClientInterceptorContext`2.#ctor(Grpc.Core.Method{`0,`1},System.String,Grpc.Core.CallOptions)">ClientInterceptorContext(Method&lt;TRequest, TResponse&gt;, String, CallOptions)</h4>
  130. <div class="markdown level1 summary"><p>Creates a new instance of <a class="xref" href="Grpc.Core.Interceptors.ClientInterceptorContext-2.html">ClientInterceptorContext&lt;TRequest, TResponse&gt;</a>
  131. with the specified method, host, and call options.</p>
  132. </div>
  133. <div class="markdown level1 conceptual"></div>
  134. <h5 class="decalaration">Declaration</h5>
  135. <div class="codewrapper">
  136. <pre><code class="lang-csharp hljs">public ClientInterceptorContext(Method&lt;TRequest, TResponse&gt; method, string host, CallOptions options)</code></pre>
  137. </div>
  138. <h5 class="parameters">Parameters</h5>
  139. <table class="table table-bordered table-striped table-condensed">
  140. <thead>
  141. <tr>
  142. <th>Type</th>
  143. <th>Name</th>
  144. <th>Description</th>
  145. </tr>
  146. </thead>
  147. <tbody>
  148. <tr>
  149. <td><a class="xref" href="Grpc.Core.Method-2.html">Method</a>&lt;TRequest, TResponse&gt;</td>
  150. <td><span class="parametername">method</span></td>
  151. <td><p>A <a class="xref" href="Grpc.Core.Method-2.html">Method&lt;TRequest, TResponse&gt;</a> object representing the method to be invoked.</p>
  152. </td>
  153. </tr>
  154. <tr>
  155. <td><span class="xref">System.String</span></td>
  156. <td><span class="parametername">host</span></td>
  157. <td><p>The host to dispatch the current call to.</p>
  158. </td>
  159. </tr>
  160. <tr>
  161. <td><a class="xref" href="Grpc.Core.CallOptions.html">CallOptions</a></td>
  162. <td><span class="parametername">options</span></td>
  163. <td><p>A <a class="xref" href="Grpc.Core.CallOptions.html">CallOptions</a> instance containing the call options of the current call.</p>
  164. </td>
  165. </tr>
  166. </tbody>
  167. </table>
  168. <h3 id="properties">Properties
  169. </h3>
  170. <a id="Grpc_Core_Interceptors_ClientInterceptorContext_2_Host_" data-uid="Grpc.Core.Interceptors.ClientInterceptorContext`2.Host*"></a>
  171. <h4 id="Grpc_Core_Interceptors_ClientInterceptorContext_2_Host" data-uid="Grpc.Core.Interceptors.ClientInterceptorContext`2.Host">Host</h4>
  172. <div class="markdown level1 summary"><p>Gets the host that the currect invocation will be dispatched to.</p>
  173. </div>
  174. <div class="markdown level1 conceptual"></div>
  175. <h5 class="decalaration">Declaration</h5>
  176. <div class="codewrapper">
  177. <pre><code class="lang-csharp hljs">public string Host { get; }</code></pre>
  178. </div>
  179. <h5 class="propertyValue">Property Value</h5>
  180. <table class="table table-bordered table-striped table-condensed">
  181. <thead>
  182. <tr>
  183. <th>Type</th>
  184. <th>Description</th>
  185. </tr>
  186. </thead>
  187. <tbody>
  188. <tr>
  189. <td><span class="xref">System.String</span></td>
  190. <td></td>
  191. </tr>
  192. </tbody>
  193. </table>
  194. <a id="Grpc_Core_Interceptors_ClientInterceptorContext_2_Method_" data-uid="Grpc.Core.Interceptors.ClientInterceptorContext`2.Method*"></a>
  195. <h4 id="Grpc_Core_Interceptors_ClientInterceptorContext_2_Method" data-uid="Grpc.Core.Interceptors.ClientInterceptorContext`2.Method">Method</h4>
  196. <div class="markdown level1 summary"><p>Gets the <a class="xref" href="Grpc.Core.Method-2.html">Method&lt;TRequest, TResponse&gt;</a> instance
  197. representing the method to be invoked.</p>
  198. </div>
  199. <div class="markdown level1 conceptual"></div>
  200. <h5 class="decalaration">Declaration</h5>
  201. <div class="codewrapper">
  202. <pre><code class="lang-csharp hljs">public Method&lt;TRequest, TResponse&gt; Method { get; }</code></pre>
  203. </div>
  204. <h5 class="propertyValue">Property Value</h5>
  205. <table class="table table-bordered table-striped table-condensed">
  206. <thead>
  207. <tr>
  208. <th>Type</th>
  209. <th>Description</th>
  210. </tr>
  211. </thead>
  212. <tbody>
  213. <tr>
  214. <td><a class="xref" href="Grpc.Core.Method-2.html">Method</a>&lt;TRequest, TResponse&gt;</td>
  215. <td></td>
  216. </tr>
  217. </tbody>
  218. </table>
  219. <a id="Grpc_Core_Interceptors_ClientInterceptorContext_2_Options_" data-uid="Grpc.Core.Interceptors.ClientInterceptorContext`2.Options*"></a>
  220. <h4 id="Grpc_Core_Interceptors_ClientInterceptorContext_2_Options" data-uid="Grpc.Core.Interceptors.ClientInterceptorContext`2.Options">Options</h4>
  221. <div class="markdown level1 summary"><p>Gets the <a class="xref" href="Grpc.Core.CallOptions.html">CallOptions</a> structure representing the
  222. call options associated with the current invocation.</p>
  223. </div>
  224. <div class="markdown level1 conceptual"></div>
  225. <h5 class="decalaration">Declaration</h5>
  226. <div class="codewrapper">
  227. <pre><code class="lang-csharp hljs">public CallOptions Options { get; }</code></pre>
  228. </div>
  229. <h5 class="propertyValue">Property Value</h5>
  230. <table class="table table-bordered table-striped table-condensed">
  231. <thead>
  232. <tr>
  233. <th>Type</th>
  234. <th>Description</th>
  235. </tr>
  236. </thead>
  237. <tbody>
  238. <tr>
  239. <td><a class="xref" href="Grpc.Core.CallOptions.html">CallOptions</a></td>
  240. <td></td>
  241. </tr>
  242. </tbody>
  243. </table>
  244. </article>
  245. </div>
  246. <div class="hidden-sm col-md-2" role="complementary">
  247. <div class="sideaffix">
  248. <nav class="bs-docs-sidebar hidden-print hidden-xs hidden-sm affix" id="affix">
  249. <!-- <p><a class="back-to-top" href="#top">Back to top</a><p> -->
  250. </nav>
  251. </div>
  252. </div>
  253. </div>
  254. </div>
  255. <footer>
  256. <div class="grad-bottom"></div>
  257. <div class="footer">
  258. <div class="container">
  259. <span class="pull-right">
  260. <a href="#top">Back to top</a>
  261. </span>
  262. <span>Generated by <strong>DocFX</strong></span>
  263. </div>
  264. </div>
  265. </footer>
  266. </div>
  267. <script type="text/javascript" src="../styles/docfx.vendor.js"></script>
  268. <script type="text/javascript" src="../styles/docfx.js"></script>
  269. <script type="text/javascript" src="../styles/main.js"></script>
  270. </body>
  271. </html>