阅读背景:

如何确定.NET代码是否在ASP.NET进程中运行?

来源:互联网 

I have an instance of a general purpose class that will be executed both under ASP.NET and a stand alone program. This code is sensative to the process where it is being run - that is, there are certin methods that should not called if running under ASP.NET. How do you determine if the code is executing in an ASP.NET process?I have an instance of a general purpose class t




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: