public virtual async Task <IndexListResponse> GetAllAsync() { var httpRequest = GetAllIndexesHttpRequestFactory.Create(); using (var res = await SendAsync(httpRequest).ForAwait()) { return(await IndexListResponseFactory.CreateAsync(res).ForAwait()); } }
public virtual async Task <IndexListResponse> GetAllAsync(CancellationToken cancellationToken = default) { var httpRequest = GetAllIndexesHttpRequestFactory.Create(); using (var res = await SendAsync(httpRequest, cancellationToken).ForAwait()) { return(await IndexListResponseFactory.CreateAsync(res).ForAwait()); } }