/// <summary>Initializes all Types of the given Assembly.</summary> /// <returns>Whether initialization could be performed for all found steps.</returns> public static bool Initialize(Assembly asm) { InitMgr initMgr = new InitMgr(); initMgr.AddStepsOfAsm(asm); return(initMgr.PerformInitialization()); }
/// <summary> /// Initializes all Types of the given Assembly. /// </summary> /// <returns>Whether initialization could be performed for all found steps.</returns> public static bool Initialize(Assembly asm) { var initMgr = new InitMgr(); initMgr.AddStepsOfAsm(asm); return initMgr.PerformInitialization(); }
/// <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()); }
/// <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(); }