17 references to GetAllocations
Aspire.Hosting (1)
Dcp\PersistentPortAllocator.cs (1)
153foreach (var allocation in _store.GetAllocations())
Aspire.Hosting.Tests (16)
Dcp\AppHostLocalStateStoreTests.cs (7)
30var allocations = firstStore.GetAllocations(); 56Assert.Equal(12001, store.GetAllocations()[equivalentKey]); 60var allocation = Assert.Single(store.GetAllocations()); 156Assert.Empty(loggingPortAllocationStore.GetAllocations()); 173Assert.Equal(12001, CreatePortAllocationStore(cliLaunchConfiguration).GetAllocations()[key]); 203Assert.Empty(portAllocationStore.GetAllocations()); 209var allocations = CreatePortAllocationStore(configuration).GetAllocations();
Dcp\DcpExecutorTests.cs (9)
1725var allocations = CreatePersistentPortAllocationStore(configuration).GetAllocations(); 1769var allocations = CreatePersistentPortAllocationStore(configuration).GetAllocations(); 1965var allocations = CreatePersistentPortAllocationStore(configuration).GetAllocations(); 2018Assert.Equal(allocatedPort, CreatePersistentPortAllocationStore(configuration).GetAllocations()[portKey]); 2169Assert.Equal(allocatedPort, store.GetAllocations()[portKey]); 2262Assert.Empty(CreatePersistentPortAllocationStore(configuration).GetAllocations()); 2308var allocations = CreatePersistentPortAllocationStore(configuration).GetAllocations(); 2362Assert.Equal(allocatedPort, CreatePersistentPortAllocationStore(configuration).GetAllocations()[portKey]); 2408var allocations = CreatePersistentPortAllocationStore(configuration).GetAllocations();