Example #1
0
        public static void RegisterTypes(IUnityContainer container)
        {
            container.RegisterType <IUnitOfWork>(
                new InjectionFactory(x =>
                                     HttpContext.Current
                                     .GetOwinContext()
                                     .Get <IUnitOfWork>()));

            container.RegisterType <ApplicationUserManager>(
                new InjectionFactory(x =>
                                     HttpContext.Current
                                     .GetOwinContext()
                                     .Get <ApplicationUserManager>()));

            container.RegisterType <ApplicationSignInManager>(
                new InjectionFactory(x =>
                                     HttpContext.Current
                                     .GetOwinContext()
                                     .Get <ApplicationSignInManager>()));

            DataContainerManager.RegisterTypes(container);
            BusinessContainerManager.RegisterTypes(container);
        }
Example #2
0
        public void RegisterTypes(IUnityContainer container)
        {
            BusinessContainerManager containerManager = new BusinessContainerManager();

            containerManager.RegisterTypes(container);
        }