2 writes to TargetHost
Aspire.Hosting (2)
ProjectResourceBuilderExtensions.cs (2)
399
e.
TargetHost
= ParseKestrelHost(endpoint.BindingAddress.Host);
455
e.
TargetHost
= ParseKestrelHost(bindingAddress.Host);
11 references to TargetHost
Aspire.Hosting (8)
Dcp\DcpExecutor.cs (6)
757
var (targetHost, bindingMode) = NormalizeTargetHost(sp.EndpointAnnotation.
TargetHost
);
798
if (string.Equals("localhost", endpoint.
TargetHost
, StringComparison.OrdinalIgnoreCase))
804
svc.Spec.Address = endpoint.
TargetHost
;
1455
spAnn.Address = NormalizeServiceProducerTargetHost(ea.
TargetHost
, ea.IsProxied);
1874
if (sp.EndpointAnnotation.
TargetHost
!= "localhost")
1876
portSpec.HostIP = sp.EndpointAnnotation.
TargetHost
;
ProjectResourceBuilderExtensions.cs (2)
403
builder.Resource.KestrelEndpointAnnotationHosts[e] = e.
TargetHost
;
763
aspnetCoreUrls.Append($"{e.Property(EndpointProperty.Scheme)}://{e.EndpointAnnotation.
TargetHost
}:{e.Property(EndpointProperty.TargetPort)}");
Aspire.Hosting.Tests (3)
ProjectResourceTests.cs (2)
612
Assert.Equal("*", e.
TargetHost
);
618
Assert.Equal("*", e.
TargetHost
);
WithUrlsTests.cs (1)
426
endpoint.AllocatedEndpoint = new(endpoint, endpoint.
TargetHost
, endpoint.Port ?? endpoint.TargetPort ?? startingPort++);