示例#1
0
        public Task <ClusterHealthResponse> HealthAsync(Action <ClusterHealthRequestDescriptor> configureRequest = null, CancellationToken cancellationToken = default)
        {
            var descriptor = new ClusterHealthRequestDescriptor();

            configureRequest?.Invoke(descriptor);
            descriptor.BeforeRequest();
            return(DoRequestAsync <ClusterHealthRequestDescriptor, ClusterHealthResponse>(descriptor));
        }
示例#2
0
        public ClusterHealthResponse Health(Action <ClusterHealthRequestDescriptor> configureRequest = null)
        {
            var descriptor = new ClusterHealthRequestDescriptor();

            configureRequest?.Invoke(descriptor);
            descriptor.BeforeRequest();
            return(DoRequest <ClusterHealthRequestDescriptor, ClusterHealthResponse>(descriptor));
        }