简体   繁体   English

ASP.NET中的机器是什么?

[英]what is machine in asp.net?

I was reading "professional asp.net 4.0 in C# and vb.net" and I saw this satement: 我正在阅读“ C#和vb.net中的专业asp.net 4.0”,并且看到了以下内容:

The Application object is not global to the machine; Application对象对于计算机而言不是全局的。 it is global to the HttpApplication . 它对HttpApplication是全局的。

I don't know, what is machine in this statement?! 我不知道,这句话中的机器是什么? What does machine mean?! 机器是什么意思?

Machine is the server, that the process hosting the ASP.NET process, is running on. 机器是运行ASP.NET进程的服务器。

Usually, but not always this is IIS. 通常但并非总是这是IIS。 But it could be any code that hosts the ASP.NET runtime - like cassini (an open source webserver provided in VS2008+ and now an open source project in it's own right ). 但这可以是承载ASP.NET运行时的任何代码,例如cassini (VS2008 +中提供的开源Web服务器,现在就拥有一个开源项目 )。

Anyway this means that if you have two hosting processes (using the above critera) then the Application object is not shared by both these processes. 无论如何,这意味着如果您有两个托管进程(使用上面的critera),则这两个进程不会共享Application对象。 There will be a single Application object in each of those processes. 在每个进程中将只有一个Application对象。

This is one of my favourite articles about the ASP.NET and the HTTP pipeline . 这是我最喜欢的有关ASP.NET和HTTP管道的文章之一。 It presents lots of background information to how ASP.net hangs togeher, I think you might find useful. 它提供了许多有关ASP.net如何挂在一起的背景信息,我认为您可能会觉得有用。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM