문제

I have an application that runs in an application pool that has muliple worker processes.

I need to access the process id in the controller to check some issues I have since I changed the application pool to use multiple worker processes.

도움이 되었습니까?

해결책

This gets the process id

System.Diagnostics.Process.GetCurrentProcess().Id
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top