ASP.NET Core Application Lifecycle

依然范特西╮ 提交于 2019-12-04 07:46:13

问题


Is there any current "ASP.NET Core" document(s) about the life cycle? I would like to be able to tie into the life cycle at the right points.

Is it similar to the existing ASP.NET MVC 5 life cycle?

http://www-asp.azureedge.net/v-2016-09-01-001/media/4773381/lifecycle-of-an-aspnet-mvc-5-application.pdf


回答1:


Here are few links I found related to ASP.NET Core lifecycle though this is not complete description and I'm searching for more. ASP.NET Core apps are console apps running on Kestrel so you can assume there are significant differences to what @mybirthname posted and it relates to ASP.NET 5 (and below).

https://docs.microsoft.com/en-us/aspnet/core/fundamentals/startup

https://docs.microsoft.com/en-us/aspnet/core/fundamentals/middleware

http://developer.telerik.com/featured/understanding-asp-net-core-initialization/

I'd suggest going through all the docs within Core docs Fundamentals section.




回答2:


If you have membership of Pluralsight, Alex Wolf has great course on it, He also had same course for previous versions of MVC so if you watch both in order it will give you really good understanding of how Request Life Cycle was working in MVC 5 and before and how it works now with MVC Core and what's difference between both.

Pluralsight also offers 7 days free trial membership if you want to try it out.

MVC 5 and before: The MVC Request Life Cycle

MVC Core: ASP.NET Core: The MVC Request Life Cycle

Hope it helps.



来源:https://stackoverflow.com/questions/39800616/asp-net-core-application-lifecycle

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!