49 writes to BaseAddress
Aspire.Dashboard (1)
Model\DebugSessionHelpers.cs (1)
45client.BaseAddress = debugSessionUri;
Aspire.Dashboard.Tests (26)
Integration\FrontendBrowserTokenAuthTests.cs (5)
39using var client = new HttpClient { BaseAddress = new Uri($"http://{app.FrontendSingleEndPointAccessor().EndPoint}") }; 61using var client = new HttpClient { BaseAddress = new Uri($"http://{app.FrontendSingleEndPointAccessor().EndPoint}") }; 92using var client = new HttpClient { BaseAddress = new Uri($"http://{app.OtlpServiceHttpEndPointAccessor().EndPoint}") }; 116using var client = new HttpClient { BaseAddress = new Uri($"http://{app.FrontendSingleEndPointAccessor().EndPoint}") }; 141using var client = new HttpClient { BaseAddress = new Uri($"http://{app.FrontendSingleEndPointAccessor().EndPoint}") };
Integration\FrontendOpenIdConnectAuthTests.cs (2)
36using var client = new HttpClient(handler) { BaseAddress = new Uri($"http://{app.FrontendSingleEndPointAccessor().EndPoint}") }; 81using var client = new HttpClient(handler) { BaseAddress = new Uri($"http://{app.OtlpServiceHttpEndPointAccessor().EndPoint}") };
Integration\HealthTests.cs (1)
27using var client = new HttpClient(httpClientHandler) { BaseAddress = new Uri(basePath) };
Integration\IntegrationTestHelpers.cs (1)
135return new HttpClient(handler) { BaseAddress = new Uri(address) };
Integration\OtlpHttpServiceTests.cs (6)
231using var client = new HttpClient { BaseAddress = new Uri($"http://{endpoint.EndPoint}") }; 262using var client = new HttpClient { BaseAddress = new Uri($"http://{endpoint.EndPoint}") }; 309using var client = new HttpClient { BaseAddress = new Uri($"http://{endpoint.EndPoint}") }; 334using var client = new HttpClient { BaseAddress = new Uri($"http://{endpoint.EndPoint}") }; 363using var client = new HttpClient { BaseAddress = new Uri($"http://{endpoint.EndPoint}") }; 392using var client = new HttpClient { BaseAddress = new Uri($"http://{endpoint.EndPoint}") };
Integration\ResponseCompressionTests.cs (2)
22using var client = new HttpClient(httpClientHandler) { BaseAddress = new Uri($"http://{app.FrontendSingleEndPointAccessor().EndPoint}") }; 44using var client = new HttpClient(httpClientHandler) { BaseAddress = new Uri($"http://{app.FrontendSingleEndPointAccessor().EndPoint}") };
Integration\StartupTests.cs (6)
340BaseAddress = new Uri($"https://{app.FrontendSingleEndPointAccessor().EndPoint}") 396BaseAddress = new Uri($"https://{app.FrontendSingleEndPointAccessor().EndPoint}") 417BaseAddress = new Uri($"https://{app.McpEndPointAccessor().EndPoint}") 521BaseAddress = new Uri($"http://{app.FrontendSingleEndPointAccessor().EndPoint}") 984using var client = new HttpClient { BaseAddress = new Uri($"http://{app.FrontendSingleEndPointAccessor().EndPoint}") }; 1061using var client = new HttpClient { BaseAddress = new Uri($"http://{endpointString}") };
Integration\TelemetryApiTests.cs (3)
102using var httpClient = new HttpClient(handler) { BaseAddress = new Uri($"http://{app.FrontendSingleEndPointAccessor().EndPoint}") }; 174using var httpClient = new HttpClient(handler) { BaseAddress = new Uri($"http://{app.FrontendSingleEndPointAccessor().EndPoint}") }; 343using var httpClient = new HttpClient(handler) { BaseAddress = new Uri($"http://{app.FrontendSingleEndPointAccessor().EndPoint}") };
Aspire.Hosting.Seq.Tests (1)
SeqFunctionalTests.cs (1)
44BaseAddress = new Uri(url)
Aspire.Hosting.Testing (1)
DistributedApplicationHostingTestingExtensions.cs (1)
32client.BaseAddress = new(baseUri);
Aspire.Hosting.Testing.Tests (1)
DistributedApplicationHttpClientExtensionsForTests.cs (1)
25client.BaseAddress = baseUri;
Aspire.Hosting.Tests (1)
tests\Aspire.Hosting.Testing.Tests\DistributedApplicationHttpClientExtensionsForTests.cs (1)
25client.BaseAddress = baseUri;
Aspire.Playground.Tests (2)
Infrastructure\DistributedApplicationExtensions.cs (2)
185BaseAddress = app.GetEndpoint(resourceName, endpointName) 203httpClient.BaseAddress = app.GetEndpoint(resourceName, endpointName);
Aspire.Seq (1)
SeqHealthCheck.cs (1)
14readonly HttpClient _client = new(new SocketsHttpHandler { ActivityHeadersPropagator = null }) { BaseAddress = new Uri(seqUri) };
DevTunnels.ApiService (1)
Program.cs (1)
8builder.Services.AddHttpClient("frontend", client => client.BaseAddress = new("https://frontend"));
Keycloak.Web (1)
Program.cs (1)
26client.BaseAddress = new("https+http://apiservice");
Microsoft.AspNetCore.Testing (3)
ServiceFakesHostExtensions.cs (3)
49return new HttpClient(httpHandler) { BaseAddress = uri }; 52return new HttpClient { BaseAddress = uri }; 55return new HttpClient(handler) { BaseAddress = uri };
Microsoft.AspNetCore.Testing.Tests (1)
FakesExtensionsTests.cs (1)
62BaseAddress = host.GetListenUris().First()
Microsoft.DotNet.HotReload.WebAssembly.Browser (1)
WebAssemblyHotReload.cs (1)
91BaseAddress = new Uri(baseUri, UriKind.Absolute)
Microsoft.Extensions.ServiceDiscovery.Tests (1)
ServiceEndpointResolverTests.cs (1)
60serviceCollection.AddHttpClient("foo", c => c.BaseAddress = new("http://foo")).AddServiceDiscovery();
MyFrontend (1)
Program.cs (1)
11builder.Services.AddHttpClient<CatalogServiceClient>(c => c.BaseAddress = new("https+http://catalogservice"));
Publishers.Frontend (1)
Program.cs (1)
9builder.Services.AddHttpClient<ApiClient>(c => c.BaseAddress = new("http://api"));
WaitFor.Frontend (1)
Program.cs (1)
9builder.Services.AddHttpClient<ApiClient>(c => c.BaseAddress = new("http://api"));
WebFrontEnd (3)
Program.cs (3)
10builder.Services.AddHttpClient("gateway", client => client.BaseAddress = new Uri("https+http://gateway")); 12builder.Services.AddHttpClient("nuget", client => client.BaseAddress = new Uri("https://nuget")); 17client.BaseAddress = new Uri(builder.Configuration["EXTERNAL_SERVICE_URL"]
Yarp.Frontend (1)
Program.cs (1)
11client.BaseAddress = new Uri("https+http://gateway");
6 references to BaseAddress
Aspire.Dashboard.Tests (1)
Telemetry\DashboardTelemetrySenderTests.cs (1)
125Assert.Equal(expectedUrl, client.BaseAddress?.ToString());
Aspire.Playground.Tests (3)
AppHostTests.cs (3)
99_testOutput.WriteLine($"Calling endpoint '{client.BaseAddress}{path.TrimStart('/')} for resource '{resource}' in app '{appHost.AppHostAssembly}'"); 106throw new XunitException($"Endpoint '{client.BaseAddress}{path.TrimStart('/')}' for resource '{resource}' in app '{appHost.AppHostAssembly}' timed out", tre); 109Assert.True(HttpStatusCode.OK == response.StatusCode, $"Endpoint '{client.BaseAddress}{path.TrimStart('/')}' for resource '{resource}' in app '{appHost.AppHostAssembly}' returned status code {response.StatusCode}");
Microsoft.AspNetCore.Testing.Tests (2)
FakesExtensionsTests.cs (2)
101Assert.Equal(_urlAddresses[0], client.BaseAddress?.AbsoluteUri); 152Assert.Equal(_urlAddresses[1], client.BaseAddress?.AbsoluteUri);