コード例 #1
0
        public virtual async Task <IndexListResponse> GetAllAsync()
        {
            var httpRequest = GetAllIndexesHttpRequestFactory.Create();

            using (var res = await SendAsync(httpRequest).ForAwait())
            {
                return(await IndexListResponseFactory.CreateAsync(res).ForAwait());
            }
        }
コード例 #2
0
        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());
            }
        }