public LiveUpgradeService([ServiceDependency]WorkItem workItem, [ServiceDependency]IPropertyService propertyService) { this.workItem = workItem; this.propertyService = propertyService; LiveUpgradeConfigurationSection cs = ConfigurationManager.GetSection(LIVEUPGRADE_SECTION) as LiveUpgradeConfigurationSection; UpgradeSetting setting = GetSetting(); if (cs != null && setting != null) { detecter = new UpgradeDetecter(this); if (setting.CheckInterval > 0) { detecter.CheckInterval = setting.CheckInterval; detecter.Start(); } } }
public LiveUpgradeService([ServiceDependency] WorkItem workItem, [ServiceDependency] IPropertyService propertyService) { this.workItem = workItem; this.propertyService = propertyService; LiveUpgradeConfigurationSection cs = ConfigurationManager.GetSection(LIVEUPGRADE_SECTION) as LiveUpgradeConfigurationSection; UpgradeSetting setting = GetSetting(); if (cs != null && setting != null) { detecter = new UpgradeDetecter(this); if (setting.CheckInterval > 0) { detecter.CheckInterval = setting.CheckInterval; detecter.Start(); } } }