C# Class Wix.SonarQube.TCPPortHelper

[TODO] Lookup for the next available port and return that to the caller.
Exibir arquivo Open project: SonarQubeCommunity/sonarqube-windows-installer

Public Methods

Method Description
EnablePortForFirewall ( string ruleName, int portNumber ) : bool

Creates rule in firewall settings to enable the port.

IsPortAvailable ( int portNumber ) : bool

Checks if the given port is free to use or not.

Method Details

EnablePortForFirewall() public static method

Creates rule in firewall settings to enable the port.
public static EnablePortForFirewall ( string ruleName, int portNumber ) : bool
ruleName string
portNumber int
return bool

IsPortAvailable() public static method

Checks if the given port is free to use or not.
public static IsPortAvailable ( int portNumber ) : bool
portNumber int
return bool