初识ASP.NET CORE:一、HTTP pipeline

完整的http请求在asp.net framework中的处理流程:

 1 Asp.Net
 2 HttpRequest-->
 3 HTTP.exe-->
 4 inetinfo.exe(w3wp.exe)->
 5 ASPNET_ISAPI.DLL-->
 6 Http Pipeline-->ASPNET_WP.EXE-->
 7 HttpRuntime.Init-->
 8 HttpRuntime.ProcessRequest-->
 9 ISAPIRuntime.ProcessRequest-->
10 HttpApplication Factory-->HttpApplication-->
11 HttpModule-->
12 HttpHandler Factory-->HttpHandler-->
13 HttpHandler.ProcessRequest() 
14 BeginRequest
15 AuthenticateRequest,PostAuthenticateRequest
16 AuthorizeRequest,PostAuthorizeRequest
17 ResolveRequestCache,PostResolveRequestCache
18 PostMapRequestHandler
19 AcquireRequestState,PostAcquireRequestState
20 PreRequestHandlerExecute,PostRequestHandlerExecute
21 ReleaseRequestState,PostReleaseRequestState
22 UpdateRequestCache,PostUpdateRequestCache
23 LogRequest,PostLogRequest
24 EndRequest

Asp.Net

 1 Asp.Net MVC
 2 HttpRequest-->
 3 HTTP.exe-->
 4 inetinfo.exe(w3wp.exe)->
 5 ASPNET_ISAPI.DLL-->
 6 Http Pipeline-->
 7 HttpRuntime.Init-->
 8 HttpRuntime.ProcessRequest-->
 9 ISAPIRuntime.ProcessRequest-->
10 BeginRequest
11 AuthenticateRequest,PostAuthenticateRequest
12 AuthorizeRequest,PostAuthorizeRequest
13 ResolveRequestCache,PostResolveRequestCache
14 MvcHandler
15 AcquireRequestState,PostAcquireRequestState
16 Controllor,Action
17 View
18 EndRequest

Asp.Net MVC

 1 Asp.Net Core
 2 HttpRequest-->
 3 Server-->
 4 HttpApplication-->
 5 MiddleWare(s)(handle features in HttpContext)
 6 MiddleWare(s)(handle features in HttpContext)
 7 MiddleWare(s)(handle features in HttpContext)
 8 (error handling,static file server,authentication,Routing MVC)
 9 .
10 .
11 .

Asp.Net Core

时间: 2024-11-10 03:47:20

初识ASP.NET CORE:一、HTTP pipeline的相关文章

初识ASP.NET Core 1.0

本文将对微软下一代ASP.NET框架做个概括性介绍,方便大家进一步熟悉该框架. 在介绍ASP.NET Core 1.0之前有必要澄清一些产品名称及版本号.ASP.NET Core1.0是微软下一代ASP.NET 框架,在这之前ASP.NET版本稳定在ASP.NET  4.6,对应的.NET Framework版本为.net 4.6.1. 曾经一段时间微软将下一代ASP.NET 命名为ASP.NET 5和MVC 6,在ASP.NET 5 is dead – Introducing ASP.NET

初识ASP.NET CORE:二、优劣

Which one is right for me? ASP.NET is a mature web platform that provides all the services that you require to build enterprise-class server-based web applications using .NET on Windows. ASP.NET benefits Build for Windows Use Web Forms, SignalR, MVC,

初识ASP.NET CORE:三、Middleware

Middleware are simpler than HTTP modules and handlers:Modules, handlers, Global.asax.cs, Web.config (except for IIS configuration) and the application life cycle are goneThe roles of both modules and handlers have been taken over by middlewareMiddlew

ASP.NET Core文章汇总

现有Asp.Net Core 文章资料,2016 3-20月汇总如下 ASP.NET Core 1.0 与 .NET Core 1.0 基础概述 http://www.cnblogs.com/Irving/p/5146976.html 初识ASP.NET Core 1.0 http://www.cnblogs.com/richieyang/p/5281761.html ASP.NET Core 行军记 -----拔营启程 http://www.cnblogs.com/wupeng/p/52892

ASP.NET Core 3.0 入门

原文:ASP.NET Core 3.0 入门 课程简介 与2.x相比发生的一些变化,项目结构.Blazor.SignalR.gRPC等 课程预计结构 ASP.NET Core 3.0项目架构简介 ASP.NET Core MVC 简介 Blazor SignalR Web API gRPC 发布 一. 创建项目 dotnet core 本质上是控制台应用 1. DI 依赖注入(Dependency Injection) IoC 容器(Inversion of Control)控制反转 注册(服务

基于Jenkins Pipeline的ASP.NET Core持续集成实践

原文:基于Jenkins Pipeline的ASP.NET Core持续集成实践 最近在公司实践持续集成,使用到了Jenkins的Pipeline来提高团队基于ASP.NET Core API服务的集成与部署,因此这里总结一下. 一.关于持续集成与Jenkins Pipeline 1.1 持续集成相关概念 互联网软件的开发和发布,已经形成了一套标准流程,最重要的组成部分就是持续集成(Continuous integration,简称 CI) . 持续集成指的是,频繁地 (一天多次) 将代码集成到

ASP.NET Core 认证与授权[1]:初识认证

来源:https://www.cnblogs.com/RainingNight/p/introduce-basic-authentication-in-asp-net-core.html 在ASP.NET 4.X 中,我们最常用的是Forms认证,它既可以用于局域网环境,也可用于互联网环境,有着非常广泛的使用.但是它很难进行扩展,更无法与第三方认证集成,因此,在 ASP.NET Core 中对认证与授权进行了全新的设计,并使用基于声明的认证(claims-based authentication

ASP.NET Core中使用默认MVC路由

ASP.NET Core里Route这块的改动不大,只是一些用法上有了调整,提供了一些更加简洁的语法. 而对于自定义路由的支持当然也是没有问题的,这个功能应该是从MVC1.0版本就已经有这个功能. 先看看ASP.NET Core里面实现默认MVC路由的配置方式 通常情况下,在使用MVC项目的时候,默认的路由就足够了,就是常见的通过Controller和Action获取具体的方法的方式. 从一个最基本的项目开始,执行以下步骤,就可以使得项目支持MVC路由 1.创建一个空白的ASP.NET Core

ASP.NET Core: Getting Started with ASP.NET MVC Core(一)

1. ASP.NET Core the Unified Framework ASP.NET Core的统一框架 2. New Solution Project 新的解决方案项目 src folder: contains all projects that contain source code that make up your application. Program.cs: this file contains the Main method of an ASP.NET Core RC2 a