当前位置:网站首页>Sample chapter of "uncover the secrets of asp.net core 6 framework" [200 pages /5 chapters]

Sample chapter of "uncover the secrets of asp.net core 6 framework" [200 pages /5 chapters]

2022-07-07 12:54:00 Artech

As 《ASP.NET Core 3 The framework reveals 》 Upgraded version ,《ASP.NET Core 6 The framework reveals 》 Not only for ASP.NET Core 6 Has been revised , And added some contents that were not originally included . about ASP.NET Core Frame speaking , The core is the construction of middleware pipeline , This is also 《ASP.NET Core 6 The framework reveals 》 The core content , Now this part is close to 200 The content of the page is published as a sample chapter , I hope it can help you better understand ASP.NET Core The nature of the frame . Scan the QR code below and download or read it through Baidu online disk , Other download or reading channels : Baidu SkyDrive OneDrive( You can browse directly ) Blog Garden  

The first 1 Chapter Programming experience

Although the readers of this book are mostly .NET Core The developer of the , about .NET Core And ASP.NET Core The basic programming mode of is also very familiar , But when we upgrade to .NET 6, Many things have changed . Many features have been added , Some existing programming methods have also been improved , Some are even no longer recommended . In especial ASP.NET Core 6 To launch the Minimal API Application hosting makes the program extremely simple , Therefore, all demonstration examples in this book will adopt this programming mode . This chapter provides 20 A minimalist example , They can help readers understand ASP.NET Core Have a general understanding of the basic programming mode of .

The first 14 Chapter Service bearing

With the help of .NET The services provided bear (Hosting) System , We can host or host one or more long-running background services in the created application . Any operation that needs to run in the background for a long time can be defined as a standardized service and carried by the system ,ASP.NET Finally, the application is also embodied as such a bearer service . This chapter mainly introduces “ generalization ” Service bearer system , It won't involve anything about ASP.NET The content of .

The first 15 Chapter Application hosting ( Part 1 )

ASP.NET Core It's a Web Development platform , Instead of a simple development framework . This is because ASP.NET Core Designed to provide a highly extensible request processing pipeline . We can use the customization of pipeline to build a development framework with different programming modes . Because this part is the core of this book , So it's divided into 3 Chapter ( The first 15~17 Chapter ) Give a comprehensive introduction to the request processing pipeline .

The first 16 Chapter Application hosting ( medium-length )

“ The first 15 Chapter   Application hosting ( On )” A series of examples are used to demonstrate ASP.NET Core Applied programming mode , And take this to experience the pipeline based request processing process . This pipeline is composed of a server and a number of ordered middleware , It seems simple , Many details are actually hidden . Set the pipe to ASP.NET Core The status of the framework cannot be raised too high , In order to make readers have a deep understanding of this , Before introducing the construction of real pipelines , Let's introduce a Mini Version of ASP.NET Core frame .

The first 17 Chapter Application hosting ( The next part )

stay “ The first 16 Chapter   Application hosting ( in )” in , We simulated with very little code ASP.NET Core Implementation of framework , This is equivalent to building a “ skeleton ”, Now we will leave the rest “ muscles ” Fill up , Restore a complete framework . This chapter mainly introduces the construction process of real pipelines and the principle of application bearing , as well as Minimal API Behind the scenes “ The story “.

原网站

版权声明
本文为[Artech]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/188/202207071038554489.html