4 references to TryReservePort
Aspire.Hosting (1)
Dcp\PersistentPortAllocator.cs (1)
190return _allocator.TryReservePort(
Aspire.Hosting.Tests (3)
Dcp\ProxylessEndpointPortAllocatorTests.cs (3)
118Assert.True(allocator.TryReservePort(10000, ProtocolType.Tcp)); 132Assert.False(allocator.TryReservePort(10000, ProtocolType.Tcp)); 147Assert.True(allocator.TryReservePort(10001, ProtocolType.Tcp));