DefaultPortSelector
- Namespace: SuCoS.Commands.Serve
- Source File: DefaultPortSelector.cs
Default implementation of port selection
Public Methods
SelectAvailablePort
public int SelectAvailablePort(string baseUrl, int initialPort, int maxTries)
Check if a given port is available, if not, search for another available.
Parameters:
baseUrl(string)initialPort(int)maxTries(int)
Returns: int