context property
RpcContext
get
context
Retrieves the Serinus RpcContext associated with this gRPC call.
Implementation
RpcContext get context {
final ctx = grpcContexts[this];
if (ctx == null) {
throw StateError(
'RpcContext is not available. Ensure SerinusGrpcInterceptor is registered '
'and you are passing the correct ServiceCall object.',
);
}
return ctx;
}