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