Ejemplo n.º 1
0
        public static void Register(Container container, Lifestyle lifeStyleDbContext)
        {
            //Containers.ApplicationServiceContainer.RegisterApplicationService(container);
            container.RegisterApplicationServices();
            container.RegisterDomainServices();
            container.RegisterRepositories();

            container.RegisterDbContexts(lifeStyleDbContext);

            ServiceLocatorConfig(container);
        }
        public static void Bootstrap(Container container, Lifestyle lifestyle)
        {
            container.RegisterApplicationServices();
            container.RegisterDomainServices();
            container.RegisterRepositories();
            container.RegisterDbContexts(lifestyle);
            container.RegisterUnitsOfWork();

            ServiceLocator.SetLocatorProvider(
                () => new Adapters.SimpleInjectorServiceLocatorAdapter(container));
        }