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>();
 }
Exemplo n.º 2
0
        private static IUnityContainer BuildUnityContainer()
        {
            var container = UnityDependencyContainer.GetCurrent().Container;

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