AspNetCore.Docs icon indicating copy to clipboard operation
AspNetCore.Docs copied to clipboard

Including passing parameter the interceptor

Open jwu-dharmo opened this issue 2 years ago • 1 comments

It will be nice to include information on how to pass parameters the the interceptor.

For example, I know we can specify parameters during the AddServiceOptions() call, but how do we "pass on that value" to AddTransient() or AddSingleton() call.


Document Details

Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

  • ID: cf211766-acfe-e599-8286-a5b1d8a071f1
  • Version Independent ID: cf211766-acfe-e599-8286-a5b1d8a071f1
  • Content: gRPC interceptors on .NET
  • Content Source: aspnetcore/grpc/interceptors.md
  • Product: aspnet-core
  • Technology: aspnetcore-grpc
  • GitHub Login: @erni27
  • Microsoft Alias: jamesnk

jwu-dharmo avatar Aug 11 '22 13:08 jwu-dharmo

It seems to be related more to the DI itself, not to the gRPC interceptors. Could you explain exactly what you're trying to do?

erni27 avatar Aug 11 '22 14:08 erni27

Closing. If you feel this issue should be reopened, feel free to do so.

wadepickett avatar Aug 23 '22 16:08 wadepickett