Beispiel #1
0
        public Task <ClusterAllocationExplainResponse> AllocationExplainAsync(Action <ClusterAllocationExplainRequestDescriptor> configureRequest = null, CancellationToken cancellationToken = default)
        {
            var descriptor = new ClusterAllocationExplainRequestDescriptor();

            configureRequest?.Invoke(descriptor);
            descriptor.BeforeRequest();
            return(DoRequestAsync <ClusterAllocationExplainRequestDescriptor, ClusterAllocationExplainResponse>(descriptor));
        }
Beispiel #2
0
        public ClusterAllocationExplainResponse AllocationExplain(Action <ClusterAllocationExplainRequestDescriptor> configureRequest = null)
        {
            var descriptor = new ClusterAllocationExplainRequestDescriptor();

            configureRequest?.Invoke(descriptor);
            descriptor.BeforeRequest();
            return(DoRequest <ClusterAllocationExplainRequestDescriptor, ClusterAllocationExplainResponse>(descriptor));
        }