示例#1
0
        public async Task <HttpResponseMessage> RecursiveResultAsync(CancellationToken token)
        {
            var context = new HttpBuilderContext(Settings);

            using (var request = await CreateRequest(context))
            {
                token.ThrowIfCancellationRequested();

                return(await ResultFromRequestAsync(context, request, token));
            }
        }
示例#2
0
        public async Task <HttpResponseMessage> ResultFromRequestAsync(HttpRequestMessage request, CancellationToken token)
        {
            var context = new HttpBuilderContext(Settings);

            return(await ResultFromRequestAsync(context, request, token).ConfigureAwait(false));
        }
示例#3
0
        public Task <HttpRequestMessage> CreateRequest()
        {
            var context = new HttpBuilderContext(Settings);

            return(CreateRequest(context));
        }