20 references to AddOrUpdateAllocatedEndpoint
Aspire.Hosting (2)
Dcp\DcpExecutor.cs (2)
997
sp.EndpointAnnotation.AllAllocatedEndpoints.
AddOrUpdateAllocatedEndpoint
(allocatedEndpoint.NetworkID, allocatedEndpoint);
1057
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.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 (1)
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 (2)
AddQdrantTests.cs (2)
175
e.AllAllocatedEndpoints.
AddOrUpdateAllocatedEndpoint
(KnownNetworkIdentifiers.DefaultAspireContainerNetwork, new AllocatedEndpoint(e, "my-qdrant.dev.internal", 6334, EndpointBindingMode.SingleAddress, targetPortExpression: null, networkID: KnownNetworkIdentifiers.DefaultAspireContainerNetwork));
180
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)
307
e.AllAllocatedEndpoints.
AddOrUpdateAllocatedEndpoint
(KnownNetworkIdentifiers.DefaultAspireContainerNetwork, new AllocatedEndpoint(e, "myredis1.dev.internal", 5001, EndpointBindingMode.SingleAddress, targetPortExpression: null, networkID: KnownNetworkIdentifiers.DefaultAspireContainerNetwork));
312
e.AllAllocatedEndpoints.
AddOrUpdateAllocatedEndpoint
(KnownNetworkIdentifiers.DefaultAspireContainerNetwork, new AllocatedEndpoint(e, "myredis2.dev.internal", 5002, EndpointBindingMode.SingleAddress, targetPortExpression: null, networkID: KnownNetworkIdentifiers.DefaultAspireContainerNetwork));
317
e.AllAllocatedEndpoints.
AddOrUpdateAllocatedEndpoint
(KnownNetworkIdentifiers.DefaultAspireContainerNetwork, new AllocatedEndpoint(e, "myredis3.dev.internal", 5003, EndpointBindingMode.SingleAddress, targetPortExpression: null, networkID: KnownNetworkIdentifiers.DefaultAspireContainerNetwork));
731
e.AllAllocatedEndpoints.
AddOrUpdateAllocatedEndpoint
(KnownNetworkIdentifiers.DefaultAspireContainerNetwork, new AllocatedEndpoint(e, "redis.dev.internal", 6379, EndpointBindingMode.SingleAddress, targetPortExpression: null, networkID: KnownNetworkIdentifiers.DefaultAspireContainerNetwork));
Aspire.Hosting.Tests (7)
EndpointReferenceTests.cs (2)
349
annotation.AllAllocatedEndpoints.
AddOrUpdateAllocatedEndpoint
(KnownNetworkIdentifiers.DefaultAspireContainerNetwork, containerEndpoint);
400
annotation.AllAllocatedEndpoints.
AddOrUpdateAllocatedEndpoint
(KnownNetworkIdentifiers.LocalhostNetwork, allocatedEndpoint);
ExpressionResolverTests.cs (3)
99
e.AllAllocatedEndpoints.
AddOrUpdateAllocatedEndpoint
(KnownNetworkIdentifiers.DefaultAspireContainerNetwork, new AllocatedEndpoint(e, containerHost, 22345, EndpointBindingMode.SingleAddress, targetPortExpression: "22345", KnownNetworkIdentifiers.DefaultAspireContainerNetwork));
108
e.AllAllocatedEndpoints.
AddOrUpdateAllocatedEndpoint
(KnownNetworkIdentifiers.DefaultAspireContainerNetwork, new AllocatedEndpoint(e, containerHost, 22346, EndpointBindingMode.SingleAddress, targetPortExpression: "22346", KnownNetworkIdentifiers.DefaultAspireContainerNetwork));
117
e.AllAllocatedEndpoints.
AddOrUpdateAllocatedEndpoint
(KnownNetworkIdentifiers.DefaultAspireContainerNetwork, new AllocatedEndpoint(e, containerHost, 22347, EndpointBindingMode.SingleAddress, targetPortExpression: "22347", KnownNetworkIdentifiers.DefaultAspireContainerNetwork));
WithEnvironmentTests.cs (2)
232
ep.AllAllocatedEndpoints.
AddOrUpdateAllocatedEndpoint
(KnownNetworkIdentifiers.DefaultAspireContainerNetwork, new AllocatedEndpoint(ep, "container1.dev.internal", 10005, EndpointBindingMode.SingleAddress, networkID: KnownNetworkIdentifiers.DefaultAspireContainerNetwork));
307
ep.AllAllocatedEndpoints.
AddOrUpdateAllocatedEndpoint
(KnownNetworkIdentifiers.DefaultAspireContainerNetwork, new AllocatedEndpoint(