Grpc.Core.AsyncClientStreamingCall-2.html 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341
  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 AsyncClientStreamingCall&lt;TRequest, TResponse&gt;
  8. | gRPC C# </title>
  9. <meta name="viewport" content="width=device-width">
  10. <meta name="title" content="Class AsyncClientStreamingCall&lt;TRequest, TResponse&gt;
  11. | gRPC C# ">
  12. <meta name="generator" content="docfx 2.23.1.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">
  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"></div>
  58. <ul id="pagination"></ul>
  59. </div>
  60. </div>
  61. <div role="main" class="container body-content hide-when-search">
  62. <div class="sidenav hide-when-search">
  63. <a class="btn toc-toggle collapse" data-toggle="collapse" href="#sidetoggle" aria-expanded="false" aria-controls="sidetoggle">Show / Hide Table of Contents</a>
  64. <div class="sidetoggle collapse" id="sidetoggle">
  65. <div id="sidetoc"></div>
  66. </div>
  67. </div>
  68. <div class="article row grid-right">
  69. <div class="col-md-10">
  70. <article class="content wrap" id="_content" data-uid="Grpc.Core.AsyncClientStreamingCall`2">
  71. <h1 id="Grpc_Core_AsyncClientStreamingCall_2" data-uid="Grpc.Core.AsyncClientStreamingCall`2" class="text-break">Class AsyncClientStreamingCall&lt;TRequest, TResponse&gt;
  72. </h1>
  73. <div class="markdown level0 summary"><p>Return type for client streaming calls.</p>
  74. </div>
  75. <div class="markdown level0 conceptual"></div>
  76. <div class="inheritance">
  77. <h5>Inheritance</h5>
  78. <div class="level0"><span class="xref">System.Object</span></div>
  79. <div class="level1"><span class="xref">AsyncClientStreamingCall&lt;TRequest, TResponse&gt;</span></div>
  80. </div>
  81. <div class="inheritedMembers">
  82. <h5>Inherited Members</h5>
  83. <div>
  84. <span class="xref">System.Object.ToString()</span>
  85. </div>
  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.ReferenceEquals(System.Object, System.Object)</span>
  94. </div>
  95. <div>
  96. <span class="xref">System.Object.GetHashCode()</span>
  97. </div>
  98. <div>
  99. <span class="xref">System.Object.GetType()</span>
  100. </div>
  101. <div>
  102. <span class="xref">System.Object.MemberwiseClone()</span>
  103. </div>
  104. </div>
  105. <h6><strong>Namespace</strong>: <a class="xref" href="Grpc.Core.html">Grpc.Core</a></h6>
  106. <h6><strong>Assembly</strong>: Grpc.Core.dll</h6>
  107. <h5 id="Grpc_Core_AsyncClientStreamingCall_2_syntax">Syntax</h5>
  108. <div class="codewrapper">
  109. <pre><code class="lang-csharp hljs">public sealed class AsyncClientStreamingCall&lt;TRequest, TResponse&gt; : IDisposable</code></pre>
  110. </div>
  111. <h5 class="typeParameters">Type Parameters</h5>
  112. <table class="table table-bordered table-striped table-condensed">
  113. <thead>
  114. <tr>
  115. <th>Name</th>
  116. <th>Description</th>
  117. </tr>
  118. </thead>
  119. <tbody>
  120. <tr>
  121. <td><span class="parametername">TRequest</span></td>
  122. <td><p>Request message type for this call.</p>
  123. </td>
  124. </tr>
  125. <tr>
  126. <td><span class="parametername">TResponse</span></td>
  127. <td><p>Response message type for this call.</p>
  128. </td>
  129. </tr>
  130. </tbody>
  131. </table>
  132. <h3 id="properties">Properties
  133. </h3>
  134. <a id="Grpc_Core_AsyncClientStreamingCall_2_RequestStream_" data-uid="Grpc.Core.AsyncClientStreamingCall`2.RequestStream*"></a>
  135. <h4 id="Grpc_Core_AsyncClientStreamingCall_2_RequestStream" data-uid="Grpc.Core.AsyncClientStreamingCall`2.RequestStream">RequestStream</h4>
  136. <div class="markdown level1 summary"><p>Async stream to send streaming requests.</p>
  137. </div>
  138. <div class="markdown level1 conceptual"></div>
  139. <h5 class="decalaration">Declaration</h5>
  140. <div class="codewrapper">
  141. <pre><code class="lang-csharp hljs">public IClientStreamWriter&lt;TRequest&gt; RequestStream { get; }</code></pre>
  142. </div>
  143. <h5 class="propertyValue">Property Value</h5>
  144. <table class="table table-bordered table-striped table-condensed">
  145. <thead>
  146. <tr>
  147. <th>Type</th>
  148. <th>Description</th>
  149. </tr>
  150. </thead>
  151. <tbody>
  152. <tr>
  153. <td><a class="xref" href="Grpc.Core.IClientStreamWriter-1.html">IClientStreamWriter</a>&lt;TRequest&gt;</td>
  154. <td></td>
  155. </tr>
  156. </tbody>
  157. </table>
  158. <a id="Grpc_Core_AsyncClientStreamingCall_2_ResponseAsync_" data-uid="Grpc.Core.AsyncClientStreamingCall`2.ResponseAsync*"></a>
  159. <h4 id="Grpc_Core_AsyncClientStreamingCall_2_ResponseAsync" data-uid="Grpc.Core.AsyncClientStreamingCall`2.ResponseAsync">ResponseAsync</h4>
  160. <div class="markdown level1 summary"><p>Asynchronous call result.</p>
  161. </div>
  162. <div class="markdown level1 conceptual"></div>
  163. <h5 class="decalaration">Declaration</h5>
  164. <div class="codewrapper">
  165. <pre><code class="lang-csharp hljs">public Task&lt;TResponse&gt; ResponseAsync { get; }</code></pre>
  166. </div>
  167. <h5 class="propertyValue">Property Value</h5>
  168. <table class="table table-bordered table-striped table-condensed">
  169. <thead>
  170. <tr>
  171. <th>Type</th>
  172. <th>Description</th>
  173. </tr>
  174. </thead>
  175. <tbody>
  176. <tr>
  177. <td><span class="xref">System.Threading.Tasks.Task</span>&lt;TResponse&gt;</td>
  178. <td></td>
  179. </tr>
  180. </tbody>
  181. </table>
  182. <a id="Grpc_Core_AsyncClientStreamingCall_2_ResponseHeadersAsync_" data-uid="Grpc.Core.AsyncClientStreamingCall`2.ResponseHeadersAsync*"></a>
  183. <h4 id="Grpc_Core_AsyncClientStreamingCall_2_ResponseHeadersAsync" data-uid="Grpc.Core.AsyncClientStreamingCall`2.ResponseHeadersAsync">ResponseHeadersAsync</h4>
  184. <div class="markdown level1 summary"><p>Asynchronous access to response headers.</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">public Task&lt;Metadata&gt; ResponseHeadersAsync { get; }</code></pre>
  190. </div>
  191. <h5 class="propertyValue">Property Value</h5>
  192. <table class="table table-bordered table-striped table-condensed">
  193. <thead>
  194. <tr>
  195. <th>Type</th>
  196. <th>Description</th>
  197. </tr>
  198. </thead>
  199. <tbody>
  200. <tr>
  201. <td><span class="xref">System.Threading.Tasks.Task</span>&lt;<a class="xref" href="Grpc.Core.Metadata.html">Metadata</a>&gt;</td>
  202. <td></td>
  203. </tr>
  204. </tbody>
  205. </table>
  206. <h3 id="methods">Methods
  207. </h3>
  208. <a id="Grpc_Core_AsyncClientStreamingCall_2_Dispose_" data-uid="Grpc.Core.AsyncClientStreamingCall`2.Dispose*"></a>
  209. <h4 id="Grpc_Core_AsyncClientStreamingCall_2_Dispose" data-uid="Grpc.Core.AsyncClientStreamingCall`2.Dispose">Dispose()</h4>
  210. <div class="markdown level1 summary"><p>Provides means to cleanup after the call.
  211. If the call has already finished normally (request stream has been completed and call result has been received), doesn&apos;t do anything.
  212. Otherwise, requests cancellation of the call which should terminate all pending async operations associated with the call.
  213. As a result, all resources being used by the call should be released eventually.</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">public void Dispose()</code></pre>
  219. </div>
  220. <h5 class="implements">Implements</h5>
  221. <div><span class="xref">System.IDisposable.Dispose()</span></div>
  222. <h5 id="Grpc_Core_AsyncClientStreamingCall_2_Dispose_remarks">Remarks</h5>
  223. <div class="markdown level1 remarks"><p>Normally, there is no need for you to dispose the call unless you want to utilize the
  224. &quot;Cancel&quot; semantics of invoking <code>Dispose</code>.</p>
  225. </div>
  226. <a id="Grpc_Core_AsyncClientStreamingCall_2_GetAwaiter_" data-uid="Grpc.Core.AsyncClientStreamingCall`2.GetAwaiter*"></a>
  227. <h4 id="Grpc_Core_AsyncClientStreamingCall_2_GetAwaiter" data-uid="Grpc.Core.AsyncClientStreamingCall`2.GetAwaiter">GetAwaiter()</h4>
  228. <div class="markdown level1 summary"><p>Allows awaiting this object directly.</p>
  229. </div>
  230. <div class="markdown level1 conceptual"></div>
  231. <h5 class="decalaration">Declaration</h5>
  232. <div class="codewrapper">
  233. <pre><code class="lang-csharp hljs">public TaskAwaiter&lt;TResponse&gt; GetAwaiter()</code></pre>
  234. </div>
  235. <h5 class="returns">Returns</h5>
  236. <table class="table table-bordered table-striped table-condensed">
  237. <thead>
  238. <tr>
  239. <th>Type</th>
  240. <th>Description</th>
  241. </tr>
  242. </thead>
  243. <tbody>
  244. <tr>
  245. <td><span class="xref">System.Runtime.CompilerServices.TaskAwaiter</span>&lt;TResponse&gt;</td>
  246. <td></td>
  247. </tr>
  248. </tbody>
  249. </table>
  250. <a id="Grpc_Core_AsyncClientStreamingCall_2_GetStatus_" data-uid="Grpc.Core.AsyncClientStreamingCall`2.GetStatus*"></a>
  251. <h4 id="Grpc_Core_AsyncClientStreamingCall_2_GetStatus" data-uid="Grpc.Core.AsyncClientStreamingCall`2.GetStatus">GetStatus()</h4>
  252. <div class="markdown level1 summary"><p>Gets the call status if the call has already finished.
  253. Throws InvalidOperationException otherwise.</p>
  254. </div>
  255. <div class="markdown level1 conceptual"></div>
  256. <h5 class="decalaration">Declaration</h5>
  257. <div class="codewrapper">
  258. <pre><code class="lang-csharp hljs">public Status GetStatus()</code></pre>
  259. </div>
  260. <h5 class="returns">Returns</h5>
  261. <table class="table table-bordered table-striped table-condensed">
  262. <thead>
  263. <tr>
  264. <th>Type</th>
  265. <th>Description</th>
  266. </tr>
  267. </thead>
  268. <tbody>
  269. <tr>
  270. <td><a class="xref" href="Grpc.Core.Status.html">Status</a></td>
  271. <td></td>
  272. </tr>
  273. </tbody>
  274. </table>
  275. <a id="Grpc_Core_AsyncClientStreamingCall_2_GetTrailers_" data-uid="Grpc.Core.AsyncClientStreamingCall`2.GetTrailers*"></a>
  276. <h4 id="Grpc_Core_AsyncClientStreamingCall_2_GetTrailers" data-uid="Grpc.Core.AsyncClientStreamingCall`2.GetTrailers">GetTrailers()</h4>
  277. <div class="markdown level1 summary"><p>Gets the call trailing metadata if the call has already finished.
  278. Throws InvalidOperationException otherwise.</p>
  279. </div>
  280. <div class="markdown level1 conceptual"></div>
  281. <h5 class="decalaration">Declaration</h5>
  282. <div class="codewrapper">
  283. <pre><code class="lang-csharp hljs">public Metadata GetTrailers()</code></pre>
  284. </div>
  285. <h5 class="returns">Returns</h5>
  286. <table class="table table-bordered table-striped table-condensed">
  287. <thead>
  288. <tr>
  289. <th>Type</th>
  290. <th>Description</th>
  291. </tr>
  292. </thead>
  293. <tbody>
  294. <tr>
  295. <td><a class="xref" href="Grpc.Core.Metadata.html">Metadata</a></td>
  296. <td></td>
  297. </tr>
  298. </tbody>
  299. </table>
  300. </article>
  301. </div>
  302. <div class="hidden-sm col-md-2" role="complementary">
  303. <div class="sideaffix">
  304. <nav class="bs-docs-sidebar hidden-print hidden-xs hidden-sm affix" id="affix">
  305. <!-- <p><a class="back-to-top" href="#top">Back to top</a><p> -->
  306. </nav>
  307. </div>
  308. </div>
  309. </div>
  310. </div>
  311. <footer>
  312. <div class="grad-bottom"></div>
  313. <div class="footer">
  314. <div class="container">
  315. <span class="pull-right">
  316. <a href="#top">Back to top</a>
  317. </span>
  318. <span>Copyright © 2015-2017 Microsoft<br>Generated by <strong>DocFX</strong></span>
  319. </div>
  320. </div>
  321. </footer>
  322. </div>
  323. <script type="text/javascript" src="../styles/docfx.vendor.js"></script>
  324. <script type="text/javascript" src="../styles/docfx.js"></script>
  325. <script type="text/javascript" src="../styles/main.js"></script>
  326. </body>
  327. </html>