11

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.

Mathias F
  • 15,906
  • 22
  • 89
  • 159

1 Answers1

20

This gets the process id

System.Diagnostics.Process.GetCurrentProcess().Id
Mathias F
  • 15,906
  • 22
  • 89
  • 159