我能得到一个工作进程的进程ID在Web应用程序? [英] Can I get the Process ID of a worker process in a web application?
本文介绍了我能得到一个工作进程的进程ID在Web应用程序?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有在有muliple工作进程的应用程序池中运行的应用程序。
I have an application that runs in an application pool that has muliple worker processes.
我需要访问的进程ID控制器检查一些问题,因为我有我改变了应用程序池使用多个工作进程。
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.
推荐答案
这得到进程id
System.Diagnostics.Process.GetCurrentProcess().Id
这篇关于我能得到一个工作进程的进程ID在Web应用程序?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文