34 references to HostAndPort
Aspire.Hosting (2)
ApplicationModel\EndpointReference.cs (2)
102
EndpointProperty.
HostAndPort
=> $"{Binding("host")}:{Binding("port")}",
333
EndpointProperty.
HostAndPort
=> new($"{allocatedEndpoint.Address}:{allocatedEndpoint.Port.ToString(CultureInfo.InvariantCulture)}"),
Aspire.Hosting.Azure.AppContainers (1)
BaseContainerAppContext.cs (1)
208
EndpointProperty.
HostAndPort
=> GetHostValue(suffix: $":{port}"),
Aspire.Hosting.Azure.AppService (1)
AzureAppServiceWebsiteContext.cs (1)
751
EndpointProperty.
HostAndPort
=> BicepFunction.Interpolate($"{mapping.Host}.azurewebsites.net"),
Aspire.Hosting.Azure.EventHubs (3)
AzureEventHubsResource.cs (3)
88
ReferenceExpression.Create($"sb://{EmulatorEndpoint.Property(EndpointProperty.
HostAndPort
)}") :
102
builder.Append($"Endpoint=sb://{EmulatorEndpoint.Property(EndpointProperty.
HostAndPort
)};SharedAccessKeyName=RootManageSharedAccessKey;SharedAccessKey=SAS_KEY_VALUE;UseDevelopmentEmulator=true");
212
yield 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)
90
ReferenceExpression.Create($"{InnerResource.PrimaryEndpoint.Property(EndpointProperty.
HostAndPort
)}") :
Aspire.Hosting.Azure.Redis (1)
AzureRedisCacheResource.cs (1)
79
ReferenceExpression.Create($"{InnerResource.PrimaryEndpoint.Property(EndpointProperty.
HostAndPort
)}") :
Aspire.Hosting.Azure.ServiceBus (2)
AzureServiceBusResource.cs (2)
78
ReferenceExpression.Create($"sb://{EmulatorEndpoint.Property(EndpointProperty.
HostAndPort
)}") :
86
? ReferenceExpression.Create($"Endpoint=sb://{EmulatorEndpoint.Property(EndpointProperty.
HostAndPort
)};SharedAccessKeyName=RootManageSharedAccessKey;SharedAccessKey=SAS_KEY_VALUE;UseDevelopmentEmulator=true;")
Aspire.Hosting.Azure.Tests (5)
AzureContainerAppsTests.cs (4)
317
context.EnvironmentVariables["HOSTANDPORT"] = httpEp.Property(EndpointProperty.
HostAndPort
);
319
context.EnvironmentVariables["INTERNAL_HOSTANDPORT"] = internalEp.Property(EndpointProperty.
HostAndPort
);
394
context.EnvironmentVariables["HOSTANDPORT"] = httpEp.Property(EndpointProperty.
HostAndPort
);
396
context.EnvironmentVariables["INTERNAL_HOSTANDPORT"] = internalEp.Property(EndpointProperty.
HostAndPort
);
AzureProvisioningResourceExtensionsTests.cs (1)
21
var referenceExpression = ReferenceExpression.Create($"prefix:{endpointReference.Property(EndpointProperty.
HostAndPort
)}");
Aspire.Hosting.Docker (1)
DockerComposeServiceResourceExtensions.cs (1)
95
EndpointProperty.
HostAndPort
=> GetHostValue(suffix: $":{mapping.InternalPort}"),
Aspire.Hosting.Garnet (1)
GarnetResource.cs (1)
65
builder.Append($"{PrimaryEndpoint.Property(EndpointProperty.
HostAndPort
)}");
Aspire.Hosting.Kafka (4)
KafkaBuilderExtensions.cs (3)
141
: ReferenceExpression.Create($"{endpoint.Property(EndpointProperty.
HostAndPort
)}");
219
: ReferenceExpression.Create($"PLAINTEXT://{primaryEndpoint.Property(EndpointProperty.Host)}:29092,PLAINTEXT_HOST://{primaryEndpoint.Property(EndpointProperty.
HostAndPort
)},PLAINTEXT_INTERNAL://{internalEndpoint.Property(EndpointProperty.
HostAndPort
)}");
KafkaServerResource.cs (1)
48
ReferenceExpression.Create($"{PrimaryEndpoint.Property(EndpointProperty.
HostAndPort
)}");
Aspire.Hosting.Kubernetes (1)
KubernetesResource.cs (1)
467
EndpointProperty.
HostAndPort
=> GetHostValue(suffix: GetPortSuffix()),
Aspire.Hosting.MongoDB (1)
MongoDBServerResource.cs (1)
101
builder.Append($"{PrimaryEndpoint.Property(EndpointProperty.
HostAndPort
)}");
Aspire.Hosting.Nats (1)
NatsServerResource.cs (1)
96
builder.Append($"{PrimaryEndpoint.Property(EndpointProperty.
HostAndPort
)}");
Aspire.Hosting.Oracle (1)
OracleDatabaseServerResource.cs (1)
52
$"user id={DefaultUserName};password={PasswordParameter};data source={PrimaryEndpoint.Property(EndpointProperty.
HostAndPort
)}");
Aspire.Hosting.RabbitMQ (1)
RabbitMQServerResource.cs (1)
100
builder.Append($"{PrimaryEndpoint.Property(EndpointProperty.
HostAndPort
)}");
Aspire.Hosting.Redis (1)
RedisResource.cs (1)
68
builder.Append($"{PrimaryEndpoint.Property(EndpointProperty.
HostAndPort
)}");
Aspire.Hosting.Tests (5)
EndpointReferenceTests.cs (4)
309
[InlineData(EndpointProperty.
HostAndPort
, ResourceKind.Host, ResourceKind.Host, "localhost:1234")]
310
[InlineData(EndpointProperty.
HostAndPort
, ResourceKind.Host, ResourceKind.Container, "localhost:1234")]
311
[InlineData(EndpointProperty.
HostAndPort
, ResourceKind.Container, ResourceKind.Host, "host.docker.internal:1234")]
312
[InlineData(EndpointProperty.
HostAndPort
, ResourceKind.Container, ResourceKind.Container, "destination.dev.internal:4567")]
ExpressionResolverTests.cs (1)
327
{ "HostAndPort", ReferenceExpression.Create($"HostPort={Endpoint1.Property(EndpointProperty.
HostAndPort
)}") },
Aspire.Hosting.Valkey (1)
ValkeyResource.cs (1)
65
builder.Append($"{PrimaryEndpoint.Property(EndpointProperty.
HostAndPort
)}");