67 writes to BaseAddress
aspire (1)
Utils\EnvironmentChecker\DcpConnectionChecker.cs (1)
54BaseAddress = kubeconfig.Server,
Aspire.Dashboard (1)
Model\DebugSessionHelpers.cs (1)
45client.BaseAddress = debugSessionUri;
Aspire.Dashboard.Tests (29)
Integration\BlazorWebSocketOriginTests.cs (1)
23using var client = new HttpClient { BaseAddress = frontendUri };
Integration\FrontendBrowserTokenAuthTests.cs (8)
39using var client = new HttpClient { BaseAddress = new Uri($"http://{app.FrontendSingleEndPointAccessor().EndPoint}") }; 61using var client = new HttpClient { BaseAddress = new Uri($"http://{app.FrontendSingleEndPointAccessor().EndPoint}") }; 109client.BaseAddress = httpsBaseAddress; 234BaseAddress = new Uri(httpEndpoint.GetResolvedAddress()) 267BaseAddress = new Uri($"http://{app.FrontendSingleEndPointAccessor().EndPoint}") 294using var client = new HttpClient { BaseAddress = new Uri($"http://{app.OtlpServiceHttpEndPointAccessor().EndPoint}") }; 318using var client = new HttpClient { BaseAddress = new Uri($"http://{app.FrontendSingleEndPointAccessor().EndPoint}") }; 343using 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 (2)
30using var client = new HttpClient(httpClientHandler) { BaseAddress = new Uri(basePath) }; 52using var client = new HttpClient { BaseAddress = new Uri($"http://{fixture.App.FrontendSingleEndPointAccessor().EndPoint}") };
Integration\IntegrationTestHelpers.cs (1)
135return new HttpClient(handler) { BaseAddress = new Uri(address) };
Integration\OtlpHttpServiceTests.cs (6)
237using var client = new HttpClient { BaseAddress = new Uri($"http://{endpoint.EndPoint}") }; 268using var client = new HttpClient { BaseAddress = new Uri($"http://{endpoint.EndPoint}") }; 315using var client = new HttpClient { BaseAddress = new Uri($"http://{endpoint.EndPoint}") }; 340using var client = new HttpClient { BaseAddress = new Uri($"http://{endpoint.EndPoint}") }; 369using var client = new HttpClient { BaseAddress = new Uri($"http://{endpoint.EndPoint}") }; 398using 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 (4)
416BaseAddress = new Uri($"https://{app.FrontendSingleEndPointAccessor().EndPoint}") 517BaseAddress = new Uri($"http://{app.FrontendSingleEndPointAccessor().EndPoint}") 944using var client = new HttpClient { BaseAddress = new Uri($"http://{app.FrontendSingleEndPointAccessor().EndPoint}") }; 1021using var client = new HttpClient { BaseAddress = new Uri($"http://{endpointString}") };
Integration\TelemetryApiTests.cs (3)
65using var httpClient = new HttpClient(handler) { BaseAddress = new Uri($"http://{app.FrontendSingleEndPointAccessor().EndPoint}") }; 137using var httpClient = new HttpClient(handler) { BaseAddress = new Uri($"http://{app.FrontendSingleEndPointAccessor().EndPoint}") }; 306using var httpClient = new HttpClient(handler) { BaseAddress = new Uri($"http://{app.FrontendSingleEndPointAccessor().EndPoint}") };
Aspire.Hosting.Seq.Tests (1)
SeqFunctionalTests.cs (1)
46BaseAddress = new Uri(url)
Aspire.Hosting.Testing (1)
DistributedApplicationHostingTestingExtensions.cs (1)
156client.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)
14private readonly HttpClient _client = new(new SocketsHttpHandler { ActivityHeadersPropagator = null }) { BaseAddress = new Uri(seqUri) };
BlazorHosted (1)
Program.cs (1)
44client.BaseAddress = new Uri("https+http://weatherapi");
BlazorHosted.Client (2)
Program.cs (2)
19client.BaseAddress = new Uri("https+http://weatherapi"); 25client.BaseAddress = new Uri("https+http://timeapi");
BlazorStandalone (3)
Program.cs (3)
21builder.Services.AddScoped(sp => new HttpClient { BaseAddress = new Uri(builder.HostEnvironment.BaseAddress) }); 27client.BaseAddress = new Uri("https+http://weatherapi"); 33client.BaseAddress = new Uri("https+http://timeapi");
DevTunnels.ApiService (1)
Program.cs (1)
8builder.Services.AddHttpClient("frontend", client => client.BaseAddress = new("https://frontend"));
DotnetProject.WorkerService (1)
Program.cs (1)
9builder.Services.AddHttpClient("apiservice", client => client.BaseAddress = new("http://apiservice"));
Keycloak.Web (1)
Program.cs (1)
26client.BaseAddress = new("https+http://apiservice");
Microsoft.AspNetCore.Mvc.Testing (4)
WebApplicationFactory.cs (4)
701client.BaseAddress = ClientOptions.BaseAddress; 794client.BaseAddress = _webHostAddress; 798client.BaseAddress = new Uri("http://localhost"); 813client.BaseAddress = baseAddress;
Microsoft.AspNetCore.Server.IntegrationTesting (1)
Common\DeploymentResult.cs (1)
67BaseAddress = new Uri(ApplicationBaseUri),
Microsoft.AspNetCore.TestHost (1)
TestServer.cs (1)
185BaseAddress = BaseAddress,
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"));
StandardService (1)
Program.cs (1)
5client.BaseAddress = new Uri("https+http://azure-functions-service");
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");
11 references to BaseAddress
Aspire.Dashboard.Tests (1)
Telemetry\DashboardTelemetrySenderTests.cs (1)
129Assert.Equal(expectedUrl, client.BaseAddress?.ToString());
Aspire.Hosting.Testing.Tests (2)
TestingPublicApiTests.cs (2)
219Assert.Equal("https", client.BaseAddress?.Scheme); 220Assert.Equal(5001, client.BaseAddress?.Port);
Aspire.Playground.Tests (3)
AppHostTests.cs (3)
131_testOutput.WriteLine($"Calling endpoint '{client.BaseAddress}{path.TrimStart('/')} for resource '{resource}' in app '{appHost.AppHostAssembly}'"); 138throw new XunitException($"Endpoint '{client.BaseAddress}{path.TrimStart('/')}' for resource '{resource}' in app '{appHost.AppHostAssembly}' timed out", tre); 141Assert.True(HttpStatusCode.OK == response.StatusCode, $"Endpoint '{client.BaseAddress}{path.TrimStart('/')}' for resource '{resource}' in app '{appHost.AppHostAssembly}' returned status code {response.StatusCode}");
Microsoft.AspNetCore.Mvc.Testing (1)
WebApplicationFactory.cs (1)
695if (_useKestrel && object.ReferenceEquals(client.BaseAddress, WebApplicationFactoryClientOptions.DefaultBaseAddres))
Microsoft.AspNetCore.Server.IntegrationTesting (2)
Common\DeploymentResult.cs (2)
38/// An <see cref="HttpClient"/> with <see cref="LoggingHandler"/> configured and the <see cref="HttpClient.BaseAddress"/> set to the <see cref="ApplicationBaseUri"/> 59/// Create an <see cref="HttpClient"/> with <see cref="LoggingHandler"/> configured and the <see cref="HttpClient.BaseAddress"/> set to the <see cref="ApplicationBaseUri"/>,
Microsoft.AspNetCore.Testing.Tests (2)
FakesExtensionsTests.cs (2)
101Assert.Equal(_urlAddresses[0], client.BaseAddress?.AbsoluteUri); 154Assert.Equal(_urlAddresses[1], client.BaseAddress?.AbsoluteUri);