17 references to SetPort
Aspire.Hosting (2)
Dcp\PersistentPortAllocator.cs (2)
58_store.SetPort(key, allocatedPort); 177_store.SetPort(key, legacyPort);
Aspire.Hosting.Tests (15)
Dcp\AppHostLocalStateStoreTests.cs (11)
27firstStore.SetPort(firstKey, 12001); 28secondStore.SetPort(secondKey, 12002); 53store.SetPort(new PersistentPortAllocationKey("Program", "HTTP"), 12001); 58store.SetPort(equivalentKey, 12002); 82portAllocationStore.SetPort(new PersistentPortAllocationKey("first", "http"), 12001); 92portAllocationStore.SetPort(new PersistentPortAllocationKey("second", "http"), 12002); 116portAllocationStore.SetPort(new PersistentPortAllocationKey("first", "http"), 12001); 141portAllocationStore.SetPort(new PersistentPortAllocationKey("first", "http"), 12001); 171CreatePortAllocationStore(directLaunchConfiguration).SetPort(key, 12001); 187initialStore.SetPort(firstKey, 12001); 207portAllocationStore.SetPort(secondKey, 12002);
Dcp\DcpExecutorTests.cs (4)
1972CreatePersistentPortAllocationStore(configuration).SetPort(storedPortKey, persistedPort); 2019CreatePersistentPortAllocationStore(configuration).SetPort(portKey, persistedPort); 2071store.SetPort(portKey, persistedPort); 2122CreatePersistentPortAllocationStore(configuration).SetPort(