Unity Adapter

The Unity Adapter for the CSM implements all the functionality that you need from the CSM. (doh) All you have to do is download the release from Downloads and reference the project. Your bootstrap routine will look like this:

var container = new UnityContainer();
IServiceLocator ServiceLocator = new UnityServiceLocator(container);
IServiceConfigurator ServiceConfigurator = new UnityServiceConfigurator(ServiceLocator);
That’s it! Now you’re ready to begin using the IServiceLocator and IServiceConfigurator without having the rest of your code reference the Unity binary.

Last edited Sep 2, 2010 at 8:13 PM by noopman, version 4


No comments yet.