44 references to HostAndPort
Aspire.Hosting (3)
ApplicationModel\EndpointReference.cs (2)
146EndpointProperty.HostAndPort => $"{Binding("host")}:{Binding("port")}", 383EndpointProperty.HostAndPort => new($"{allocatedEndpoint.Address}:{allocatedEndpoint.Port.ToString(CultureInfo.InvariantCulture)}"),
ApplicationModel\IComputeEnvironmentResource.cs (1)
62EndpointProperty.HostAndPort => ReferenceExpression.Create($"{host.Value}:{port.ToString(CultureInfo.InvariantCulture)}"),
Aspire.Hosting.Azure.AppContainers (2)
AzureContainerAppEnvironmentResource.cs (1)
385EndpointProperty.HostAndPort => ReferenceExpression.Create($"{host}:{port.ToString(CultureInfo.InvariantCulture)}"),
BaseContainerAppContext.cs (1)
208EndpointProperty.HostAndPort => GetHostValue(suffix: $":{port}"),
Aspire.Hosting.Azure.AppService (2)
AzureAppServiceEnvironmentResource.cs (1)
537EndpointProperty.HostAndPort => host,
AzureAppServiceWebsiteContext.cs (1)
872EndpointProperty.HostAndPort => BicepFunction.Interpolate($"{mapping.Host}.azurewebsites.net"),
Aspire.Hosting.Azure.EventHubs (3)
AzureEventHubsResource.cs (3)
89ReferenceExpression.Create($"sb://{EmulatorEndpoint.Property(EndpointProperty.HostAndPort)}") : 103builder.Append($"Endpoint=sb://{EmulatorEndpoint.Property(EndpointProperty.HostAndPort)};SharedAccessKeyName=RootManageSharedAccessKey;SharedAccessKey=SAS_KEY_VALUE;UseDevelopmentEmulator=true"); 213yield 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)
90ReferenceExpression.Create($"{InnerResource.PrimaryEndpoint.Property(EndpointProperty.HostAndPort)}") :
Aspire.Hosting.Azure.Redis (1)
AzureRedisCacheResource.cs (1)
79ReferenceExpression.Create($"{InnerResource.PrimaryEndpoint.Property(EndpointProperty.HostAndPort)}") :
Aspire.Hosting.Azure.ServiceBus (2)
AzureServiceBusResource.cs (2)
79ReferenceExpression.Create($"sb://{EmulatorEndpoint.Property(EndpointProperty.HostAndPort)}") : 87? ReferenceExpression.Create($"Endpoint=sb://{EmulatorEndpoint.Property(EndpointProperty.HostAndPort)};SharedAccessKeyName=RootManageSharedAccessKey;SharedAccessKey=SAS_KEY_VALUE;UseDevelopmentEmulator=true;")
Aspire.Hosting.Azure.Tests (8)
AzureAppServiceTests.cs (1)
1135[InlineData(EndpointProperty.HostAndPort, "project1-website123.azurewebsites.net")]
AzureContainerAppsTests.cs (5)
372context.EnvironmentVariables["HOSTANDPORT"] = httpEp.Property(EndpointProperty.HostAndPort); 374context.EnvironmentVariables["INTERNAL_HOSTANDPORT"] = internalEp.Property(EndpointProperty.HostAndPort); 449context.EnvironmentVariables["HOSTANDPORT"] = httpEp.Property(EndpointProperty.HostAndPort); 451context.EnvironmentVariables["INTERNAL_HOSTANDPORT"] = internalEp.Property(EndpointProperty.HostAndPort); 2737[InlineData(EndpointProperty.HostAndPort, "project1.example.azurecontainerapps.io:443")]
AzureProvisioningResourceExtensionsTests.cs (1)
21var referenceExpression = ReferenceExpression.Create($"prefix:{endpointReference.Property(EndpointProperty.HostAndPort)}");
FoundryExtensionsTests.cs (1)
429context.EnvironmentVariables["WEATHER_HOST_AND_PORT"] = weatherAgent.GetEndpoint("http").Property(EndpointProperty.HostAndPort);
Aspire.Hosting.Docker (1)
DockerComposeServiceResourceExtensions.cs (1)
108EndpointProperty.HostAndPort => GetHostValue(suffix: $":{mapping.InternalPort}"),
Aspire.Hosting.Garnet (1)
GarnetResource.cs (1)
66builder.Append($"{PrimaryEndpoint.Property(EndpointProperty.HostAndPort)}");
Aspire.Hosting.Kafka (4)
KafkaBuilderExtensions.cs (3)
146: ReferenceExpression.Create($"{endpoint.Property(EndpointProperty.HostAndPort)}"); 229: ReferenceExpression.Create($"PLAINTEXT://{primaryEndpoint.Property(EndpointProperty.Host)}:29092,PLAINTEXT_HOST://{primaryEndpoint.Property(EndpointProperty.HostAndPort)},PLAINTEXT_INTERNAL://{internalEndpoint.Property(EndpointProperty.HostAndPort)}");
KafkaServerResource.cs (1)
49ReferenceExpression.Create($"{PrimaryEndpoint.Property(EndpointProperty.HostAndPort)}");
Aspire.Hosting.Kubernetes (1)
KubernetesResource.cs (1)
765EndpointProperty.HostAndPort => GetHostValue(suffix: GetPortSuffix(servicePort)),
Aspire.Hosting.MongoDB (1)
MongoDBServerResource.cs (1)
102builder.Append($"{PrimaryEndpoint.Property(EndpointProperty.HostAndPort)}");
Aspire.Hosting.Nats (1)
NatsServerResource.cs (1)
97builder.Append($"{PrimaryEndpoint.Property(EndpointProperty.HostAndPort)}");
Aspire.Hosting.Oracle (1)
OracleDatabaseServerResource.cs (1)
53$"user id={DefaultUserName};password={PasswordParameter};data source={PrimaryEndpoint.Property(EndpointProperty.HostAndPort)}");
Aspire.Hosting.RabbitMQ (1)
RabbitMQServerResource.cs (1)
101builder.Append($"{PrimaryEndpoint.Property(EndpointProperty.HostAndPort)}");
Aspire.Hosting.Radius (1)
RadiusEnvironmentResource.cs (1)
177EndpointProperty.HostAndPort => ReferenceExpression.Create($"{host.Value}:{RadiusServiceDiscovery.ToInvariantString(port)}"),
Aspire.Hosting.Radius.Tests (1)
RadiusEnvironmentResourceTests.cs (1)
77[InlineData(EndpointProperty.HostAndPort, "api-api.default.svc.cluster.local:8080")]
Aspire.Hosting.Redis (1)
RedisResource.cs (1)
87builder.Append($"{PrimaryEndpoint.Property(EndpointProperty.HostAndPort)}");
Aspire.Hosting.Tests (7)
ComputeEnvironmentValidationTests.cs (1)
70[InlineData(EndpointProperty.HostAndPort, "api.example.com:8080")]
Dcp\DcpExecutorTests.cs (1)
3871database.WithEnvironment("PUBLIC_HOST_AND_PORT", database.GetEndpoint("NoPortTargetPortSet").Property(EndpointProperty.HostAndPort));
EndpointReferenceTests.cs (4)
326[InlineData(EndpointProperty.HostAndPort, ResourceKind.Host, ResourceKind.Host, "localhost:1234")] 327[InlineData(EndpointProperty.HostAndPort, ResourceKind.Host, ResourceKind.Container, "localhost:1234")] 328[InlineData(EndpointProperty.HostAndPort, ResourceKind.Container, ResourceKind.Host, "host.docker.internal:1234")] 329[InlineData(EndpointProperty.HostAndPort, ResourceKind.Container, ResourceKind.Container, "destination.dev.internal:4567")]
ExpressionResolverTests.cs (1)
356{ "HostAndPort", ReferenceExpression.Create($"HostPort={Endpoint1.Property(EndpointProperty.HostAndPort)}") },
Aspire.Hosting.Valkey (1)
ValkeyResource.cs (1)
66builder.Append($"{PrimaryEndpoint.Property(EndpointProperty.HostAndPort)}");