Add interceptors to configuration (#16126)
* Add interceptors to configuration * Update aspnetcore/grpc/configuration.md Co-Authored-By: Scott Addie <10702007+scottaddie@users.noreply.github.com>pull/16132/head
parent
d11b42a7dc
commit
6437cc9fc1
|
@ -22,6 +22,7 @@ gRPC services are configured with `AddGrpc` in *Startup.cs*. The following table
|
||||||
| `CompressionProviders` | gzip | A collection of compression providers used to compress and decompress messages. Custom compression providers can be created and added to the collection. The default configured providers support **gzip** compression. |
|
| `CompressionProviders` | gzip | A collection of compression providers used to compress and decompress messages. Custom compression providers can be created and added to the collection. The default configured providers support **gzip** compression. |
|
||||||
| `ResponseCompressionAlgorithm` | `null` | The compression algorithm used to compress messages sent from the server. The algorithm must match a compression provider in `CompressionProviders`. For the algorithm to compress a response, the client must indicate it supports the algorithm by sending it in the **grpc-accept-encoding** header. |
|
| `ResponseCompressionAlgorithm` | `null` | The compression algorithm used to compress messages sent from the server. The algorithm must match a compression provider in `CompressionProviders`. For the algorithm to compress a response, the client must indicate it supports the algorithm by sending it in the **grpc-accept-encoding** header. |
|
||||||
| `ResponseCompressionLevel` | `null` | The compress level used to compress messages sent from the server. |
|
| `ResponseCompressionLevel` | `null` | The compress level used to compress messages sent from the server. |
|
||||||
|
| `Interceptors` | None | A collection of interceptors that are run with each gRPC call. Interceptors are run in the order they are registered. Globally configured interceptors are run before interceptors configured for a single service. For more information about gRPC interceptors, see [gRPC Interceptors vs. Middleware](xref:grpc/migration#grpc-interceptors-vs-middleware). |
|
||||||
|
|
||||||
Options can be configured for all services by providing an options delegate to the `AddGrpc` call in `Startup.ConfigureServices`:
|
Options can be configured for all services by providing an options delegate to the `AddGrpc` call in `Startup.ConfigureServices`:
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue