Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

What is the knowledge of the operating mechanism of .NET Framework?

2025-04-04 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

Shulou(Shulou.com)06/02 Report--

This article shows you what is the knowledge of the operating mechanism of NET Framework, the content is concise and easy to understand, it will definitely brighten your eyes. I hope you can get something through the detailed introduction of this article.

Seriously learning and mastering the operating mechanism of .NET Framework is beneficial to our actual development. Here we will give a detailed introduction to the operating mechanism of the .NET Framework, hoping to help you and improve your understanding of the .NET Framework.

I remember some time ago there was a good book called Delphi Deep Adventures, which was well written, so I borrowed it for the time being.

I'm not going to briefly introduce the basic knowledge of ASP.NET here. ASP.NET has changed completely except that its name is the same as the old ASP, although you can still find your familiar Session,Application in ASP.NET and so on.

But don't try to equate them with ancient ASP Session and so on.

Let's slowly delve into the core of ASP.NET Framework, see how she implements it, and see how she can assume the reputation of the next generation of Web development technology platform.

This article has never thought about how many chapters to complete, nor is it necessary. Quan exists in the form of a diary, maybe very short or very long, and I will try my best to show you the .NET Framework operation mechanism.

If you don't know anything about ASP.NET Framework, you can also become a master of ASP.NET coding, and if so, you don't have to watch it any more.

Chapter One-- Process a http request.

Let's take a look. NET Framework operating mechanism and architecture.

Before we begin, let's take a look at the ancient ASP operating mechanism with the archaeologists:

When you request a * .asp file, the http request is first intercepted by the inetinfo.exe process, the inetinfo.exe process is the WWW service process, and then she transfers the request to the asp.dll process, and the asp.dll process interprets and executes the asp leaf, and then returns the interpreted data flow to the client browser.

Let's turn around and take a look at how today's. NET Framework operating mechanism deals with a http request.

When you request a * .aspx file, the same http request will be intercepted by the inetinfo.exe process. After she determines the suffix of the file, she transfers the request to ASPNET_ISAPI.dll,ASPNET_ISAPI.dll and sends the request to the ASPNET_WP.exe process through a pipeline called Http PipeLine. When the http request enters the ASPNET_WP.exe process, it will process the request through HttpRuntime, and return the result to the client after processing.

OK, there doesn't seem to be much improvement, don't worry, we can even learn the details of HttpRuntime in ASP.NET Framework. All right, let's go further:

When Http Request enters the HttpRuntime, she continues to enter a Container called HttpApplication Factory, and she gives a HttpApplication to handle the incoming request, which in turn enters the following Container:

HttpModule- > HttpHandler Factory- > HttpHandler.

When the ProcessResquest method of the HttpHandler inside the system is processed, the whole Http Request is completed and the client gets the corresponding thing.

Sort out how ASP.NET Framework handles a Http Request:

HttpRequest-- > inetinfo.exe-- > ASPNET_ISAPI.dll-- > Http Pipeline-- > ASPNET_WP.exe-- > HttpRuntime-- > HttpApplication Factory-- > HttpApplication-- > HttpModule-- > HttpHandler Factory-- > HttpHandler-- > HttpHandler.ProcessRequest ()

What is the above knowledge about the operating mechanism of .NET Framework? have you learned any knowledge or skills? If you want to learn more skills or enrich your knowledge reserve, you are welcome to follow the industry information channel.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Development

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report