Grpc.Health.V1.Health.HealthBase.html 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276
  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 Health.HealthBase
  8. | gRPC C# </title>
  9. <meta name="viewport" content="width=device-width">
  10. <meta name="title" content="Class Health.HealthBase
  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.Health.V1.Health.HealthBase">
  73. <h1 id="Grpc_Health_V1_Health_HealthBase" data-uid="Grpc.Health.V1.Health.HealthBase" class="text-break">Class Health.HealthBase
  74. </h1>
  75. <div class="markdown level0 summary"><p>Base class for server-side implementations of Health</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">Health.HealthBase</span></div>
  82. <div class="level2"><a class="xref" href="Grpc.HealthCheck.HealthServiceImpl.html">HealthServiceImpl</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.Health.V1.html">Grpc.Health.V1</a></h6>
  109. <h6><strong>Assembly</strong>: Grpc.HealthCheck.dll</h6>
  110. <h5 id="Grpc_Health_V1_Health_HealthBase_syntax">Syntax</h5>
  111. <div class="codewrapper">
  112. <pre><code class="lang-csharp hljs">[BindServiceMethod(typeof(Health), &quot;BindService&quot;)]
  113. public abstract class HealthBase</code></pre>
  114. </div>
  115. <h3 id="methods">Methods
  116. </h3>
  117. <a id="Grpc_Health_V1_Health_HealthBase_Check_" data-uid="Grpc.Health.V1.Health.HealthBase.Check*"></a>
  118. <h4 id="Grpc_Health_V1_Health_HealthBase_Check_Grpc_Health_V1_HealthCheckRequest_Grpc_Core_ServerCallContext_" data-uid="Grpc.Health.V1.Health.HealthBase.Check(Grpc.Health.V1.HealthCheckRequest,Grpc.Core.ServerCallContext)">Check(HealthCheckRequest, ServerCallContext)</h4>
  119. <div class="markdown level1 summary"><p>If the requested service is unknown, the call will fail with status
  120. NOT_FOUND.</p>
  121. </div>
  122. <div class="markdown level1 conceptual"></div>
  123. <h5 class="decalaration">Declaration</h5>
  124. <div class="codewrapper">
  125. <pre><code class="lang-csharp hljs">public virtual Task&lt;HealthCheckResponse&gt; Check(HealthCheckRequest request, ServerCallContext context)</code></pre>
  126. </div>
  127. <h5 class="parameters">Parameters</h5>
  128. <table class="table table-bordered table-striped table-condensed">
  129. <thead>
  130. <tr>
  131. <th>Type</th>
  132. <th>Name</th>
  133. <th>Description</th>
  134. </tr>
  135. </thead>
  136. <tbody>
  137. <tr>
  138. <td><a class="xref" href="Grpc.Health.V1.HealthCheckRequest.html">HealthCheckRequest</a></td>
  139. <td><span class="parametername">request</span></td>
  140. <td><p>The request received from the client.</p>
  141. </td>
  142. </tr>
  143. <tr>
  144. <td><a class="xref" href="Grpc.Core.ServerCallContext.html">ServerCallContext</a></td>
  145. <td><span class="parametername">context</span></td>
  146. <td><p>The context of the server-side call handler being invoked.</p>
  147. </td>
  148. </tr>
  149. </tbody>
  150. </table>
  151. <h5 class="returns">Returns</h5>
  152. <table class="table table-bordered table-striped table-condensed">
  153. <thead>
  154. <tr>
  155. <th>Type</th>
  156. <th>Description</th>
  157. </tr>
  158. </thead>
  159. <tbody>
  160. <tr>
  161. <td><span class="xref">System.Threading.Tasks.Task</span>&lt;<a class="xref" href="Grpc.Health.V1.HealthCheckResponse.html">HealthCheckResponse</a>&gt;</td>
  162. <td><p>The response to send back to the client (wrapped by a task).</p>
  163. </td>
  164. </tr>
  165. </tbody>
  166. </table>
  167. <a id="Grpc_Health_V1_Health_HealthBase_Watch_" data-uid="Grpc.Health.V1.Health.HealthBase.Watch*"></a>
  168. <h4 id="Grpc_Health_V1_Health_HealthBase_Watch_Grpc_Health_V1_HealthCheckRequest_Grpc_Core_IServerStreamWriter_Grpc_Health_V1_HealthCheckResponse__Grpc_Core_ServerCallContext_" data-uid="Grpc.Health.V1.Health.HealthBase.Watch(Grpc.Health.V1.HealthCheckRequest,Grpc.Core.IServerStreamWriter{Grpc.Health.V1.HealthCheckResponse},Grpc.Core.ServerCallContext)">Watch(HealthCheckRequest, IServerStreamWriter&lt;HealthCheckResponse&gt;, ServerCallContext)</h4>
  169. <div class="markdown level1 summary"><p>Performs a watch for the serving status of the requested service.
  170. The server will immediately send back a message indicating the current
  171. serving status. It will then subsequently send a new message whenever
  172. the service&apos;s serving status changes.</p>
  173. <p>If the requested service is unknown when the call is received, the
  174. server will send a message setting the serving status to
  175. SERVICE_UNKNOWN but will <em>not</em> terminate the call. If at some
  176. future point, the serving status of the service becomes known, the
  177. server will send a new message with the service&apos;s serving status.</p>
  178. <p>If the call terminates with status UNIMPLEMENTED, then clients
  179. should assume this method is not supported and should not retry the
  180. call. If the call terminates with any other status (including OK),
  181. clients should retry the call with appropriate exponential backoff.</p>
  182. </div>
  183. <div class="markdown level1 conceptual"></div>
  184. <h5 class="decalaration">Declaration</h5>
  185. <div class="codewrapper">
  186. <pre><code class="lang-csharp hljs">public virtual Task Watch(HealthCheckRequest request, IServerStreamWriter&lt;HealthCheckResponse&gt; responseStream, ServerCallContext context)</code></pre>
  187. </div>
  188. <h5 class="parameters">Parameters</h5>
  189. <table class="table table-bordered table-striped table-condensed">
  190. <thead>
  191. <tr>
  192. <th>Type</th>
  193. <th>Name</th>
  194. <th>Description</th>
  195. </tr>
  196. </thead>
  197. <tbody>
  198. <tr>
  199. <td><a class="xref" href="Grpc.Health.V1.HealthCheckRequest.html">HealthCheckRequest</a></td>
  200. <td><span class="parametername">request</span></td>
  201. <td><p>The request received from the client.</p>
  202. </td>
  203. </tr>
  204. <tr>
  205. <td><a class="xref" href="Grpc.Core.IServerStreamWriter-1.html">IServerStreamWriter</a>&lt;<a class="xref" href="Grpc.Health.V1.HealthCheckResponse.html">HealthCheckResponse</a>&gt;</td>
  206. <td><span class="parametername">responseStream</span></td>
  207. <td><p>Used for sending responses back to the client.</p>
  208. </td>
  209. </tr>
  210. <tr>
  211. <td><a class="xref" href="Grpc.Core.ServerCallContext.html">ServerCallContext</a></td>
  212. <td><span class="parametername">context</span></td>
  213. <td><p>The context of the server-side call handler being invoked.</p>
  214. </td>
  215. </tr>
  216. </tbody>
  217. </table>
  218. <h5 class="returns">Returns</h5>
  219. <table class="table table-bordered table-striped table-condensed">
  220. <thead>
  221. <tr>
  222. <th>Type</th>
  223. <th>Description</th>
  224. </tr>
  225. </thead>
  226. <tbody>
  227. <tr>
  228. <td><span class="xref">System.Threading.Tasks.Task</span></td>
  229. <td><p>A task indicating completion of the handler.</p>
  230. </td>
  231. </tr>
  232. </tbody>
  233. </table>
  234. </article>
  235. </div>
  236. <div class="hidden-sm col-md-2" role="complementary">
  237. <div class="sideaffix">
  238. <nav class="bs-docs-sidebar hidden-print hidden-xs hidden-sm affix" id="affix">
  239. <!-- <p><a class="back-to-top" href="#top">Back to top</a><p> -->
  240. </nav>
  241. </div>
  242. </div>
  243. </div>
  244. </div>
  245. <footer>
  246. <div class="grad-bottom"></div>
  247. <div class="footer">
  248. <div class="container">
  249. <span class="pull-right">
  250. <a href="#top">Back to top</a>
  251. </span>
  252. <span>Generated by <strong>DocFX</strong></span>
  253. </div>
  254. </div>
  255. </footer>
  256. </div>
  257. <script type="text/javascript" src="../styles/docfx.vendor.js"></script>
  258. <script type="text/javascript" src="../styles/docfx.js"></script>
  259. <script type="text/javascript" src="../styles/main.js"></script>
  260. </body>
  261. </html>