Oxite source code Learning Guide 1: Unity

Source: Internet
Author: User

Before learning oxite, we recommend that you first understand unity or other IOC frameworks. Otherwise, you can seeCodeMay be confused.

In Enterprise Library 4.0, Microsoft adds a dependency injection container. Microsoft gives it a name.Unity. Unity is a lightweight and scalable dependency injection container developed by the Microsoft mode and practice team. The official homepage is: http://www.codeplex.com/unity.Source code. You can refer to the dependency injection container unity Application Block Quick Start article.ArticleYou can also search for related articles in the garden. Here, we will not introduce unity much. There are many such articles in the blog garden.

 

In oxiteapplication, an instance of containerfactory is instantiated to use containers for injection. Note that the preceding constructor has two constructor functions. The default non-argument constructor calls the constructor with the containerfactory parameter to instantiate containerfactory.

Obviously, in containerfactory, unity is used for some injection work:

 

Amount ~~~ Cool, sleep...

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.