57 references to HostAndPort
Aspire.Hosting (3)
ApplicationModel\EndpointReference.cs (2)
179EndpointProperty.HostAndPort => $"{Binding("host")}:{Binding("port")}", 448EndpointProperty.HostAndPort => new($"{allocatedEndpoint.Address}:{allocatedEndpoint.Port.ToString(CultureInfo.InvariantCulture)}"),
ApplicationModel\IComputeEnvironmentResource.cs (1)
69EndpointProperty.HostAndPort => ReferenceExpression.Create($"{host.Value}:{port.ToString(CultureInfo.InvariantCulture)}"),
Aspire.Hosting.Azure.AppContainers (3)
AzureContainerAppEnvironmentResource.cs (1)
459EndpointProperty.HostAndPort => ReferenceExpression.Create($"{host}:{port.ToString(CultureInfo.InvariantCulture)}"),
BaseContainerAppContext.cs (2)
214EndpointProperty.HostAndPort => GetHostValue(suffix: $":{port}"), 322if (epExpr.Property is EndpointProperty.Url or EndpointProperty.Host or EndpointProperty.IPV4Host or EndpointProperty.HostAndPort or
Aspire.Hosting.Azure.AppService (2)
AzureAppServiceEnvironmentResource.cs (1)
587EndpointProperty.HostAndPort => host,
AzureAppServiceWebsiteContext.cs (1)
951EndpointProperty.HostAndPort => BicepFunction.Interpolate($"{mapping.Host}.azurewebsites.net"),
Aspire.Hosting.Azure.EventHubs (3)
AzureEventHubsResource.cs (3)
92ReferenceExpression.Create($"sb://{EmulatorEndpoint.Property(EndpointProperty.HostAndPort)}") : 106builder.Append($"Endpoint=sb://{EmulatorEndpoint.Property(EndpointProperty.HostAndPort)};SharedAccessKeyName=RootManageSharedAccessKey;SharedAccessKey=SAS_KEY_VALUE;UseDevelopmentEmulator=true"); 216yield return new("ConnectionString", ReferenceExpression.Create($"Endpoint={EmulatorEndpoint.Property(EndpointProperty.HostAndPort)};SharedAccessKeyName=RootManageSharedAccessKey;SharedAccessKey=SAS_KEY_VALUE;UseDevelopmentEmulator=true"));
Aspire.Hosting.Azure.PostgreSQL (1)
AzurePostgresFlexibleServerResource.cs (1)
93ReferenceExpression.Create($"{InnerResource.PrimaryEndpoint.Property(EndpointProperty.HostAndPort)}") :
Aspire.Hosting.Azure.Redis (1)
AzureRedisCacheResource.cs (1)
82ReferenceExpression.Create($"{InnerResource.PrimaryEndpoint.Property(EndpointProperty.HostAndPort)}") :
Aspire.Hosting.Azure.Sandboxes (2)
AzureSandboxContainerDeployment.cs (1)
1236case EndpointProperty.HostAndPort:
AzureSandboxEndpointPropertyValueProvider.cs (1)
109EndpointProperty.HostAndPort => uri.IsDefaultPort ? uri.Host : uri.Authority,
Aspire.Hosting.Azure.ServiceBus (3)
AzureServiceBusExtensions.cs (1)
493context.EnvironmentVariables.TryAdd("SQL_SERVER", sqlConnection.Endpoint.Property(EndpointProperty.HostAndPort));
AzureServiceBusResource.cs (2)
82ReferenceExpression.Create($"sb://{EmulatorEndpoint.Property(EndpointProperty.HostAndPort)}") : 90? ReferenceExpression.Create($"Endpoint=sb://{EmulatorEndpoint.Property(EndpointProperty.HostAndPort)};SharedAccessKeyName=RootManageSharedAccessKey;SharedAccessKey=SAS_KEY_VALUE;UseDevelopmentEmulator=true;")
Aspire.Hosting.Azure.Tests (13)
AzureAppServiceTests.cs (1)
1204[InlineData(EndpointProperty.HostAndPort, "project1-website123.azurewebsites.net")]
AzureContainerAppExpressEndpointTests.cs (4)
44EndpointProperty.HostAndPort, EndpointProperty.Port, EndpointProperty.TargetPort, 107[EndpointProperty.HostAndPort] = "api.salmonisland-e9e6a567.westus3.azurecontainerapps.io:443", 146[InlineData(EndpointProperty.HostAndPort)] 287.WithEnvironment("API_AUTHORITY", ReferenceExpression.Create($"api={endpoint.Property(EndpointProperty.HostAndPort)}"));
AzureContainerAppsTests.cs (5)
426context.EnvironmentVariables["HOSTANDPORT"] = httpEp.Property(EndpointProperty.HostAndPort); 428context.EnvironmentVariables["INTERNAL_HOSTANDPORT"] = internalEp.Property(EndpointProperty.HostAndPort); 532context.EnvironmentVariables["HOSTANDPORT"] = httpEp.Property(EndpointProperty.HostAndPort); 534context.EnvironmentVariables["INTERNAL_HOSTANDPORT"] = internalEp.Property(EndpointProperty.HostAndPort); 2891[InlineData(EndpointProperty.HostAndPort, "project1.example.azurecontainerapps.io:443")]
AzureProvisioningResourceExtensionsTests.cs (1)
23var referenceExpression = ReferenceExpression.Create($"prefix:{endpointReference.Property(EndpointProperty.HostAndPort)}");
AzureSandboxesTests.cs (1)
3260$"https://{api.GetEndpoint("http").Property(EndpointProperty.HostAndPort)}/v1"))
FoundryExtensionsTests.cs (1)
898context.EnvironmentVariables["WEATHER_HOST_AND_PORT"] = weatherAgent.GetEndpoint("http").Property(EndpointProperty.HostAndPort);
Aspire.Hosting.Docker (1)
DockerComposeServiceResourceExtensions.cs (1)
142EndpointProperty.HostAndPort => GetHostValue(suffix: $":{mapping.InternalPort}"),
Aspire.Hosting.Garnet (1)
GarnetResource.cs (1)
69builder.Append($"{PrimaryEndpoint.Property(EndpointProperty.HostAndPort)}");
Aspire.Hosting.Kafka (4)
KafkaBuilderExtensions.cs (3)
165: ReferenceExpression.Create($"{endpoint.Property(EndpointProperty.HostAndPort)}"); 248: ReferenceExpression.Create($"PLAINTEXT://{primaryEndpoint.Property(EndpointProperty.Host)}:29092,PLAINTEXT_HOST://{primaryEndpoint.Property(EndpointProperty.HostAndPort)},PLAINTEXT_INTERNAL://{internalEndpoint.Property(EndpointProperty.HostAndPort)}");
KafkaServerResource.cs (1)
52ReferenceExpression.Create($"{PrimaryEndpoint.Property(EndpointProperty.HostAndPort)}");
Aspire.Hosting.Kubernetes (1)
KubernetesResource.cs (1)
794EndpointProperty.HostAndPort => GetHostValue(suffix: GetPortSuffix(servicePort)),
Aspire.Hosting.MongoDB (3)
MongoDBServerResource.cs (1)
147builder.Append($"{PrimaryEndpoint.Property(EndpointProperty.HostAndPort)}");
ReplicaSet\MongoDBReplicaSetBuilderExtensions.cs (1)
162.Property(EndpointProperty.HostAndPort)
ReplicaSet\MongoDBReplicaSetResource.cs (1)
107builder.Append($"{member.PrimaryEndpoint.Property(EndpointProperty.HostAndPort)}");
Aspire.Hosting.Nats (1)
NatsServerResource.cs (1)
100builder.Append($"{PrimaryEndpoint.Property(EndpointProperty.HostAndPort)}");
Aspire.Hosting.Oracle (1)
OracleDatabaseServerResource.cs (1)
56$"user id={DefaultUserName};password={PasswordParameter};data source={PrimaryEndpoint.Property(EndpointProperty.HostAndPort)}");
Aspire.Hosting.RabbitMQ (1)
RabbitMQServerResource.cs (1)
104builder.Append($"{PrimaryEndpoint.Property(EndpointProperty.HostAndPort)}");
Aspire.Hosting.Radius (2)
Publishing\RadiusInfrastructureBuilder.cs (1)
3386case EndpointProperty.HostAndPort:
RadiusEnvironmentResource.cs (1)
219EndpointProperty.HostAndPort => ReferenceExpression.Create($"{host.Value}:{RadiusServiceDiscovery.ToInvariantString(port.Value)}"),
Aspire.Hosting.Radius.Tests (2)
Publishing\BackingResourceContractTests.cs (1)
129[InlineData(EndpointProperty.HostAndPort)]
RadiusEnvironmentResourceTests.cs (1)
94[InlineData(EndpointProperty.HostAndPort, "api-api.default.svc.cluster.local:8080")]
Aspire.Hosting.Redis (1)
RedisResource.cs (1)
90builder.Append($"{PrimaryEndpoint.Property(EndpointProperty.HostAndPort)}");
Aspire.Hosting.Tests (7)
ComputeEnvironmentValidationTests.cs (1)
91[InlineData(EndpointProperty.HostAndPort, "api.example.com:8080")]
Dcp\DcpExecutorTests.cs (1)
5080database.WithEnvironment("PUBLIC_HOST_AND_PORT", database.GetEndpoint("NoPortTargetPortSet").Property(EndpointProperty.HostAndPort));
EndpointReferenceTests.cs (4)
362[InlineData(EndpointProperty.HostAndPort, ResourceKind.Host, ResourceKind.Host, "localhost:1234")] 363[InlineData(EndpointProperty.HostAndPort, ResourceKind.Host, ResourceKind.Container, "localhost:1234")] 364[InlineData(EndpointProperty.HostAndPort, ResourceKind.Container, ResourceKind.Host, "host.docker.internal:1234")] 365[InlineData(EndpointProperty.HostAndPort, ResourceKind.Container, ResourceKind.Container, "destination.dev.internal:4567")]
ExpressionResolverTests.cs (1)
385{ "HostAndPort", ReferenceExpression.Create($"HostPort={Endpoint1.Property(EndpointProperty.HostAndPort)}") },
Aspire.Hosting.Valkey (1)
ValkeyResource.cs (1)
69builder.Append($"{PrimaryEndpoint.Property(EndpointProperty.HostAndPort)}");