8 writes to TargetHost
Aspire.Hosting (5)
Dashboard\DashboardLifecycleHook.cs (3)
186TargetHost = address.Host 195TargetHost = address.Host 204TargetHost = address.Host
ProjectResourceBuilderExtensions.cs (2)
399e.TargetHost = ParseKestrelHost(endpoint.BindingAddress.Host); 455e.TargetHost = ParseKestrelHost(bindingAddress.Host);
Aspire.Hosting.Tests (3)
Dcp\DcpExecutorTests.cs (1)
1252endpoint.TargetHost = bindingAddress;
WithEndpointTests.cs (2)
627.WithEndpoint("https", e => e.TargetHost = "example.localhost", createIfNotExists: false) 661.WithEndpoint("https", e => e.TargetHost = host, createIfNotExists: false)
15 references to TargetHost
Aspire.Hosting (12)
Dashboard\DashboardLifecycleHook.cs (2)
355ReferenceExpression.Create($"{e.Property(EndpointProperty.Scheme)}://{e.EndpointAnnotation.TargetHost}:{e.Property(EndpointProperty.TargetPort)}"); 380aspnetCoreUrls.Append($"{e.Property(EndpointProperty.Scheme)}://{e.EndpointAnnotation.TargetHost}:{e.Property(EndpointProperty.TargetPort)}");
Dcp\DcpExecutor.cs (6)
846var (targetHost, bindingMode) = NormalizeTargetHost(sp.EndpointAnnotation.TargetHost); 887if (string.Equals("localhost", endpoint.TargetHost, StringComparison.OrdinalIgnoreCase)) 893svc.Spec.Address = endpoint.TargetHost; 1624(spAnn.Address, _) = NormalizeTargetHost(ea.TargetHost); 2019if (sp.EndpointAnnotation.TargetHost != "localhost") 2021portSpec.HostIP = sp.EndpointAnnotation.TargetHost;
Orchestrator\ApplicationOrchestrator.cs (2)
234EndpointBindingMode.SingleAddress when !allocatedEndpoint.Address.Equals(endpoint.TargetHost, StringComparison.OrdinalIgnoreCase) => new ResourceUrlAnnotation 236Url = $"{allocatedEndpoint.UriScheme}://{endpoint.TargetHost}:{allocatedEndpoint.Port}",
ProjectResourceBuilderExtensions.cs (2)
403builder.Resource.KestrelEndpointAnnotationHosts[e] = e.TargetHost; 763aspnetCoreUrls.Append($"{e.Property(EndpointProperty.Scheme)}://{e.EndpointAnnotation.TargetHost}:{e.Property(EndpointProperty.TargetPort)}");
Aspire.Hosting.Tests (3)
ProjectResourceTests.cs (2)
611Assert.Equal("*", e.TargetHost); 617Assert.Equal("*", e.TargetHost);
WithUrlsTests.cs (1)
463endpoint.AllocatedEndpoint = new(endpoint, endpoint.TargetHost, endpoint.Port ?? endpoint.TargetPort ?? startingPort++);