75 references to Host
Aspire.Hosting (3)
ApplicationModel\EndpointReference.cs (2)
175EndpointProperty.Host or EndpointProperty.IPV4Host => Binding("host"), 444EndpointProperty.Host => new(allocatedEndpoint.Address),
ApplicationModel\IComputeEnvironmentResource.cs (1)
63EndpointProperty.Host or EndpointProperty.IPV4Host => host.Value,
Aspire.Hosting.Azure.AppContainers (3)
AzureContainerAppEnvironmentResource.cs (1)
453EndpointProperty.Host or EndpointProperty.IPV4Host => host,
BaseContainerAppContext.cs (2)
212EndpointProperty.Host or EndpointProperty.IPV4Host => GetHostValue(), 322if (epExpr.Property is EndpointProperty.Url or EndpointProperty.Host or EndpointProperty.IPV4Host or EndpointProperty.HostAndPort or
Aspire.Hosting.Azure.AppService (2)
AzureAppServiceEnvironmentResource.cs (1)
581EndpointProperty.Host or EndpointProperty.IPV4Host => host,
AzureAppServiceWebsiteContext.cs (1)
947EndpointProperty.Host => BicepFunction.Interpolate($"{mapping.Host}.azurewebsites.net"),
Aspire.Hosting.Azure.EventHubs (1)
AzureEventHubsResource.cs (1)
69ReferenceExpression.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)
101ReferenceExpression.Create($"{InnerResource.PrimaryEndpoint.Property(EndpointProperty.Host)}") :
Aspire.Hosting.Azure.Sandboxes (3)
AzureSandboxContainerDeployment.cs (1)
1229case EndpointProperty.Host or EndpointProperty.IPV4Host:
AzureSandboxEndpointPropertyValueProvider.cs (1)
105EndpointProperty.Host or EndpointProperty.IPV4Host => uri.Host,
AzureSandboxGroupResource.cs (1)
294return GetEndpointPropertyExpression(endpointReference.Property(EndpointProperty.Host));
Aspire.Hosting.Azure.ServiceBus (1)
AzureServiceBusResource.cs (1)
59ReferenceExpression.Create($"{EmulatorEndpoint.Property(EndpointProperty.Host)}") :
Aspire.Hosting.Azure.Sql (1)
AzureSqlServerResource.cs (1)
98ReferenceExpression.Create($"{InnerResource!.PrimaryEndpoint.Property(EndpointProperty.Host)}") :
Aspire.Hosting.Azure.Tests (10)
AzureAppServiceTests.cs (1)
1199[InlineData(EndpointProperty.Host, "project1-website123.azurewebsites.net")]
AzureContainerAppExpressEndpointTests.cs (5)
43EndpointProperty.Url, EndpointProperty.Host, EndpointProperty.IPV4Host, 105[EndpointProperty.Host] = "api.salmonisland-e9e6a567.westus3.azurecontainerapps.io", 144[InlineData(EndpointProperty.Host)] 249web.WithEnvironment("HOST", api.GetEndpoint("http").Property(EndpointProperty.Host)); 286.WithEnvironment("API_HOST", endpoint.Property(EndpointProperty.Host))
AzureContainerAppsTests.cs (3)
425context.EnvironmentVariables["HOST"] = httpEp.Property(EndpointProperty.Host); 531context.EnvironmentVariables["HOST"] = httpEp.Property(EndpointProperty.Host); 2886[InlineData(EndpointProperty.Host, "project1.example.azurecontainerapps.io")]
AzureFrontDoorPrivateLinkTests.cs (1)
149.WithEnvironment("API_HOST", api.GetEndpoint("https").Property(EndpointProperty.Host));
Aspire.Hosting.Docker (1)
DockerComposeServiceResourceExtensions.cs (1)
140EndpointProperty.Host or EndpointProperty.IPV4Host => GetHostValue(),
Aspire.Hosting.Garnet (1)
GarnetResource.cs (1)
38public 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)
35public EndpointReferenceExpression Host => PrimaryEndpoint.Property(EndpointProperty.Host);
Aspire.Hosting.Kubernetes (1)
KubernetesResource.cs (1)
792EndpointProperty.Host or EndpointProperty.IPV4Host => GetHostValue(),
Aspire.Hosting.Milvus (1)
MilvusServerResource.cs (1)
45public EndpointReferenceExpression Host => PrimaryEndpoint.Property(EndpointProperty.Host);
Aspire.Hosting.MongoDB (1)
MongoDBServerResource.cs (1)
47public EndpointReferenceExpression Host => PrimaryEndpoint.Property(EndpointProperty.Host);
Aspire.Hosting.MySql (2)
MySqlServerResource.cs (2)
42public EndpointReferenceExpression Host => PrimaryEndpoint.Property(EndpointProperty.Host); 59$"Server={PrimaryEndpoint.Property(EndpointProperty.Host)};Port={PrimaryEndpoint.Property(EndpointProperty.Port)};User ID={DefaultUserName};Password={PasswordParameter}");
Aspire.Hosting.Nats (1)
NatsServerResource.cs (1)
42public EndpointReferenceExpression Host => PrimaryEndpoint.Property(EndpointProperty.Host);
Aspire.Hosting.Oracle (1)
OracleDatabaseServerResource.cs (1)
39public EndpointReferenceExpression Host => PrimaryEndpoint.Property(EndpointProperty.Host);
Aspire.Hosting.PostgreSQL (2)
PostgresServerResource.cs (2)
61$"Host={PrimaryEndpoint.Property(EndpointProperty.Host)};Port={PrimaryEndpoint.Property(EndpointProperty.Port)};Username={UserNameReference};Password={PasswordParameter}"); 112public EndpointReferenceExpression Host => PrimaryEndpoint.Property(EndpointProperty.Host);
Aspire.Hosting.Qdrant (2)
QdrantServerResource.cs (2)
45public EndpointReferenceExpression GrpcHost => PrimaryEndpoint.Property(EndpointProperty.Host); 60public EndpointReferenceExpression HttpHost => HttpEndpoint.Property(EndpointProperty.Host);
Aspire.Hosting.RabbitMQ (1)
RabbitMQServerResource.cs (1)
48public EndpointReferenceExpression Host => PrimaryEndpoint.Property(EndpointProperty.Host);
Aspire.Hosting.Radius (2)
Publishing\RadiusInfrastructureBuilder.cs (1)
3380case EndpointProperty.Host or EndpointProperty.IPV4Host:
RadiusEnvironmentResource.cs (1)
208EndpointProperty.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)
92[InlineData(EndpointProperty.Host, "api-api.default.svc.cluster.local")]
Aspire.Hosting.Redis (2)
RedisBuilderExtensions.cs (1)
399context.EnvironmentVariables[$"RI_REDIS_HOST{counter}"] = redisInstance.PrimaryEndpoint.Property(EndpointProperty.Host);
RedisResource.cs (1)
57public EndpointReferenceExpression Host => PrimaryEndpoint.Property(EndpointProperty.Host);
Aspire.Hosting.Seq (1)
SeqResource.cs (1)
28public EndpointReferenceExpression Host => PrimaryEndpoint.Property(EndpointProperty.Host);
Aspire.Hosting.SqlServer (1)
SqlServerServerResource.cs (1)
39public EndpointReferenceExpression Host => PrimaryEndpoint.Property(EndpointProperty.Host);
Aspire.Hosting.Tests (14)
ComputeEnvironmentValidationTests.cs (1)
86[InlineData(EndpointProperty.Host, "api.example.com")]
Dcp\DcpExecutorTests.cs (1)
10897$"{containerEndpoint.Property(EndpointProperty.Scheme)}://{containerEndpoint.Property(EndpointProperty.Host)}:{containerEndpoint.Property(EndpointProperty.Port)}"))
EndpointReferenceTests.cs (6)
108var hostExpr = endpointRef.Property(EndpointProperty.Host); 226var expr2 = endpointRef.Property(EndpointProperty.Host); 346[InlineData(EndpointProperty.Host, ResourceKind.Host, ResourceKind.Host, "localhost")] 347[InlineData(EndpointProperty.Host, ResourceKind.Host, ResourceKind.Container, "localhost")] 348[InlineData(EndpointProperty.Host, ResourceKind.Container, ResourceKind.Host, "host.docker.internal")] 349[InlineData(EndpointProperty.Host, ResourceKind.Container, ResourceKind.Container, "destination.dev.internal")]
ExpressionResolverTests.cs (4)
380{ "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)}/;") }, 383{ "OnlyHost", ReferenceExpression.Create($"Host={Endpoint1.Property(EndpointProperty.Host)};") }, 386{ "PortBeforeHost", ReferenceExpression.Create($"Port={Endpoint1.Property(EndpointProperty.Port)};Host={Endpoint1.Property(EndpointProperty.Host)};") }, 392{ "UrlEncodedHost", ReferenceExpression.Create($"Host={Endpoint3.Property(EndpointProperty.Host):uri};") },
ManifestExpressionTests.cs (1)
419.WithEnvironment("HOST", endpoint.Property(EndpointProperty.Host));
WithEnvironmentTests.cs (1)
116.WithEnvironment("URL", $"{endpoint.Property(EndpointProperty.Host)}:{endpoint.Property(EndpointProperty.Port)}");
Aspire.Hosting.Valkey (1)
ValkeyResource.cs (1)
43public EndpointReferenceExpression Host => PrimaryEndpoint.Property(EndpointProperty.Host);
Stress.AppHost (1)
AppHost.cs (1)
75.WithEnvironment("HOST", $"{serviceBuilder.GetEndpoint("http").Property(EndpointProperty.Host)}")