public Task <IlmExplainLifecycleResponse> ExplainLifecycleAsync(Elastic.Clients.Elasticsearch.IndexName index, Action <IlmExplainLifecycleRequestDescriptor> configureRequest = null, CancellationToken cancellationToken = default) { var descriptor = new IlmExplainLifecycleRequestDescriptor(index); configureRequest?.Invoke(descriptor); descriptor.BeforeRequest(); return(DoRequestAsync <IlmExplainLifecycleRequestDescriptor, IlmExplainLifecycleResponse>(descriptor)); }
public IlmExplainLifecycleResponse ExplainLifecycle(Elastic.Clients.Elasticsearch.IndexName index, Action <IlmExplainLifecycleRequestDescriptor> configureRequest = null) { var descriptor = new IlmExplainLifecycleRequestDescriptor(index); configureRequest?.Invoke(descriptor); descriptor.BeforeRequest(); return(DoRequest <IlmExplainLifecycleRequestDescriptor, IlmExplainLifecycleResponse>(descriptor)); }