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)); } }
public async Task <HttpResponseMessage> ResultFromRequestAsync(HttpRequestMessage request, CancellationToken token) { var context = new HttpBuilderContext(Settings); return(await ResultFromRequestAsync(context, request, token).ConfigureAwait(false)); }
public Task <HttpRequestMessage> CreateRequest() { var context = new HttpBuilderContext(Settings); return(CreateRequest(context)); }