21 references to Host
Aspire.Hosting (7)
ApplicationModel\EndpointReference.cs (2)
54EndpointProperty.Host or EndpointProperty.IPV4Host => Binding("host"), 176EndpointProperty.Host => new(Endpoint.Host),
ApplicationModel\ExpressionResolver.cs (5)
39if (property is EndpointProperty.Host or EndpointProperty.IPV4Host) 66(EndpointProperty.Host or EndpointProperty.IPV4Host, true, true) => target.Name, 69(EndpointProperty.Host or EndpointProperty.IPV4Host, false, _) => containerHostName, 72await EvalEndpointAsync(endpointReference, EndpointProperty.Host).ConfigureAwait(false), 75await EvalEndpointAsync(endpointReference, EndpointProperty.Host).ConfigureAwait(false),
Aspire.Hosting.Azure.AppContainers (1)
ContainerAppContext.cs (1)
474EndpointProperty.Host or EndpointProperty.IPV4Host => GetHostValue(),
Aspire.Hosting.Azure.AppService (1)
AzureAppServiceWebsiteContext.cs (1)
325EndpointProperty.Host => BicepFunction.Interpolate($"{mapping.Host}.azurewebsites.net"),
Aspire.Hosting.Azure.Tests (2)
AzureContainerAppsTests.cs (2)
309context.EnvironmentVariables["HOST"] = httpEp.Property(EndpointProperty.Host); 386context.EnvironmentVariables["HOST"] = httpEp.Property(EndpointProperty.Host);
Aspire.Hosting.Docker (1)
DockerComposeServiceResourceExtensions.cs (1)
93EndpointProperty.Host or EndpointProperty.IPV4Host => GetHostValue(),
Aspire.Hosting.Kafka (1)
KafkaBuilderExtensions.cs (1)
221: ReferenceExpression.Create($"PLAINTEXT://{primaryEndpoint.Property(EndpointProperty.Host)}:29092,PLAINTEXT_HOST://{primaryEndpoint.Property(EndpointProperty.HostAndPort)},PLAINTEXT_INTERNAL://{internalEndpoint.Property(EndpointProperty.HostAndPort)}");
Aspire.Hosting.Kubernetes (1)
KubernetesServiceResourceExtensions.cs (1)
103EndpointProperty.Host or EndpointProperty.IPV4Host => GetHostValue(),
Aspire.Hosting.MySql (1)
MySqlServerResource.cs (1)
44$"Server={PrimaryEndpoint.Property(EndpointProperty.Host)};Port={PrimaryEndpoint.Property(EndpointProperty.Port)};User ID=root;Password={PasswordParameter}");
Aspire.Hosting.PostgreSQL (1)
PostgresServerResource.cs (1)
51$"Host={PrimaryEndpoint.Property(EndpointProperty.Host)};Port={PrimaryEndpoint.Property(EndpointProperty.Port)};Username={UserNameReference};Password={PasswordParameter}");
Aspire.Hosting.Tests (4)
ExpressionResolverTests.cs (3)
223{ "TwoFullEndpoints", ReferenceExpression.Create($"Test1={Endpoint1.Property(EndpointProperty.Scheme)}://{Endpoint1.Property(EndpointProperty.IPV4Host)}:{Endpoint1.Property(EndpointProperty.Port)}/;Test2={Endpoint2.Property(EndpointProperty.Scheme)}://{Endpoint2.Property(EndpointProperty.Host)}:{Endpoint2.Property(EndpointProperty.Port)}/;") }, 226{ "OnlyHost", ReferenceExpression.Create($"Host={Endpoint1.Property(EndpointProperty.Host)};") }, 229{ "PortBeforeHost", ReferenceExpression.Create($"Port={Endpoint1.Property(EndpointProperty.Port)};Host={Endpoint1.Property(EndpointProperty.Host)};") },
WithEnvironmentTests.cs (1)
285.WithEnvironment("URL", $"{endpoint.Property(EndpointProperty.Host)}:{endpoint.Property(EndpointProperty.Port)}");
Stress.AppHost (1)
Program.cs (1)
36.WithEnvironment("HOST", $"{serviceBuilder.GetEndpoint("http").Property(EndpointProperty.Host)}")