IPortAllocator
Interfacenet10.0
Provides port allocation functionality for resources.
namespace Aspire.Hosting.ApplicationModel;
public interface IPortAllocator{ // ...}Methods2
Section titled MethodsAddUsedPort(int)abstract Marks a port as used to prevent it from being allocated.