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)); }
public ClusterHealthResponse Health(Action <ClusterHealthRequestDescriptor> configureRequest = null) { var descriptor = new ClusterHealthRequestDescriptor(); configureRequest?.Invoke(descriptor); descriptor.BeforeRequest(); return(DoRequest <ClusterHealthRequestDescriptor, ClusterHealthResponse>(descriptor)); }