2 implementations of IHttpResponseMessageWrapper
dotnet-openapi (1)
HttpClientWrapper.cs (1)
42
public class HttpResponseMessageWrapper :
IHttpResponseMessageWrapper
Microsoft.DotNet.Open.Api.Tools.Tests (1)
OpenApiTestBase.cs (1)
149
public sealed class TestHttpResponseMessageWrapper :
IHttpResponseMessageWrapper
10 references to IHttpResponseMessageWrapper
dotnet-openapi (8)
Commands\BaseCommand.cs (6)
258
using
var
response = await RetryRequest(() => _httpClient.GetResponseAsync(url));
264
using
var
response = await RetryRequest(() => _httpClient.GetResponseAsync(url));
297
private static async Task<
IHttpResponseMessageWrapper
> RetryRequest(
298
Func<Task<
IHttpResponseMessageWrapper
>> retryBlock,
311
var
response = await retryBlock().ConfigureAwait(false);
366
private static string GetFileNameFromResponse(
IHttpResponseMessageWrapper
response, string url)
HttpClientWrapper.cs (1)
29
public async Task<
IHttpResponseMessageWrapper
> GetResponseAsync(string url)
IHttpClientWrapper.cs (1)
12
Task<
IHttpResponseMessageWrapper
> GetResponseAsync(string url);
Microsoft.DotNet.Open.Api.Tools.Tests (2)
OpenApiTestBase.cs (2)
135
public Task<
IHttpResponseMessageWrapper
> GetResponseAsync(string url)
145
return Task.FromResult<
IHttpResponseMessageWrapper
>(new TestHttpResponseMessageWrapper(stream, result?.Item2));