36 references to AllAllocatedEndpoints
Aspire.Hosting (7)
ApplicationModel\EndpointAnnotation.cs (1)
142
AllAllocatedEndpoints
.TryAdd(_networkId, AllocatedEndpointSnapshot);
ApplicationModel\EndpointReference.cs (2)
245
return endpointAnnotation.
AllAllocatedEndpoints
.TryGetAllocatedEndpoint(_contextNetworkId ?? KnownNetworkIdentifiers.LocalhostNetwork, out var allocatedEndpoint)
374
var allocatedEndpoint = await Endpoint.EndpointAnnotation.
AllAllocatedEndpoints
.GetAllocatedEndpointAsync(networkContext, cancellationToken).ConfigureAwait(false);
Dcp\ContainerCreator.cs (1)
672
.Select(e => e.
AllAllocatedEndpoints
.GetAllocatedEndpointAsync(KnownNetworkIdentifiers.DefaultAspireContainerNetwork, cToken))
Dcp\DcpModelUtilities.cs (3)
243
sp.EndpointAnnotation.
AllAllocatedEndpoints
.AddOrUpdateAllocatedEndpoint(allocatedEndpoint.NetworkID, allocatedEndpoint);
264
sp.EndpointAnnotation.
AllAllocatedEndpoints
.AddOrUpdateAllocatedEndpoint(KnownNetworkIdentifiers.DefaultAspireContainerNetwork, allocatedEndpoint);
331
endpoint.
AllAllocatedEndpoints
.AddOrUpdateAllocatedEndpoint(networkId, tunnelAllocatedEndpoint);
Aspire.Hosting.Azure.Tests (1)
AzurePostgresExtensionsTests.cs (1)
374
e.
AllAllocatedEndpoints
.AddOrUpdateAllocatedEndpoint(KnownNetworkIdentifiers.DefaultAspireContainerNetwork, new AllocatedEndpoint(e, "postgres.dev.internal", 5432, EndpointBindingMode.SingleAddress, targetPortExpression: null, networkId: KnownNetworkIdentifiers.DefaultAspireContainerNetwork));
Aspire.Hosting.Containers.Tests (2)
ContainerResourceTests.cs (2)
105
e.
AllAllocatedEndpoints
.AddOrUpdateAllocatedEndpoint(KnownNetworkIdentifiers.DefaultAspireContainerNetwork, new AllocatedEndpoint(e, "c1.dev.internal", 2234, EndpointBindingMode.SingleAddress, targetPortExpression: "2234", KnownNetworkIdentifiers.DefaultAspireContainerNetwork));
113
e.
AllAllocatedEndpoints
.AddOrUpdateAllocatedEndpoint(KnownNetworkIdentifiers.DefaultAspireContainerNetwork, new AllocatedEndpoint(e, "container.dev.internal", 5678, EndpointBindingMode.SingleAddress, targetPortExpression: "5678", KnownNetworkIdentifiers.DefaultAspireContainerNetwork));
Aspire.Hosting.DevTunnels (1)
DevTunnelResourceBuilderExtensions.cs (1)
875
var isAllocated = endpoint.EndpointAnnotation.
AllAllocatedEndpoints
.Any(
Aspire.Hosting.DevTunnels.Tests (1)
DevTunnelResourceBuilderExtensionsTests.cs (1)
552
targetEndpoint.EndpointAnnotation.
AllAllocatedEndpoints
.AddOrUpdateAllocatedEndpoint(
Aspire.Hosting.JavaScript.Tests (1)
AddNodeAppTests.cs (1)
569
e.
AllAllocatedEndpoints
.AddOrUpdateAllocatedEndpoint(KnownNetworkIdentifiers.DefaultAspireContainerNetwork, new AllocatedEndpoint(e, "nodeapp.dev.internal", 5031, EndpointBindingMode.SingleAddress, targetPortExpression: null, networkId: KnownNetworkIdentifiers.DefaultAspireContainerNetwork));
Aspire.Hosting.Milvus.Tests (1)
AddMilvusTests.cs (1)
102
e.
AllAllocatedEndpoints
.AddOrUpdateAllocatedEndpoint(KnownNetworkIdentifiers.DefaultAspireContainerNetwork, new AllocatedEndpoint(e, "my-milvus.dev.internal", MilvusPortGrpc, EndpointBindingMode.SingleAddress, targetPortExpression: null, networkId: KnownNetworkIdentifiers.DefaultAspireContainerNetwork));
Aspire.Hosting.PostgreSQL.Tests (2)
AddPostgresTests.cs (1)
198
e.
AllAllocatedEndpoints
.AddOrUpdateAllocatedEndpoint(KnownNetworkIdentifiers.DefaultAspireContainerNetwork, new AllocatedEndpoint(e, "postgres.dev.internal", 2000, EndpointBindingMode.SingleAddress, targetPortExpression: null, networkId: KnownNetworkIdentifiers.DefaultAspireContainerNetwork));
PostgresMcpBuilderTests.cs (1)
81
e.
AllAllocatedEndpoints
.AddOrUpdateAllocatedEndpoint(KnownNetworkIdentifiers.DefaultAspireContainerNetwork, new AllocatedEndpoint(e, "postgres.dev.internal", 5432, EndpointBindingMode.SingleAddress, targetPortExpression: null, networkId: KnownNetworkIdentifiers.DefaultAspireContainerNetwork));
Aspire.Hosting.Qdrant.Tests (4)
AddQdrantTests.cs (4)
182
e.
AllAllocatedEndpoints
.AddOrUpdateAllocatedEndpoint(KnownNetworkIdentifiers.DefaultAspireContainerNetwork, new AllocatedEndpoint(e, "my-qdrant.dev.internal", 6334, EndpointBindingMode.SingleAddress, targetPortExpression: null, networkId: KnownNetworkIdentifiers.DefaultAspireContainerNetwork));
187
e.
AllAllocatedEndpoints
.AddOrUpdateAllocatedEndpoint(KnownNetworkIdentifiers.DefaultAspireContainerNetwork, new AllocatedEndpoint(e, "my-qdrant.dev.internal", 6333, EndpointBindingMode.SingleAddress, targetPortExpression: null, networkId: KnownNetworkIdentifiers.DefaultAspireContainerNetwork));
226
e.
AllAllocatedEndpoints
.AddOrUpdateAllocatedEndpoint(KnownNetworkIdentifiers.DefaultAspireContainerNetwork, new AllocatedEndpoint(e, "my-qdrant.dev.internal", 6334, EndpointBindingMode.SingleAddress, targetPortExpression: null, networkId: KnownNetworkIdentifiers.DefaultAspireContainerNetwork));
231
e.
AllAllocatedEndpoints
.AddOrUpdateAllocatedEndpoint(KnownNetworkIdentifiers.DefaultAspireContainerNetwork, new AllocatedEndpoint(e, "my-qdrant.dev.internal", 6333, EndpointBindingMode.SingleAddress, targetPortExpression: null, networkId: KnownNetworkIdentifiers.DefaultAspireContainerNetwork));
Aspire.Hosting.Redis.Tests (4)
AddRedisTests.cs (4)
282
e.
AllAllocatedEndpoints
.AddOrUpdateAllocatedEndpoint(KnownNetworkIdentifiers.DefaultAspireContainerNetwork, new AllocatedEndpoint(e, "myredis1.dev.internal", 5001, EndpointBindingMode.SingleAddress, targetPortExpression: null, networkId: KnownNetworkIdentifiers.DefaultAspireContainerNetwork));
287
e.
AllAllocatedEndpoints
.AddOrUpdateAllocatedEndpoint(KnownNetworkIdentifiers.DefaultAspireContainerNetwork, new AllocatedEndpoint(e, "myredis2.dev.internal", 5002, EndpointBindingMode.SingleAddress, targetPortExpression: null, networkId: KnownNetworkIdentifiers.DefaultAspireContainerNetwork));
292
e.
AllAllocatedEndpoints
.AddOrUpdateAllocatedEndpoint(KnownNetworkIdentifiers.DefaultAspireContainerNetwork, new AllocatedEndpoint(e, "myredis3.dev.internal", 5003, EndpointBindingMode.SingleAddress, targetPortExpression: null, networkId: KnownNetworkIdentifiers.DefaultAspireContainerNetwork));
761
e.
AllAllocatedEndpoints
.AddOrUpdateAllocatedEndpoint(KnownNetworkIdentifiers.DefaultAspireContainerNetwork, new AllocatedEndpoint(e, "redis.dev.internal", 6379, EndpointBindingMode.SingleAddress, targetPortExpression: null, networkId: KnownNetworkIdentifiers.DefaultAspireContainerNetwork));
Aspire.Hosting.Tests (12)
ApplicationModel\EndpointHostHelpersTests.cs (1)
248
ep.
AllAllocatedEndpoints
.AddOrUpdateAllocatedEndpoint(
Dcp\DcpExecutorTests.cs (2)
8915
var allocatedEndpoints = endpoint.
AllAllocatedEndpoints
;
8919
var allocatedEndpoint = await endpoint.
AllAllocatedEndpoints
.Single(x => x.NetworkID == network).Snapshot.GetValueAsync().DefaultTimeout();
DistributedApplicationTests.cs (1)
1701
var allocatedEndpointSnapshot = Assert.Single(endpoint.EndpointAnnotation.
AllAllocatedEndpoints
);
EndpointReferenceTests.cs (2)
350
annotation.
AllAllocatedEndpoints
.AddOrUpdateAllocatedEndpoint(KnownNetworkIdentifiers.DefaultAspireContainerNetwork, containerEndpoint);
401
annotation.
AllAllocatedEndpoints
.AddOrUpdateAllocatedEndpoint(KnownNetworkIdentifiers.LocalhostNetwork, allocatedEndpoint);
ExpressionResolverTests.cs (4)
100
e.
AllAllocatedEndpoints
.AddOrUpdateAllocatedEndpoint(KnownNetworkIdentifiers.DefaultAspireContainerNetwork, new AllocatedEndpoint(e, containerHost, 22345, EndpointBindingMode.SingleAddress, targetPortExpression: "22345", KnownNetworkIdentifiers.DefaultAspireContainerNetwork));
109
e.
AllAllocatedEndpoints
.AddOrUpdateAllocatedEndpoint(KnownNetworkIdentifiers.DefaultAspireContainerNetwork, new AllocatedEndpoint(e, containerHost, 22346, EndpointBindingMode.SingleAddress, targetPortExpression: "22346", KnownNetworkIdentifiers.DefaultAspireContainerNetwork));
118
e.
AllAllocatedEndpoints
.AddOrUpdateAllocatedEndpoint(KnownNetworkIdentifiers.DefaultAspireContainerNetwork, new AllocatedEndpoint(e, containerHost, 22347, EndpointBindingMode.SingleAddress, targetPortExpression: "22347", KnownNetworkIdentifiers.DefaultAspireContainerNetwork));
199
nonHostEndpoint.
AllAllocatedEndpoints
.AddOrUpdateAllocatedEndpoint(
WithEnvironmentTests.cs (2)
233
ep.
AllAllocatedEndpoints
.AddOrUpdateAllocatedEndpoint(KnownNetworkIdentifiers.DefaultAspireContainerNetwork, new AllocatedEndpoint(ep, "container1.dev.internal", 10005, EndpointBindingMode.SingleAddress, networkId: KnownNetworkIdentifiers.DefaultAspireContainerNetwork));
308
ep.
AllAllocatedEndpoints
.AddOrUpdateAllocatedEndpoint(KnownNetworkIdentifiers.DefaultAspireContainerNetwork, new AllocatedEndpoint(