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); }
public void RegisterTypes(IUnityContainer container) { BusinessContainerManager containerManager = new BusinessContainerManager(); containerManager.RegisterTypes(container); }