Пример #1
0
        /// <summary>Initializes the given Type.</summary>
        /// <returns>Whether initialization could be performed for all found steps in the given type.</returns>
        public static bool Initialize(Type type)
        {
            InitMgr initMgr = new InitMgr();
            List <DependentInitializationStep> dependentInitors = new List <DependentInitializationStep>();

            initMgr.AddStepsOfType(type, dependentInitors);
            initMgr.InitDependencies(dependentInitors);
            return(initMgr.PerformInitialization());
        }
Пример #2
0
        /// <summary>
        /// Initializes the given Type.
        /// </summary>
        /// <returns>Whether initialization could be performed for all found steps in the given type.</returns>
        public static bool Initialize(Type type)
        {
            var initMgr = new InitMgr();
            var dependencies = new List<InitializationDependency>();
            initMgr.AddStepsOfType(type, dependencies);
            initMgr.InitDependencies(dependencies);

            return initMgr.PerformInitialization();
        }