/// <summary> /// Trigged when all imports are loaded. Initializes all of the extensions. /// </summary> public void OnImportsSatisfied() { // Initialize all modules foreach (var module in Modules) { module.Init(); } // Initialize all extensions using (var db = new DataContext()) { db.LoginSys(); // Run the ensure method for all extensions. foreach (var ext in Extensions) { ext.Value.Ensure(db); } db.Logout(); } if (!Config.DisableTypeBuilder) { // Ensure page types EnsurePageTypes(); // Ensure post types EnsurePostTypes(); } }
/// <summary> /// Trigged when all imports are loaded. Initializes all of the extensions. /// </summary> public void OnImportsSatisfied() { using (var db = new DataContext()) { db.LoginSys() ; // Run the ensure method for all extensions. foreach (var ext in Extensions) ext.Value.Ensure(db) ; db.Logout() ; } }
/// <summary> /// Trigged when all imports are loaded. Initializes all of the extensions. /// </summary> public void OnImportsSatisfied() { using (var db = new DataContext()) { db.LoginSys(); // Run the ensure method for all extensions. foreach (var ext in Extensions) { ext.Value.Ensure(db); } db.Logout(); } }
/// <summary> /// Trigged when all imports are loaded. Initializes all of the extensions. /// </summary> public void OnImportsSatisfied() { using (var db = new DataContext()) { db.LoginSys(); // Run the ensure method for all extensions. foreach (var ext in Extensions) ext.Value.Ensure(db); db.Logout(); } if (!Config.DisableTypeBuilder) { // Ensure page types EnsurePageTypes(); // Ensure post types EnsurePostTypes(); } }
/// <summary> /// Trigged when all imports are loaded. Initializes all of the extensions. /// </summary> public void OnImportsSatisfied() { // Initialize all modules foreach (var module in Modules) { module.Init(); } // Initialize all extensions using (var db = new DataContext()) { db.LoginSys() ; // Run the ensure method for all extensions. foreach (var ext in Extensions) ext.Value.Ensure(db) ; db.Logout() ; } // Ensure page types EnsurePageTypes() ; // Ensure post types EnsurePostTypes() ; }