8 writes to TargetHost
Aspire.Hosting (5)
Dashboard\DashboardLifecycleHook.cs (3)
186
TargetHost
= address.Host
195
TargetHost
= address.Host
204
TargetHost
= address.Host
ProjectResourceBuilderExtensions.cs (2)
399
e.
TargetHost
= ParseKestrelHost(endpoint.BindingAddress.Host);
455
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)
15 references to TargetHost
Aspire.Hosting (12)
Dashboard\DashboardLifecycleHook.cs (2)
355
ReferenceExpression.Create($"{e.Property(EndpointProperty.Scheme)}://{e.EndpointAnnotation.
TargetHost
}:{e.Property(EndpointProperty.TargetPort)}");
380
aspnetCoreUrls.Append($"{e.Property(EndpointProperty.Scheme)}://{e.EndpointAnnotation.
TargetHost
}:{e.Property(EndpointProperty.TargetPort)}");
Dcp\DcpExecutor.cs (6)
846
var (targetHost, bindingMode) = NormalizeTargetHost(sp.EndpointAnnotation.
TargetHost
);
887
if (string.Equals("localhost", endpoint.
TargetHost
, StringComparison.OrdinalIgnoreCase))
893
svc.Spec.Address = endpoint.
TargetHost
;
1624
(spAnn.Address, _) = NormalizeTargetHost(ea.
TargetHost
);
2019
if (sp.EndpointAnnotation.
TargetHost
!= "localhost")
2021
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)
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)
611
Assert.Equal("*", e.
TargetHost
);
617
Assert.Equal("*", e.
TargetHost
);
WithUrlsTests.cs (1)
463
endpoint.AllocatedEndpoint = new(endpoint, endpoint.
TargetHost
, endpoint.Port ?? endpoint.TargetPort ?? startingPort++);