public Task <NodesUsageResponse> UsageAsync(Action <NodesUsageRequestDescriptor> configureRequest = null, CancellationToken cancellationToken = default) { var descriptor = new NodesUsageRequestDescriptor(); configureRequest?.Invoke(descriptor); descriptor.BeforeRequest(); return(DoRequestAsync <NodesUsageRequestDescriptor, NodesUsageResponse>(descriptor)); }
public NodesUsageResponse Usage(Action <NodesUsageRequestDescriptor> configureRequest = null) { var descriptor = new NodesUsageRequestDescriptor(); configureRequest?.Invoke(descriptor); descriptor.BeforeRequest(); return(DoRequest <NodesUsageRequestDescriptor, NodesUsageResponse>(descriptor)); }