registerInterceptor method

void registerInterceptor (Interceptor action)

Registers a middleware for methods in GRPC endpoint.

  • action an action function that is called when middleware is invoked.