Intel(R) SuperBuilder

InteropHelpersGetProcessIdFromListeningPort Method

Get the process id of the process that is listening on the given port.

Definition

Namespace: SuperBuilderWinService.Utils
Assembly: IntelAiaService (in IntelAiaService.exe) Version: 1.0.0+e5af843a4e6a75a047681ce8b5d33ceb3660e546
C#
public static int? GetProcessIdFromListeningPort(
	int port,
	ILogger? logger = null
)

Parameters

port  Int32
port number
logger  ILogger  (Optional)
logger

Return Value

NullableInt32
process id or null if no process is listening on the port

See Also