public override void Initialize(Site site) { _initializer.Initialize(site); base.Initialize(site); customErrorProvider.InitializeCustomError(site); urlRedirectProvider.InitializeUrlRedirect(site, true); abPageSettingProvider.InitializeABPageSetting(site); abRuleSettingProvider.InitializeABRuleSetting(site); //abSiteSettingProvider.InitializeABSiteSetting(); }
public override void Add(Site item) { try { _initializer.Initialize(item); InsertOrUpdate(item, item); } catch (Exception e) { //Maybe unable to save site setting when the data bucket is initializing. Ignore the save exception when site creating. Kooboo.HealthMonitoring.Log.LogException(e); } base.Add(item); }