grpc / grpc-dart

The Dart language implementation of gRPC.
https://pub.dev/packages/grpc
Apache License 2.0
860 stars 271 forks source link

Should interceptors pass in the Channel that is calling them #546

Open fuzzybinary opened 2 years ago

fuzzybinary commented 2 years ago

I have a use case for a ClientInterceptor that requires I know what Channel call is being made on, but there's no way to get this information from the intercept call without passing in the channel to the Interceptor's constructor.

Does it make sense to instead pass the Channel in as a parameter to the intercept* calls?