From 6437cc9fc19c7d39cdb4200699299d88da8f7840 Mon Sep 17 00:00:00 2001 From: James Newton-King Date: Wed, 11 Dec 2019 11:03:29 +1300 Subject: [PATCH] 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> --- aspnetcore/grpc/configuration.md | 1 + 1 file changed, 1 insertion(+) diff --git a/aspnetcore/grpc/configuration.md b/aspnetcore/grpc/configuration.md index 6bc4ca8822..f23c31f1fe 100644 --- a/aspnetcore/grpc/configuration.md +++ b/aspnetcore/grpc/configuration.md @@ -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. | | `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. | +| `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`: