Unity of the IOC container

Source: Internet
Author: User

For the IOC, unity see Bo Friends article click here.

Words do not say much, on the procedure hellounity, the procedure uses vs2010,unity2.1.

1. The program framework is as follows

2. Class library hellounity.objects, primarily entity classes, are used to create.

3. Class Library HELLOUNITY.IOC, including parser production plant, parser Interface, Static Class Iochelper for us to create an object instance.

4. Class library hellounity.unity, mainly including UnityDependencyResolver.cs, resolves classes for Unity IOC containers, Referencing Microsoft.Practices.Unity and Microsoft.Practices.Unity.Configuration, this class will create the Unity parser through the parser factory for Iochelper invocation. The bootstrapper class is used to initialize unity.

5. Console application Hellounity.console, for output.

6. Configuration file This program is mapped by configuration file.

Code download

Unity of the IOC container

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.