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+2093811f3bac5da092b5ce9c8172233582eee4d5
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