Skip to content

TestClusterPortAllocator Methods

Default ITestClusterPortAllocator implementation, which tries to allocate unused ports.

AllocateConsecutivePortPairs(int)

View source
public (int, int) TestClusterPortAllocator.AllocateConsecutivePortPairs(int numPorts = 5)
Allocates consecutive port pairs.

Parameters

numPortsint
The number of consecutive ports to allocate.

Returns

Base ports for silo and gateway endpoints.

Dispose(bool)

virtual
View source
protected virtual void Dispose(bool disposing)
Releases unmanaged and - optionally - managed resources.

Parameters

disposingbool
true to release both managed and unmanaged resources; false to release only unmanaged resources.

Dispose

View source
public void Dispose()
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.