43 references to Host
Aspire.Hosting (2)
ApplicationModel\EndpointReference.cs (2)
105EndpointProperty.Host or EndpointProperty.IPV4Host => Binding("host"), 351EndpointProperty.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)
784EndpointProperty.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)
102ReferenceExpression.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)
104ReferenceExpression.Create($"{InnerResource!.PrimaryEndpoint.Property(EndpointProperty.Host)}") :
Aspire.Hosting.Azure.Tests (2)
AzureContainerAppsTests.cs (2)
317context.EnvironmentVariables["HOST"] = httpEp.Property(EndpointProperty.Host); 394context.EnvironmentVariables["HOST"] = httpEp.Property(EndpointProperty.Host);
Aspire.Hosting.Docker (1)
DockerComposeServiceResourceExtensions.cs (1)
106EndpointProperty.Host or EndpointProperty.IPV4Host => GetHostValue(),
Aspire.Hosting.Garnet (1)
GarnetResource.cs (1)
35public EndpointReferenceExpression Host => PrimaryEndpoint.Property(EndpointProperty.Host);
Aspire.Hosting.Kafka (2)
KafkaBuilderExtensions.cs (1)
223: ReferenceExpression.Create($"PLAINTEXT://{primaryEndpoint.Property(EndpointProperty.Host)}:29092,PLAINTEXT_HOST://{primaryEndpoint.Property(EndpointProperty.HostAndPort)},PLAINTEXT_INTERNAL://{internalEndpoint.Property(EndpointProperty.HostAndPort)}");
KafkaServerResource.cs (1)
32public EndpointReferenceExpression Host => PrimaryEndpoint.Property(EndpointProperty.Host);
Aspire.Hosting.Kubernetes (1)
KubernetesResource.cs (1)
552EndpointProperty.Host or EndpointProperty.IPV4Host => GetHostValue(),
Aspire.Hosting.Milvus (1)
MilvusServerResource.cs (1)
42public EndpointReferenceExpression Host => PrimaryEndpoint.Property(EndpointProperty.Host);
Aspire.Hosting.MongoDB (1)
MongoDBServerResource.cs (1)
40public EndpointReferenceExpression Host => PrimaryEndpoint.Property(EndpointProperty.Host);
Aspire.Hosting.MySql (2)
MySqlServerResource.cs (2)
39public EndpointReferenceExpression Host => PrimaryEndpoint.Property(EndpointProperty.Host); 56$"Server={PrimaryEndpoint.Property(EndpointProperty.Host)};Port={PrimaryEndpoint.Property(EndpointProperty.Port)};User ID={DefaultUserName};Password={PasswordParameter}");
Aspire.Hosting.Nats (1)
NatsServerResource.cs (1)
39public EndpointReferenceExpression Host => PrimaryEndpoint.Property(EndpointProperty.Host);
Aspire.Hosting.Oracle (1)
OracleDatabaseServerResource.cs (1)
36public 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)
42public EndpointReferenceExpression GrpcHost => PrimaryEndpoint.Property(EndpointProperty.Host); 57public EndpointReferenceExpression HttpHost => HttpEndpoint.Property(EndpointProperty.Host);
Aspire.Hosting.RabbitMQ (1)
RabbitMQServerResource.cs (1)
45public EndpointReferenceExpression Host => PrimaryEndpoint.Property(EndpointProperty.Host);
Aspire.Hosting.Redis (2)
RedisBuilderExtensions.cs (1)
325context.EnvironmentVariables[$"RI_REDIS_HOST{counter}"] = redisInstance.PrimaryEndpoint.Property(EndpointProperty.Host);
RedisResource.cs (1)
54public EndpointReferenceExpression Host => PrimaryEndpoint.Property(EndpointProperty.Host);
Aspire.Hosting.Seq (1)
SeqResource.cs (1)
25public EndpointReferenceExpression Host => PrimaryEndpoint.Property(EndpointProperty.Host);
Aspire.Hosting.SqlServer (1)
SqlServerServerResource.cs (1)
36public EndpointReferenceExpression Host => PrimaryEndpoint.Property(EndpointProperty.Host);
Aspire.Hosting.Tests (11)
EndpointReferenceTests.cs (6)
72var hostExpr = endpointRef.Property(EndpointProperty.Host); 190var expr2 = endpointRef.Property(EndpointProperty.Host); 310[InlineData(EndpointProperty.Host, ResourceKind.Host, ResourceKind.Host, "localhost")] 311[InlineData(EndpointProperty.Host, ResourceKind.Host, ResourceKind.Container, "localhost")] 312[InlineData(EndpointProperty.Host, ResourceKind.Container, ResourceKind.Host, "host.docker.internal")] 313[InlineData(EndpointProperty.Host, ResourceKind.Container, ResourceKind.Container, "destination.dev.internal")]
ExpressionResolverTests.cs (4)
314{ "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)}/;") }, 317{ "OnlyHost", ReferenceExpression.Create($"Host={Endpoint1.Property(EndpointProperty.Host)};") }, 320{ "PortBeforeHost", ReferenceExpression.Create($"Port={Endpoint1.Property(EndpointProperty.Port)};Host={Endpoint1.Property(EndpointProperty.Host)};") }, 326{ "UrlEncodedHost", ReferenceExpression.Create($"Host={Endpoint3.Property(EndpointProperty.Host):uri};") },
WithEnvironmentTests.cs (1)
288.WithEnvironment("URL", $"{endpoint.Property(EndpointProperty.Host)}:{endpoint.Property(EndpointProperty.Port)}");
Aspire.Hosting.Valkey (1)
ValkeyResource.cs (1)
40public EndpointReferenceExpression Host => PrimaryEndpoint.Property(EndpointProperty.Host);
Stress.AppHost (1)
Program.cs (1)
44.WithEnvironment("HOST", $"{serviceBuilder.GetEndpoint("http").Property(EndpointProperty.Host)}")