43 references to Host
Aspire.Hosting (2)
ApplicationModel\EndpointReference.cs (2)
98EndpointProperty.Host or EndpointProperty.IPV4Host => Binding("host"), 329EndpointProperty.Host => new(allocatedEndpoint.Address),
Aspire.Hosting.Azure.AppContainers (1)
BaseContainerAppContext.cs (1)
206EndpointProperty.Host or EndpointProperty.IPV4Host => GetHostValue(),
Aspire.Hosting.Azure.AppService (1)
AzureAppServiceWebsiteContext.cs (1)
747EndpointProperty.Host => BicepFunction.Interpolate($"{mapping.Host}.azurewebsites.net"),
Aspire.Hosting.Azure.EventHubs (1)
AzureEventHubsResource.cs (1)
65ReferenceExpression.Create($"{EmulatorEndpoint.Property(EndpointProperty.Host)}") :
Aspire.Hosting.Azure.Redis (1)
AzureManagedRedisResource.cs (1)
95ReferenceExpression.Create($"{InnerResource.PrimaryEndpoint.Property(EndpointProperty.Host)}") :
Aspire.Hosting.Azure.ServiceBus (1)
AzureServiceBusResource.cs (1)
55ReferenceExpression.Create($"{EmulatorEndpoint.Property(EndpointProperty.Host)}") :
Aspire.Hosting.Azure.Sql (1)
AzureSqlServerResource.cs (1)
72ReferenceExpression.Create($"{InnerResource!.PrimaryEndpoint.Property(EndpointProperty.Host)}") :
Aspire.Hosting.Azure.Tests (2)
AzureContainerAppsTests.cs (2)
316context.EnvironmentVariables["HOST"] = httpEp.Property(EndpointProperty.Host); 393context.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)
465EndpointProperty.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)
58$"Host={PrimaryEndpoint.Property(EndpointProperty.Host)};Port={PrimaryEndpoint.Property(EndpointProperty.Port)};Username={UserNameReference};Password={PasswordParameter}"); 109public 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 (2)
RedisBuilderExtensions.cs (1)
345context.EnvironmentVariables[$"RI_REDIS_HOST{counter}"] = redisInstance.PrimaryEndpoint.Property(EndpointProperty.Host);
RedisResource.cs (1)
43public 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 (11)
EndpointReferenceTests.cs (6)
70var hostExpr = endpointRef.Property(EndpointProperty.Host); 188var expr2 = endpointRef.Property(EndpointProperty.Host); 293[InlineData(EndpointProperty.Host, ResourceKind.Host, ResourceKind.Host, "localhost")] 294[InlineData(EndpointProperty.Host, ResourceKind.Host, ResourceKind.Container, "localhost")] 295[InlineData(EndpointProperty.Host, ResourceKind.Container, ResourceKind.Host, "host.docker.internal")] 296[InlineData(EndpointProperty.Host, ResourceKind.Container, ResourceKind.Container, "destination.dev.internal")]
ExpressionResolverTests.cs (4)
322{ "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)}/;") }, 325{ "OnlyHost", ReferenceExpression.Create($"Host={Endpoint1.Property(EndpointProperty.Host)};") }, 328{ "PortBeforeHost", ReferenceExpression.Create($"Port={Endpoint1.Property(EndpointProperty.Port)};Host={Endpoint1.Property(EndpointProperty.Host)};") }, 334{ "UrlEncodedHost", ReferenceExpression.Create($"Host={Endpoint3.Property(EndpointProperty.Host):uri};") },
WithEnvironmentTests.cs (1)
290.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)}")