57 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 (3)
AzureContainerAppEnvironmentResource.cs (1)
412EndpointProperty.HostAndPort => ReferenceExpression.Create($"{host}:{port.ToString(CultureInfo.InvariantCulture)}"),
BaseContainerAppContext.cs (2)
208EndpointProperty.HostAndPort => GetHostValue(suffix: $":{port}"), 309if (epExpr.Property is EndpointProperty.Url or EndpointProperty.Host or EndpointProperty.IPV4Host or EndpointProperty.HostAndPort)
Aspire.Hosting.Azure.AppService (2)
AzureAppServiceEnvironmentResource.cs (1)
539EndpointProperty.HostAndPort => host,
AzureAppServiceWebsiteContext.cs (1)
906EndpointProperty.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.Sandboxes (2)
AzureSandboxContainerDeployment.cs (1)
1239case EndpointProperty.HostAndPort:
AzureSandboxEndpointPropertyValueProvider.cs (1)
110EndpointProperty.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)
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 (13)
AzureAppServiceTests.cs (1)
1183[InlineData(EndpointProperty.HostAndPort, "project1-website123.azurewebsites.net")]
AzureContainerAppExpressEndpointTests.cs (4)
42EndpointProperty.HostAndPort, EndpointProperty.Port, EndpointProperty.TargetPort, 103[EndpointProperty.HostAndPort] = "api.salmonisland-e9e6a567.westus3.azurecontainerapps.io:443", 142[InlineData(EndpointProperty.HostAndPort)] 257.WithEnvironment("API_AUTHORITY", ReferenceExpression.Create($"api={endpoint.Property(EndpointProperty.HostAndPort)}"));
AzureContainerAppsTests.cs (5)
400context.EnvironmentVariables["HOSTANDPORT"] = httpEp.Property(EndpointProperty.HostAndPort); 402context.EnvironmentVariables["INTERNAL_HOSTANDPORT"] = internalEp.Property(EndpointProperty.HostAndPort); 504context.EnvironmentVariables["HOSTANDPORT"] = httpEp.Property(EndpointProperty.HostAndPort); 506context.EnvironmentVariables["INTERNAL_HOSTANDPORT"] = internalEp.Property(EndpointProperty.HostAndPort); 2828[InlineData(EndpointProperty.HostAndPort, "project1.example.azurecontainerapps.io:443")]
AzureProvisioningResourceExtensionsTests.cs (1)
21var referenceExpression = ReferenceExpression.Create($"prefix:{endpointReference.Property(EndpointProperty.HostAndPort)}");
AzureSandboxesTests.cs (1)
3214$"https://{api.GetEndpoint("http").Property(EndpointProperty.HostAndPort)}/v1"))
FoundryExtensionsTests.cs (1)
897context.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)
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)
49ReferenceExpression.Create($"{PrimaryEndpoint.Property(EndpointProperty.HostAndPort)}");
Aspire.Hosting.Kubernetes (1)
KubernetesResource.cs (1)
790EndpointProperty.HostAndPort => GetHostValue(suffix: GetPortSuffix(servicePort)),
Aspire.Hosting.MongoDB (3)
MongoDBServerResource.cs (1)
144builder.Append($"{PrimaryEndpoint.Property(EndpointProperty.HostAndPort)}");
ReplicaSet\MongoDBReplicaSetBuilderExtensions.cs (1)
160.Property(EndpointProperty.HostAndPort)
ReplicaSet\MongoDBReplicaSetResource.cs (1)
104builder.Append($"{member.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 (2)
Publishing\RadiusInfrastructureBuilder.cs (1)
3382case EndpointProperty.HostAndPort:
RadiusEnvironmentResource.cs (1)
216EndpointProperty.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)
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)
4591database.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)}");