Grpc.Core.AsyncServerStreamingCall-1.html 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288
  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 AsyncServerStreamingCall&lt;TResponse&gt;
  8. | gRPC C# </title>
  9. <meta name="viewport" content="width=device-width">
  10. <meta name="title" content="Class AsyncServerStreamingCall&lt;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.AsyncServerStreamingCall`1">
  71. <h1 id="Grpc_Core_AsyncServerStreamingCall_1" data-uid="Grpc.Core.AsyncServerStreamingCall`1" class="text-break">Class AsyncServerStreamingCall&lt;TResponse&gt;
  72. </h1>
  73. <div class="markdown level0 summary"><p>Return type for server 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">AsyncServerStreamingCall&lt;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_AsyncServerStreamingCall_1_syntax">Syntax</h5>
  108. <div class="codewrapper">
  109. <pre><code class="lang-csharp hljs">public sealed class AsyncServerStreamingCall&lt;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">TResponse</span></td>
  122. <td><p>Response message type for this call.</p>
  123. </td>
  124. </tr>
  125. </tbody>
  126. </table>
  127. <h3 id="properties">Properties
  128. </h3>
  129. <a id="Grpc_Core_AsyncServerStreamingCall_1_ResponseHeadersAsync_" data-uid="Grpc.Core.AsyncServerStreamingCall`1.ResponseHeadersAsync*"></a>
  130. <h4 id="Grpc_Core_AsyncServerStreamingCall_1_ResponseHeadersAsync" data-uid="Grpc.Core.AsyncServerStreamingCall`1.ResponseHeadersAsync">ResponseHeadersAsync</h4>
  131. <div class="markdown level1 summary"><p>Asynchronous access to response headers.</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 Task&lt;Metadata&gt; ResponseHeadersAsync { get; }</code></pre>
  137. </div>
  138. <h5 class="propertyValue">Property Value</h5>
  139. <table class="table table-bordered table-striped table-condensed">
  140. <thead>
  141. <tr>
  142. <th>Type</th>
  143. <th>Description</th>
  144. </tr>
  145. </thead>
  146. <tbody>
  147. <tr>
  148. <td><span class="xref">System.Threading.Tasks.Task</span>&lt;<a class="xref" href="Grpc.Core.Metadata.html">Metadata</a>&gt;</td>
  149. <td></td>
  150. </tr>
  151. </tbody>
  152. </table>
  153. <a id="Grpc_Core_AsyncServerStreamingCall_1_ResponseStream_" data-uid="Grpc.Core.AsyncServerStreamingCall`1.ResponseStream*"></a>
  154. <h4 id="Grpc_Core_AsyncServerStreamingCall_1_ResponseStream" data-uid="Grpc.Core.AsyncServerStreamingCall`1.ResponseStream">ResponseStream</h4>
  155. <div class="markdown level1 summary"><p>Async stream to read streaming responses.</p>
  156. </div>
  157. <div class="markdown level1 conceptual"></div>
  158. <h5 class="decalaration">Declaration</h5>
  159. <div class="codewrapper">
  160. <pre><code class="lang-csharp hljs">public IAsyncStreamReader&lt;TResponse&gt; ResponseStream { get; }</code></pre>
  161. </div>
  162. <h5 class="propertyValue">Property Value</h5>
  163. <table class="table table-bordered table-striped table-condensed">
  164. <thead>
  165. <tr>
  166. <th>Type</th>
  167. <th>Description</th>
  168. </tr>
  169. </thead>
  170. <tbody>
  171. <tr>
  172. <td><a class="xref" href="Grpc.Core.IAsyncStreamReader-1.html">IAsyncStreamReader</a>&lt;TResponse&gt;</td>
  173. <td></td>
  174. </tr>
  175. </tbody>
  176. </table>
  177. <h3 id="methods">Methods
  178. </h3>
  179. <a id="Grpc_Core_AsyncServerStreamingCall_1_Dispose_" data-uid="Grpc.Core.AsyncServerStreamingCall`1.Dispose*"></a>
  180. <h4 id="Grpc_Core_AsyncServerStreamingCall_1_Dispose" data-uid="Grpc.Core.AsyncServerStreamingCall`1.Dispose">Dispose()</h4>
  181. <div class="markdown level1 summary"><p>Provides means to cleanup after the call.
  182. If the call has already finished normally (response stream has been fully read), doesn&apos;t do anything.
  183. Otherwise, requests cancellation of the call which should terminate all pending async operations associated with the call.
  184. As a result, all resources being used by the call should be released eventually.</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 void Dispose()</code></pre>
  190. </div>
  191. <h5 class="implements">Implements</h5>
  192. <div><span class="xref">System.IDisposable.Dispose()</span></div>
  193. <h5 id="Grpc_Core_AsyncServerStreamingCall_1_Dispose_remarks">Remarks</h5>
  194. <div class="markdown level1 remarks"><p>Normally, there is no need for you to dispose the call unless you want to utilize the
  195. &quot;Cancel&quot; semantics of invoking <code>Dispose</code>.</p>
  196. </div>
  197. <a id="Grpc_Core_AsyncServerStreamingCall_1_GetStatus_" data-uid="Grpc.Core.AsyncServerStreamingCall`1.GetStatus*"></a>
  198. <h4 id="Grpc_Core_AsyncServerStreamingCall_1_GetStatus" data-uid="Grpc.Core.AsyncServerStreamingCall`1.GetStatus">GetStatus()</h4>
  199. <div class="markdown level1 summary"><p>Gets the call status if the call has already finished.
  200. Throws InvalidOperationException otherwise.</p>
  201. </div>
  202. <div class="markdown level1 conceptual"></div>
  203. <h5 class="decalaration">Declaration</h5>
  204. <div class="codewrapper">
  205. <pre><code class="lang-csharp hljs">public Status GetStatus()</code></pre>
  206. </div>
  207. <h5 class="returns">Returns</h5>
  208. <table class="table table-bordered table-striped table-condensed">
  209. <thead>
  210. <tr>
  211. <th>Type</th>
  212. <th>Description</th>
  213. </tr>
  214. </thead>
  215. <tbody>
  216. <tr>
  217. <td><a class="xref" href="Grpc.Core.Status.html">Status</a></td>
  218. <td></td>
  219. </tr>
  220. </tbody>
  221. </table>
  222. <a id="Grpc_Core_AsyncServerStreamingCall_1_GetTrailers_" data-uid="Grpc.Core.AsyncServerStreamingCall`1.GetTrailers*"></a>
  223. <h4 id="Grpc_Core_AsyncServerStreamingCall_1_GetTrailers" data-uid="Grpc.Core.AsyncServerStreamingCall`1.GetTrailers">GetTrailers()</h4>
  224. <div class="markdown level1 summary"><p>Gets the call trailing metadata if the call has already finished.
  225. Throws InvalidOperationException otherwise.</p>
  226. </div>
  227. <div class="markdown level1 conceptual"></div>
  228. <h5 class="decalaration">Declaration</h5>
  229. <div class="codewrapper">
  230. <pre><code class="lang-csharp hljs">public Metadata GetTrailers()</code></pre>
  231. </div>
  232. <h5 class="returns">Returns</h5>
  233. <table class="table table-bordered table-striped table-condensed">
  234. <thead>
  235. <tr>
  236. <th>Type</th>
  237. <th>Description</th>
  238. </tr>
  239. </thead>
  240. <tbody>
  241. <tr>
  242. <td><a class="xref" href="Grpc.Core.Metadata.html">Metadata</a></td>
  243. <td></td>
  244. </tr>
  245. </tbody>
  246. </table>
  247. </article>
  248. </div>
  249. <div class="hidden-sm col-md-2" role="complementary">
  250. <div class="sideaffix">
  251. <nav class="bs-docs-sidebar hidden-print hidden-xs hidden-sm affix" id="affix">
  252. <!-- <p><a class="back-to-top" href="#top">Back to top</a><p> -->
  253. </nav>
  254. </div>
  255. </div>
  256. </div>
  257. </div>
  258. <footer>
  259. <div class="grad-bottom"></div>
  260. <div class="footer">
  261. <div class="container">
  262. <span class="pull-right">
  263. <a href="#top">Back to top</a>
  264. </span>
  265. <span>Copyright © 2015-2017 Microsoft<br>Generated by <strong>DocFX</strong></span>
  266. </div>
  267. </div>
  268. </footer>
  269. </div>
  270. <script type="text/javascript" src="../styles/docfx.vendor.js"></script>
  271. <script type="text/javascript" src="../styles/docfx.js"></script>
  272. <script type="text/javascript" src="../styles/main.js"></script>
  273. </body>
  274. </html>