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...