View Source Unleash.Propagation.GRPC.ContextServerInterceptor (Unleash v3.0.0)

A GRPC Server Interceptor to extract unleash context and overrides from incoming GRPC request headers and store them for feature flag checks and further propagation downstream (e.g. via Unleash.Propagation.GRPC.ContextClientInterceptor).

See Unleash.Propagation for more details on the propagation mechanism.

Note that, contrarily to the ContextClientInterceptor, this interceptor does not raise in case of invalid context or overrides in the gRPC request headers. The difference is due to the nature of the data: in here, it's dynamic input data, beyond our control. Invalid data is expected and we should handle it gracefully.