9 references to TryAdd
Aspire.Hosting (3)
ApplicationModel\EndpointAnnotation.cs (1)
104AllAllocatedEndpoints.TryAdd(_networkID, AllocatedEndpointSnapshot);
ApplicationModel\EndpointReference.cs (1)
313if (!endpointSnapshots.TryAdd(networkContext, nes.Snapshot))
Dcp\DcpExecutor.cs (1)
1001endpoint.AllAllocatedEndpoints.TryAdd(networkID, snapshot);
Aspire.Hosting.Containers.Tests (2)
ContainerResourceTests.cs (2)
108e.AllAllocatedEndpoints.TryAdd(KnownNetworkIdentifiers.DefaultAspireContainerNetwork, snapshot); 119e.AllAllocatedEndpoints.TryAdd(KnownNetworkIdentifiers.DefaultAspireContainerNetwork, snapshot);
Aspire.Hosting.Tests (4)
ExpressionResolverTests.cs (3)
98e.AllAllocatedEndpoints.TryAdd(KnownNetworkIdentifiers.DefaultAspireContainerNetwork, snapshot); 110e.AllAllocatedEndpoints.TryAdd(KnownNetworkIdentifiers.DefaultAspireContainerNetwork, snapshot); 122e.AllAllocatedEndpoints.TryAdd(KnownNetworkIdentifiers.DefaultAspireContainerNetwork, snapshot);
WithEnvironmentTests.cs (1)
313ep.AllAllocatedEndpoints.TryAdd(KnownNetworkIdentifiers.DefaultAspireContainerNetwork, endpointSnapshot);