Exemplo n.º 1
0
        private static void DoneWithUnity(this Bootstrapper that, IUnityContainer container)
        {
            container.NotNull("container");
            ServiceLocator.SetLocatorProvider(() => new UnityServiceLocator(container));

            that.Done(new UnityObjectContainer(container));
        }
Exemplo n.º 2
0
        private static IObjectContainer DoneWithAutofac(this Bootstrapper that, ContainerBuilder containerBuilder)
        {
            containerBuilder.NotNull("containerBuilder");

            var container = new AutofacObjectContainer(containerBuilder);

            that.Done(container);
            return(container);
        }