27 references to HostAndPort
Aspire.Hosting (4)
ApplicationModel\EndpointReference.cs (2)
58EndpointProperty.HostAndPort => $"{Binding("host")}:{Binding("port")}", 181EndpointProperty.HostAndPort => new($"{Endpoint.Host}:{Endpoint.Port.ToString(CultureInfo.InvariantCulture)}"),
ApplicationModel\ExpressionResolver.cs (2)
47else if (property is EndpointProperty.Url or EndpointProperty.HostAndPort) 74(EndpointProperty.HostAndPort, _, _) => string.Format(CultureInfo.InvariantCulture, "{0}:{1}",
Aspire.Hosting.Azure.AppContainers (1)
ContainerAppContext.cs (1)
476EndpointProperty.HostAndPort => GetHostValue(suffix: $":{port}"),
Aspire.Hosting.Azure.AppService (1)
AzureAppServiceWebsiteContext.cs (1)
329EndpointProperty.HostAndPort => BicepFunction.Interpolate($"{mapping.Host}.azurewebsites.net"),
Aspire.Hosting.Azure.EventHubs (1)
AzureEventHubsResource.cs (1)
59builder.Append($"Endpoint=sb://{EmulatorEndpoint.Property(EndpointProperty.HostAndPort)};SharedAccessKeyName=RootManageSharedAccessKey;SharedAccessKey=SAS_KEY_VALUE;UseDevelopmentEmulator=true");
Aspire.Hosting.Azure.ServiceBus (1)
AzureServiceBusResource.cs (1)
43? ReferenceExpression.Create($"Endpoint=sb://{EmulatorEndpoint.Property(EndpointProperty.HostAndPort)};SharedAccessKeyName=RootManageSharedAccessKey;SharedAccessKey=SAS_KEY_VALUE;UseDevelopmentEmulator=true;")
Aspire.Hosting.Azure.Tests (5)
AzureContainerAppsTests.cs (4)
310context.EnvironmentVariables["HOSTANDPORT"] = httpEp.Property(EndpointProperty.HostAndPort); 312context.EnvironmentVariables["INTERNAL_HOSTANDPORT"] = internalEp.Property(EndpointProperty.HostAndPort); 387context.EnvironmentVariables["HOSTANDPORT"] = httpEp.Property(EndpointProperty.HostAndPort); 389context.EnvironmentVariables["INTERNAL_HOSTANDPORT"] = internalEp.Property(EndpointProperty.HostAndPort);
AzureProvisioningResourceExtensionsTests.cs (1)
21var referenceExpression = ReferenceExpression.Create($"prefix:{endpointReference.Property(EndpointProperty.HostAndPort)}");
Aspire.Hosting.Docker (1)
DockerComposeServiceResourceExtensions.cs (1)
95EndpointProperty.HostAndPort => GetHostValue(suffix: $":{mapping.InternalPort}"),
Aspire.Hosting.Garnet (1)
GarnetResource.cs (1)
55builder.Append($"{PrimaryEndpoint.Property(EndpointProperty.HostAndPort)}");
Aspire.Hosting.Kafka (4)
KafkaBuilderExtensions.cs (3)
143: ReferenceExpression.Create($"{endpoint.Property(EndpointProperty.HostAndPort)}"); 221: ReferenceExpression.Create($"PLAINTEXT://{primaryEndpoint.Property(EndpointProperty.Host)}:29092,PLAINTEXT_HOST://{primaryEndpoint.Property(EndpointProperty.HostAndPort)},PLAINTEXT_INTERNAL://{internalEndpoint.Property(EndpointProperty.HostAndPort)}");
KafkaServerResource.cs (1)
38ReferenceExpression.Create($"{PrimaryEndpoint.Property(EndpointProperty.HostAndPort)}");
Aspire.Hosting.Kubernetes (1)
KubernetesServiceResourceExtensions.cs (1)
105EndpointProperty.HostAndPort => GetHostValue(suffix: $":{port}"),
Aspire.Hosting.MongoDB (1)
MongoDBServerResource.cs (1)
66builder.Append($"{PrimaryEndpoint.Property(EndpointProperty.HostAndPort)}");
Aspire.Hosting.Nats (1)
NatsServerResource.cs (1)
65builder.Append($"{PrimaryEndpoint.Property(EndpointProperty.HostAndPort)}");
Aspire.Hosting.Oracle (1)
OracleDatabaseServerResource.cs (1)
41$"user id=system;password={PasswordParameter};data source={PrimaryEndpoint.Property(EndpointProperty.HostAndPort)}");
Aspire.Hosting.RabbitMQ (1)
RabbitMQServerResource.cs (1)
55$"amqp://{UserNameReference}:{PasswordParameter}@{PrimaryEndpoint.Property(EndpointProperty.HostAndPort)}");
Aspire.Hosting.Redis (1)
RedisResource.cs (1)
42builder.Append($"{PrimaryEndpoint.Property(EndpointProperty.HostAndPort)}");
Aspire.Hosting.Tests (1)
ExpressionResolverTests.cs (1)
228{ "HostAndPort", ReferenceExpression.Create($"HostPort={Endpoint1.Property(EndpointProperty.HostAndPort)}") },
Aspire.Hosting.Valkey (1)
ValkeyResource.cs (1)
55builder.Append($"{PrimaryEndpoint.Property(EndpointProperty.HostAndPort)}");