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