import { ExecutionContext , Injectable } from '@nestjs/common' ; import { AbstractInterceptorService } from './abstract-interceptor.service' ; @ Injectable ( ) export abstract class RpcInterceptorService extends AbstractInterceptorService { getCallPoint ( context ) { return this . reflector . get ( 'microservices:pattern' , context . getHandler ( ) ) ; } param context returns getData ( context ) { return context . switchToRpc ( ) . getData ( ) ; } param context returns getClient ( context ) { return context . switchToRpc ( ) . getContext ( ) ; } }