38 references to Host
Aspire.Hosting (6)
ApplicationModel\EndpointReference.cs (2)
68EndpointProperty.Host or EndpointProperty.IPV4Host => Binding("host"), 207EndpointProperty.Host => new(allocatedEndpoint.Address),
ApplicationModel\ExpressionResolver.cs (4)
21(EndpointProperty.Host or EndpointProperty.IPV4Host, true) => target.Name, 24(EndpointProperty.Host or EndpointProperty.IPV4Host, false) => containerHostName, 27await EvalEndpointAsync(endpointReference, EndpointProperty.Host).ConfigureAwait(false), 30await EvalEndpointAsync(endpointReference, EndpointProperty.Host).ConfigureAwait(false),
Aspire.Hosting.Azure.AppContainers (1)
BaseContainerAppContext.cs (1)
206EndpointProperty.Host or EndpointProperty.IPV4Host => GetHostValue(),
Aspire.Hosting.Azure.AppService (1)
AzureAppServiceWebsiteContext.cs (1)
416EndpointProperty.Host => BicepFunction.Interpolate($"{mapping.Host}.azurewebsites.net"),
Aspire.Hosting.Azure.Tests (2)
AzureContainerAppsTests.cs (2)
314context.EnvironmentVariables["HOST"] = httpEp.Property(EndpointProperty.Host); 391context.EnvironmentVariables["HOST"] = httpEp.Property(EndpointProperty.Host);
Aspire.Hosting.Docker (1)
DockerComposeServiceResourceExtensions.cs (1)
93EndpointProperty.Host or EndpointProperty.IPV4Host => GetHostValue(),
Aspire.Hosting.Garnet (1)
GarnetResource.cs (1)
34public EndpointReferenceExpression Host => PrimaryEndpoint.Property(EndpointProperty.Host);
Aspire.Hosting.Kafka (2)
KafkaBuilderExtensions.cs (1)
219: ReferenceExpression.Create($"PLAINTEXT://{primaryEndpoint.Property(EndpointProperty.Host)}:29092,PLAINTEXT_HOST://{primaryEndpoint.Property(EndpointProperty.HostAndPort)},PLAINTEXT_INTERNAL://{internalEndpoint.Property(EndpointProperty.HostAndPort)}");
KafkaServerResource.cs (1)
31public EndpointReferenceExpression Host => PrimaryEndpoint.Property(EndpointProperty.Host);
Aspire.Hosting.Kubernetes (1)
KubernetesResource.cs (1)
447EndpointProperty.Host or EndpointProperty.IPV4Host => GetHostValue(),
Aspire.Hosting.Milvus (1)
MilvusServerResource.cs (1)
41public EndpointReferenceExpression Host => PrimaryEndpoint.Property(EndpointProperty.Host);
Aspire.Hosting.MongoDB (1)
MongoDBServerResource.cs (1)
39public EndpointReferenceExpression Host => PrimaryEndpoint.Property(EndpointProperty.Host);
Aspire.Hosting.MySql (2)
MySqlServerResource.cs (2)
38public EndpointReferenceExpression Host => PrimaryEndpoint.Property(EndpointProperty.Host); 55$"Server={PrimaryEndpoint.Property(EndpointProperty.Host)};Port={PrimaryEndpoint.Property(EndpointProperty.Port)};User ID={DefaultUserName};Password={PasswordParameter}");
Aspire.Hosting.Nats (1)
NatsServerResource.cs (1)
38public EndpointReferenceExpression Host => PrimaryEndpoint.Property(EndpointProperty.Host);
Aspire.Hosting.Oracle (1)
OracleDatabaseServerResource.cs (1)
35public EndpointReferenceExpression Host => PrimaryEndpoint.Property(EndpointProperty.Host);
Aspire.Hosting.PostgreSQL (2)
PostgresServerResource.cs (2)
57$"Host={PrimaryEndpoint.Property(EndpointProperty.Host)};Port={PrimaryEndpoint.Property(EndpointProperty.Port)};Username={UserNameReference};Password={PasswordParameter}"); 108public EndpointReferenceExpression Host => PrimaryEndpoint.Property(EndpointProperty.Host);
Aspire.Hosting.Qdrant (2)
QdrantServerResource.cs (2)
41public EndpointReferenceExpression GrpcHost => PrimaryEndpoint.Property(EndpointProperty.Host); 56public EndpointReferenceExpression HttpHost => HttpEndpoint.Property(EndpointProperty.Host);
Aspire.Hosting.RabbitMQ (1)
RabbitMQServerResource.cs (1)
44public EndpointReferenceExpression Host => PrimaryEndpoint.Property(EndpointProperty.Host);
Aspire.Hosting.Redis (1)
RedisResource.cs (1)
37public EndpointReferenceExpression Host => PrimaryEndpoint.Property(EndpointProperty.Host);
Aspire.Hosting.Seq (1)
SeqResource.cs (1)
24public EndpointReferenceExpression Host => PrimaryEndpoint.Property(EndpointProperty.Host);
Aspire.Hosting.SqlServer (1)
SqlServerServerResource.cs (1)
35public EndpointReferenceExpression Host => PrimaryEndpoint.Property(EndpointProperty.Host);
Aspire.Hosting.Tests (7)
EndpointReferenceTests.cs (2)
70var hostExpr = endpointRef.Property(EndpointProperty.Host); 188var expr2 = endpointRef.Property(EndpointProperty.Host);
ExpressionResolverTests.cs (4)
229{ "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)}/;") }, 232{ "OnlyHost", ReferenceExpression.Create($"Host={Endpoint1.Property(EndpointProperty.Host)};") }, 235{ "PortBeforeHost", ReferenceExpression.Create($"Port={Endpoint1.Property(EndpointProperty.Port)};Host={Endpoint1.Property(EndpointProperty.Host)};") }, 241{ "UrlEncodedHost", ReferenceExpression.Create($"Host={Endpoint3.Property(EndpointProperty.Host):uri};") },
WithEnvironmentTests.cs (1)
284.WithEnvironment("URL", $"{endpoint.Property(EndpointProperty.Host)}:{endpoint.Property(EndpointProperty.Port)}");
Aspire.Hosting.Valkey (1)
ValkeyResource.cs (1)
39public EndpointReferenceExpression Host => PrimaryEndpoint.Property(EndpointProperty.Host);
Stress.AppHost (1)
Program.cs (1)
44.WithEnvironment("HOST", $"{serviceBuilder.GetEndpoint("http").Property(EndpointProperty.Host)}")