TestClusterNetworkHelper.GetRandomAvailableServerPorts Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Returns two ports which are not currently in use by any TCP listeners.
public static (int siloPort, int gatewayPort) GetRandomAvailableServerPorts ();
static member GetRandomAvailableServerPorts : unit -> ValueTuple<int, int>
Public Shared Function GetRandomAvailableServerPorts () As ValueTuple(Of Integer, Integer)