protected override void BuildServiceStubs()
        {
            var queryServicesStub = new LightweightMethodStub <RpcObjectRequest, RpcServicesQueryResponse>(
                "SciTech.Rpc.RpcService.QueryServices",
                (request, _, context) => new ValueTask <RpcServicesQueryResponse>(this.QueryServices(request.Id)),
                this.Serializer, null, false);

            this.AddMethodDef(queryServicesStub);

            if (this.AllowDiscovery)
            {
                var discovery = new ServiceDiscovery(this, this.CreateDefaultSerializer());
                discovery.AddDiscoveryMethods(new MethodBinder(this));
            }

            base.BuildServiceStubs();
        }