Configures the gRPC server to register services.
This method allows defining a block of logic to configure an RpcServer instance, where multiple services can be registered:
GrpcServer(port) {
services {
registerService<MyService> { MyServiceImpl() }
registerService<MyOtherService> { MyOtherServiceImpl() }
}
}Content copied to clipboard
Parameters
block
A lambda with RpcServer as its receiver, allowing service registration.