コード例 #1
0
        private static IServiceLocator BuildLocator()
        {
            var container = new UnityContainer();

            container.RegisterComponents(typeof(IFoo).Assembly);

            return new UnityServiceLocator(container);
        }