public AlertService() { InitializeComponent(); ConfigManager.SetConfigurationMode(ConfigManager.ConfigurationMode.AppConfig); _bmcUtility = UtitlityObjectFactory.GetEnterpriseFactoryObject(true); timer = new System.Timers.Timer(Convert.ToInt32(ConfigManager.Read("ProcessInterval")) * 1000); _ACtimer = new System.Timers.Timer(Convert.ToInt32(ConfigManager.Read("ACProcessInterval")) * 1000); timer.Elapsed += timer_Elapsed; _ACtimer.Elapsed += _ACtimer_Elapsed; }
public AlertService() { InitializeComponent(); ConfigManager.SetConfigurationMode(ConfigManager.ConfigurationMode.AppConfig); _bmcUtility = UtitlityObjectFactory.GetEnterpriseFactoryObject(true); timer = new System.Timers.Timer(Convert.ToInt32(ConfigManager.Read("ProcessInterval")) * 1000); _ACtimer = new System.Timers.Timer(Convert.ToInt32(ConfigManager.Read("ACProcessInterval")) * 1000); timer.Elapsed += timer_Elapsed; _ACtimer.Elapsed += _ACtimer_Elapsed; }