73 references to Host
Aspire.Hosting (3)
ApplicationModel\EndpointReference.cs (2)
142EndpointProperty.Host or EndpointProperty.IPV4Host => Binding("host"), 379EndpointProperty.Host => new(allocatedEndpoint.Address),
ApplicationModel\IComputeEnvironmentResource.cs (1)
56EndpointProperty.Host or EndpointProperty.IPV4Host => host.Value,
Aspire.Hosting.Azure.AppContainers (3)
AzureContainerAppEnvironmentResource.cs (1)
406EndpointProperty.Host or EndpointProperty.IPV4Host => host,
BaseContainerAppContext.cs (2)
206EndpointProperty.Host or EndpointProperty.IPV4Host => GetHostValue(), 309if (epExpr.Property is EndpointProperty.Url or EndpointProperty.Host or EndpointProperty.IPV4Host or EndpointProperty.HostAndPort)
Aspire.Hosting.Azure.AppService (2)
AzureAppServiceEnvironmentResource.cs (1)
533EndpointProperty.Host or EndpointProperty.IPV4Host => host,
AzureAppServiceWebsiteContext.cs (1)
902EndpointProperty.Host => BicepFunction.Interpolate($"{mapping.Host}.azurewebsites.net"),
Aspire.Hosting.Azure.EventHubs (1)
AzureEventHubsResource.cs (1)
66ReferenceExpression.Create($"{EmulatorEndpoint.Property(EndpointProperty.Host)}") :
Aspire.Hosting.Azure.Functions (1)
DurableTask\DurableTaskSchedulerResource.cs (1)
36return ReferenceExpression.Create($"Endpoint={grpcEndpoint.Property(EndpointProperty.Scheme)}://{grpcEndpoint.Property(EndpointProperty.Host)}:{grpcEndpoint.Property(EndpointProperty.Port)};Authentication=None");
Aspire.Hosting.Azure.Redis (1)
AzureManagedRedisResource.cs (1)
98ReferenceExpression.Create($"{InnerResource.PrimaryEndpoint.Property(EndpointProperty.Host)}") :
Aspire.Hosting.Azure.Sandboxes (3)
AzureSandboxContainerDeployment.cs (1)
1232case EndpointProperty.Host or EndpointProperty.IPV4Host:
AzureSandboxEndpointPropertyValueProvider.cs (1)
106EndpointProperty.Host or EndpointProperty.IPV4Host => uri.Host,
AzureSandboxGroupResource.cs (1)
295return GetEndpointPropertyExpression(endpointReference.Property(EndpointProperty.Host));
Aspire.Hosting.Azure.ServiceBus (1)
AzureServiceBusResource.cs (1)
56ReferenceExpression.Create($"{EmulatorEndpoint.Property(EndpointProperty.Host)}") :
Aspire.Hosting.Azure.Sql (1)
AzureSqlServerResource.cs (1)
95ReferenceExpression.Create($"{InnerResource!.PrimaryEndpoint.Property(EndpointProperty.Host)}") :
Aspire.Hosting.Azure.Tests (9)
AzureAppServiceTests.cs (1)
1178[InlineData(EndpointProperty.Host, "project1-website123.azurewebsites.net")]
AzureContainerAppExpressEndpointTests.cs (5)
41EndpointProperty.Url, EndpointProperty.Host, EndpointProperty.IPV4Host, 101[EndpointProperty.Host] = "api.salmonisland-e9e6a567.westus3.azurecontainerapps.io", 140[InlineData(EndpointProperty.Host)] 219web.WithEnvironment("HOST", api.GetEndpoint("http").Property(EndpointProperty.Host)); 256.WithEnvironment("API_HOST", endpoint.Property(EndpointProperty.Host))
AzureContainerAppsTests.cs (3)
399context.EnvironmentVariables["HOST"] = httpEp.Property(EndpointProperty.Host); 503context.EnvironmentVariables["HOST"] = httpEp.Property(EndpointProperty.Host); 2823[InlineData(EndpointProperty.Host, "project1.example.azurecontainerapps.io")]
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)
248: 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)
788EndpointProperty.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)
44public 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.Radius (2)
Publishing\RadiusInfrastructureBuilder.cs (1)
3376case EndpointProperty.Host or EndpointProperty.IPV4Host:
RadiusEnvironmentResource.cs (1)
205EndpointProperty.Host or EndpointProperty.IPV4Host => host.Value,
Aspire.Hosting.Radius.Tests (11)
Publishing\BackingResourceContractTests.cs (2)
126[InlineData(EndpointProperty.Host)] 158.GetEndpointPropertyExpression(cache.GetEndpoint("tcp").Property(EndpointProperty.Host)));
Publishing\BackingResourceProjectionTests.cs (2)
90.WithEnvironment("CUSTOM_HOST", cache.GetEndpoint("tcp").Property(EndpointProperty.Host)) 112.WithEnvironment("BACKEND_HOST", backend.GetEndpoint("http").Property(EndpointProperty.Host));
Publishing\BackingResourceValueResolutionTests.cs (6)
125.WithEnvironment("MISSING", backend.GetEndpoint("does-not-exist").Property(EndpointProperty.Host)) 126.WithEnvironment("PRESENT", backend.GetEndpoint("http").Property(EndpointProperty.Host)); 434.WithEnvironment("AMQP_HOST", rabbit.GetEndpoint("tcp").Property(EndpointProperty.Host)); 986.WithEnvironment("CACHE_HOST", cache.GetEndpoint("tcp").Property(EndpointProperty.Host)) 1217ReferenceExpression.Create($"primary-{cache.GetEndpoint("tcp").Property(EndpointProperty.Host)}"), 1476.WithEnvironment("STORE_HOST", store.GetEndpoint("tcp").Property(EndpointProperty.Host));
RadiusEnvironmentResourceTests.cs (1)
75[InlineData(EndpointProperty.Host, "api-api.default.svc.cluster.local")]
Aspire.Hosting.Redis (2)
RedisBuilderExtensions.cs (1)
396context.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 (13)
ComputeEnvironmentValidationTests.cs (1)
65[InlineData(EndpointProperty.Host, "api.example.com")]
Dcp\DcpExecutorTests.cs (1)
10208$"{containerEndpoint.Property(EndpointProperty.Scheme)}://{containerEndpoint.Property(EndpointProperty.Host)}:{containerEndpoint.Property(EndpointProperty.Port)}"))
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)
351{ "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)}/;") }, 354{ "OnlyHost", ReferenceExpression.Create($"Host={Endpoint1.Property(EndpointProperty.Host)};") }, 357{ "PortBeforeHost", ReferenceExpression.Create($"Port={Endpoint1.Property(EndpointProperty.Port)};Host={Endpoint1.Property(EndpointProperty.Host)};") }, 363{ "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)
AppHost.cs (1)
74.WithEnvironment("HOST", $"{serviceBuilder.GetEndpoint("http").Property(EndpointProperty.Host)}")