public static void RegisterTypes(IUnityContainer container)
 {
     UnityDependencyContainer.GetCurrent().Register <IXmlConfigReader, XmlConfigEngine>();
     UnityDependencyContainer.GetCurrent().Register <IXmlConfigWriter, XmlConfigEngine>();
     UnityDependencyContainer.GetCurrent().Register <IApplicationPool, ApplicationPoolsEngine>();
     UnityDependencyContainer.GetCurrent().Register <IPathProvider, ServerPathProvider>();
 }
Esempio n. 2
0
        private static IUnityContainer BuildUnityContainer()
        {
            var container = UnityDependencyContainer.GetCurrent().Container;

            RegisterTypes(container);
            return(container);
        }
Esempio n. 3
0
 public static void RegisterTypes(IUnityContainer container)
 {
     UnityDependencyContainer.GetCurrent().Register <IPathProvider, ServerPathProvider>();
 }