9 references to AllocatePort
Aspire.Hosting (2)
Dcp\PersistentPortAllocator.cs (2)
54var allocatedPort = _allocator.AllocatePort(protocol); 70return _allocator.AllocatePort(protocol);
Aspire.Hosting.Tests (7)
Dcp\ProxylessEndpointPortAllocatorTests.cs (7)
95Assert.Equal(10000, allocator.AllocatePort(ProtocolType.Tcp)); 96Assert.Equal(10001, allocator.AllocatePort(ProtocolType.Tcp)); 119Assert.Equal(10001, otherAllocator.AllocatePort(ProtocolType.Tcp)); 133Assert.Equal(10001, allocator.AllocatePort(ProtocolType.Tcp)); 146Assert.Equal(10000, allocator.AllocatePort(ProtocolType.Tcp)); 148Assert.Equal(10002, allocator.AllocatePort(ProtocolType.Tcp)); 197Assert.Equal(10001, first.AllocatePort(ProtocolType.Tcp));