8 writes to TargetHost
Aspire.Hosting (5)
Dashboard\DashboardLifecycleHook.cs (3)
435
TargetHost
= address.Host
444
TargetHost
= address.Host
453
TargetHost
= address.Host
ProjectResourceBuilderExtensions.cs (2)
401
e.
TargetHost
= ParseKestrelHost(endpoint.BindingAddress.Host);
457
e.
TargetHost
= ParseKestrelHost(bindingAddress.Host);
Aspire.Hosting.Tests (3)
Dcp\DcpExecutorTests.cs (1)
1252
endpoint.
TargetHost
= bindingAddress;
WithEndpointTests.cs (2)
627
.WithEndpoint("https", e => e.
TargetHost
= "example.localhost", createIfNotExists: false)
661
.WithEndpoint("https", e => e.
TargetHost
= host, createIfNotExists: false)
18 references to TargetHost
Aspire.Hosting (12)
Dashboard\DashboardLifecycleHook.cs (2)
604
ReferenceExpression.Create($"{e.Property(EndpointProperty.Scheme)}://{e.EndpointAnnotation.
TargetHost
}:{e.Property(EndpointProperty.TargetPort)}");
629
aspnetCoreUrls.Append($"{e.Property(EndpointProperty.Scheme)}://{e.EndpointAnnotation.
TargetHost
}:{e.Property(EndpointProperty.TargetPort)}");
Dcp\DcpExecutor.cs (6)
847
var (targetHost, bindingMode) = NormalizeTargetHost(sp.EndpointAnnotation.
TargetHost
);
888
if (string.Equals("localhost", endpoint.
TargetHost
, StringComparison.OrdinalIgnoreCase))
894
svc.Spec.Address = endpoint.
TargetHost
;
1655
(spAnn.Address, _) = NormalizeTargetHost(ea.
TargetHost
);
2060
if (sp.EndpointAnnotation.
TargetHost
!= "localhost")
2062
portSpec.HostIP = sp.EndpointAnnotation.
TargetHost
;
Orchestrator\ApplicationOrchestrator.cs (2)
234
EndpointBindingMode.SingleAddress when !allocatedEndpoint.Address.Equals(endpoint.
TargetHost
, StringComparison.OrdinalIgnoreCase) => new ResourceUrlAnnotation
236
Url = $"{allocatedEndpoint.UriScheme}://{endpoint.
TargetHost
}:{allocatedEndpoint.Port}",
ProjectResourceBuilderExtensions.cs (2)
405
builder.Resource.KestrelEndpointAnnotationHosts[e] = e.
TargetHost
;
765
aspnetCoreUrls.Append($"{e.Property(EndpointProperty.Scheme)}://{e.EndpointAnnotation.
TargetHost
}:{e.Property(EndpointProperty.TargetPort)}");
Aspire.Hosting.DevTunnels (3)
DevTunnelResourceBuilderExtensions.cs (3)
354
if (!string.Equals(targetEndpointAnnotation.
TargetHost
, "localhost", StringComparison.OrdinalIgnoreCase)
355
&& !targetEndpointAnnotation.
TargetHost
.EndsWith(".localhost", StringComparison.OrdinalIgnoreCase))
358
throw new ArgumentException($"Cannot tunnel endpoint '{targetEndpointAnnotation.Name}' with host '{targetEndpointAnnotation.
TargetHost
}' on resource '{targetResource.Name}' because it is not a localhost endpoint.", nameof(targetEndpoint));
Aspire.Hosting.Tests (3)
ProjectResourceTests.cs (2)
623
Assert.Equal("*", e.
TargetHost
);
629
Assert.Equal("*", e.
TargetHost
);
WithUrlsTests.cs (1)
463
endpoint.AllocatedEndpoint = new(endpoint, endpoint.
TargetHost
, endpoint.Port ?? endpoint.TargetPort ?? startingPort++);