public Task <AsyncSearchStatusResponse> StatusAsync(Elastic.Clients.Elasticsearch.Id id, Action <AsyncSearchStatusRequestDescriptor> configureRequest = null, CancellationToken cancellationToken = default) { var descriptor = new AsyncSearchStatusRequestDescriptor(id); configureRequest?.Invoke(descriptor); descriptor.BeforeRequest(); return(DoRequestAsync <AsyncSearchStatusRequestDescriptor, AsyncSearchStatusResponse>(descriptor)); }
public AsyncSearchStatusResponse Status(Elastic.Clients.Elasticsearch.Id id, Action <AsyncSearchStatusRequestDescriptor> configureRequest = null) { var descriptor = new AsyncSearchStatusRequestDescriptor(id); configureRequest?.Invoke(descriptor); descriptor.BeforeRequest(); return(DoRequest <AsyncSearchStatusRequestDescriptor, AsyncSearchStatusResponse>(descriptor)); }