Orchard source code analysis (5): Host-related (orchard. environment. defaultorchardhost class)

Source: Internet
Author: User
Overview Host is an applicationProgramThe domain-level Singleton represents the orchard application. It processes initialization, beginrequest, and endrequest events in the application lifecycle. It can be simply understood that the functions of httpapplication are transferred to the host. From the source code perspective, the host corresponds to the defaultorchardhost class that implements the iorchardhost interface. Review the previous analysis of the orchard. Web. mvcapplication class. When orchard is started, a defaultorchardhost object will be created:


The content of the defaultorchardhost class is quite complex, so it is expressed in several independent sections. 1. Host Initialization For more information, see orchard source code analysis (5.1): Host initialization (defaultorchardhost. initialize method). 2. beginrequest event handling For details, see orchard source code analysis (5.2): beginrequest event processing (Defaultorchardhost . Beginrequest method) Iii. endrequest event processing For details, see orchard source code analysis (5.3): endrequest event processing ( Defaultorchardhost . Endrequest method) Related types: Orchard. environment. defaultorchardhost: iorchardhost Orchard. Web. mvcapplication: httpapplication orchard. environment. orchardstarter Reference: How orchard works

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.