Grpc.AspNetCore.Server.GrpcServiceOptions.html 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306
  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 GrpcServiceOptions
  8. | gRPC for .NET </title>
  9. <meta name="viewport" content="width=device-width">
  10. <meta name="title" content="Class GrpcServiceOptions
  11. | gRPC for .NET ">
  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.AspNetCore.Server.GrpcServiceOptions">
  73. <h1 id="Grpc_AspNetCore_Server_GrpcServiceOptions" data-uid="Grpc.AspNetCore.Server.GrpcServiceOptions" class="text-break">Class GrpcServiceOptions
  74. </h1>
  75. <div class="markdown level0 summary"><p>Options used to configure service instances.</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">GrpcServiceOptions</span></div>
  82. <div class="level2"><a class="xref" href="Grpc.AspNetCore.Server.GrpcServiceOptions-1.html">GrpcServiceOptions&lt;TService&gt;</a></div>
  83. </div>
  84. <h6><strong>Namespace</strong>: <a class="xref" href="Grpc.AspNetCore.Server.html">Grpc.AspNetCore.Server</a></h6>
  85. <h6><strong>Assembly</strong>: Grpc.AspNetCore.Server.dll</h6>
  86. <h5 id="Grpc_AspNetCore_Server_GrpcServiceOptions_syntax">Syntax</h5>
  87. <div class="codewrapper">
  88. <pre><code class="lang-csharp hljs">public class GrpcServiceOptions : object</code></pre>
  89. </div>
  90. <h3 id="properties">Properties
  91. </h3>
  92. <a id="Grpc_AspNetCore_Server_GrpcServiceOptions_CompressionProviders_" data-uid="Grpc.AspNetCore.Server.GrpcServiceOptions.CompressionProviders*"></a>
  93. <h4 id="Grpc_AspNetCore_Server_GrpcServiceOptions_CompressionProviders" data-uid="Grpc.AspNetCore.Server.GrpcServiceOptions.CompressionProviders">CompressionProviders</h4>
  94. <div class="markdown level1 summary"><p>Gets or sets the list of compression providers used to compress and decompress gRPC messages.</p>
  95. </div>
  96. <div class="markdown level1 conceptual"></div>
  97. <h5 class="decalaration">Declaration</h5>
  98. <div class="codewrapper">
  99. <pre><code class="lang-csharp hljs">public IList&lt;ICompressionProvider&gt; CompressionProviders { get; set; }</code></pre>
  100. </div>
  101. <h5 class="propertyValue">Property Value</h5>
  102. <table class="table table-bordered table-striped table-condensed">
  103. <thead>
  104. <tr>
  105. <th>Type</th>
  106. <th>Description</th>
  107. </tr>
  108. </thead>
  109. <tbody>
  110. <tr>
  111. <td><span class="xref">IList</span>&lt;<a class="xref" href="Grpc.Net.Compression.ICompressionProvider.html">ICompressionProvider</a>&gt;</td>
  112. <td></td>
  113. </tr>
  114. </tbody>
  115. </table>
  116. <a id="Grpc_AspNetCore_Server_GrpcServiceOptions_EnableDetailedErrors_" data-uid="Grpc.AspNetCore.Server.GrpcServiceOptions.EnableDetailedErrors*"></a>
  117. <h4 id="Grpc_AspNetCore_Server_GrpcServiceOptions_EnableDetailedErrors" data-uid="Grpc.AspNetCore.Server.GrpcServiceOptions.EnableDetailedErrors">EnableDetailedErrors</h4>
  118. <div class="markdown level1 summary"><p>Gets or sets a value indicating whether detailed error messages are sent to the peer.
  119. Detailed error messages include details from exceptions thrown on the server.</p>
  120. </div>
  121. <div class="markdown level1 conceptual"></div>
  122. <h5 class="decalaration">Declaration</h5>
  123. <div class="codewrapper">
  124. <pre><code class="lang-csharp hljs">public bool? EnableDetailedErrors { get; set; }</code></pre>
  125. </div>
  126. <h5 class="propertyValue">Property Value</h5>
  127. <table class="table table-bordered table-striped table-condensed">
  128. <thead>
  129. <tr>
  130. <th>Type</th>
  131. <th>Description</th>
  132. </tr>
  133. </thead>
  134. <tbody>
  135. <tr>
  136. <td><span class="xref">System.Nullable</span>&lt;<span class="xref">System.Boolean</span>&gt;</td>
  137. <td></td>
  138. </tr>
  139. </tbody>
  140. </table>
  141. <a id="Grpc_AspNetCore_Server_GrpcServiceOptions_Interceptors_" data-uid="Grpc.AspNetCore.Server.GrpcServiceOptions.Interceptors*"></a>
  142. <h4 id="Grpc_AspNetCore_Server_GrpcServiceOptions_Interceptors" data-uid="Grpc.AspNetCore.Server.GrpcServiceOptions.Interceptors">Interceptors</h4>
  143. <div class="markdown level1 summary"><p>Get a collection of interceptors to be executed with every call. Interceptors are executed in order.</p>
  144. </div>
  145. <div class="markdown level1 conceptual"></div>
  146. <h5 class="decalaration">Declaration</h5>
  147. <div class="codewrapper">
  148. <pre><code class="lang-csharp hljs">public InterceptorCollection Interceptors { get; }</code></pre>
  149. </div>
  150. <h5 class="propertyValue">Property Value</h5>
  151. <table class="table table-bordered table-striped table-condensed">
  152. <thead>
  153. <tr>
  154. <th>Type</th>
  155. <th>Description</th>
  156. </tr>
  157. </thead>
  158. <tbody>
  159. <tr>
  160. <td><a class="xref" href="Grpc.AspNetCore.Server.InterceptorCollection.html">InterceptorCollection</a></td>
  161. <td></td>
  162. </tr>
  163. </tbody>
  164. </table>
  165. <a id="Grpc_AspNetCore_Server_GrpcServiceOptions_MaxReceiveMessageSize_" data-uid="Grpc.AspNetCore.Server.GrpcServiceOptions.MaxReceiveMessageSize*"></a>
  166. <h4 id="Grpc_AspNetCore_Server_GrpcServiceOptions_MaxReceiveMessageSize" data-uid="Grpc.AspNetCore.Server.GrpcServiceOptions.MaxReceiveMessageSize">MaxReceiveMessageSize</h4>
  167. <div class="markdown level1 summary"><p>Gets or sets the maximum message size in bytes that can be received by the server.</p>
  168. </div>
  169. <div class="markdown level1 conceptual"></div>
  170. <h5 class="decalaration">Declaration</h5>
  171. <div class="codewrapper">
  172. <pre><code class="lang-csharp hljs">public int? MaxReceiveMessageSize { get; set; }</code></pre>
  173. </div>
  174. <h5 class="propertyValue">Property Value</h5>
  175. <table class="table table-bordered table-striped table-condensed">
  176. <thead>
  177. <tr>
  178. <th>Type</th>
  179. <th>Description</th>
  180. </tr>
  181. </thead>
  182. <tbody>
  183. <tr>
  184. <td><span class="xref">System.Nullable</span>&lt;<span class="xref">System.Int32</span>&gt;</td>
  185. <td></td>
  186. </tr>
  187. </tbody>
  188. </table>
  189. <a id="Grpc_AspNetCore_Server_GrpcServiceOptions_MaxSendMessageSize_" data-uid="Grpc.AspNetCore.Server.GrpcServiceOptions.MaxSendMessageSize*"></a>
  190. <h4 id="Grpc_AspNetCore_Server_GrpcServiceOptions_MaxSendMessageSize" data-uid="Grpc.AspNetCore.Server.GrpcServiceOptions.MaxSendMessageSize">MaxSendMessageSize</h4>
  191. <div class="markdown level1 summary"><p>Gets or sets the maximum message size in bytes that can be sent from the server.</p>
  192. </div>
  193. <div class="markdown level1 conceptual"></div>
  194. <h5 class="decalaration">Declaration</h5>
  195. <div class="codewrapper">
  196. <pre><code class="lang-csharp hljs">public int? MaxSendMessageSize { get; set; }</code></pre>
  197. </div>
  198. <h5 class="propertyValue">Property Value</h5>
  199. <table class="table table-bordered table-striped table-condensed">
  200. <thead>
  201. <tr>
  202. <th>Type</th>
  203. <th>Description</th>
  204. </tr>
  205. </thead>
  206. <tbody>
  207. <tr>
  208. <td><span class="xref">System.Nullable</span>&lt;<span class="xref">System.Int32</span>&gt;</td>
  209. <td></td>
  210. </tr>
  211. </tbody>
  212. </table>
  213. <a id="Grpc_AspNetCore_Server_GrpcServiceOptions_ResponseCompressionAlgorithm_" data-uid="Grpc.AspNetCore.Server.GrpcServiceOptions.ResponseCompressionAlgorithm*"></a>
  214. <h4 id="Grpc_AspNetCore_Server_GrpcServiceOptions_ResponseCompressionAlgorithm" data-uid="Grpc.AspNetCore.Server.GrpcServiceOptions.ResponseCompressionAlgorithm">ResponseCompressionAlgorithm</h4>
  215. <div class="markdown level1 summary"><p>Gets or sets the compression algorithm used to compress messages sent from the server.
  216. The request grpc-accept-encoding header value must contain this algorithm for it to
  217. be used.</p>
  218. </div>
  219. <div class="markdown level1 conceptual"></div>
  220. <h5 class="decalaration">Declaration</h5>
  221. <div class="codewrapper">
  222. <pre><code class="lang-csharp hljs">public string? ResponseCompressionAlgorithm { get; set; }</code></pre>
  223. </div>
  224. <h5 class="propertyValue">Property Value</h5>
  225. <table class="table table-bordered table-striped table-condensed">
  226. <thead>
  227. <tr>
  228. <th>Type</th>
  229. <th>Description</th>
  230. </tr>
  231. </thead>
  232. <tbody>
  233. <tr>
  234. <td><span class="xref">System.Nullable</span>&lt;<span class="xref">System.String</span>&gt;</td>
  235. <td></td>
  236. </tr>
  237. </tbody>
  238. </table>
  239. <a id="Grpc_AspNetCore_Server_GrpcServiceOptions_ResponseCompressionLevel_" data-uid="Grpc.AspNetCore.Server.GrpcServiceOptions.ResponseCompressionLevel*"></a>
  240. <h4 id="Grpc_AspNetCore_Server_GrpcServiceOptions_ResponseCompressionLevel" data-uid="Grpc.AspNetCore.Server.GrpcServiceOptions.ResponseCompressionLevel">ResponseCompressionLevel</h4>
  241. <div class="markdown level1 summary"><p>Gets or sets the compression level used to compress messages sent from the server.
  242. The compression level will be passed to the compression provider.</p>
  243. </div>
  244. <div class="markdown level1 conceptual"></div>
  245. <h5 class="decalaration">Declaration</h5>
  246. <div class="codewrapper">
  247. <pre><code class="lang-csharp hljs">public CompressionLevel? ResponseCompressionLevel { get; set; }</code></pre>
  248. </div>
  249. <h5 class="propertyValue">Property Value</h5>
  250. <table class="table table-bordered table-striped table-condensed">
  251. <thead>
  252. <tr>
  253. <th>Type</th>
  254. <th>Description</th>
  255. </tr>
  256. </thead>
  257. <tbody>
  258. <tr>
  259. <td><span class="xref">System.Nullable</span>&lt;<span class="xref">CompressionLevel</span>&gt;</td>
  260. <td></td>
  261. </tr>
  262. </tbody>
  263. </table>
  264. </article>
  265. </div>
  266. <div class="hidden-sm col-md-2" role="complementary">
  267. <div class="sideaffix">
  268. <nav class="bs-docs-sidebar hidden-print hidden-xs hidden-sm affix" id="affix">
  269. <!-- <p><a class="back-to-top" href="#top">Back to top</a><p> -->
  270. </nav>
  271. </div>
  272. </div>
  273. </div>
  274. </div>
  275. <footer>
  276. <div class="grad-bottom"></div>
  277. <div class="footer">
  278. <div class="container">
  279. <span class="pull-right">
  280. <a href="#top">Back to top</a>
  281. </span>
  282. <span>Generated by <strong>DocFX</strong></span>
  283. </div>
  284. </div>
  285. </footer>
  286. </div>
  287. <script type="text/javascript" src="../styles/docfx.vendor.js"></script>
  288. <script type="text/javascript" src="../styles/docfx.js"></script>
  289. <script type="text/javascript" src="../styles/main.js"></script>
  290. </body>
  291. </html>