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