public override TaskContinuation Execute() { try { AlarmService.Init(); } catch (Exception ex) { LocalLoggingService.Error("初始化报警服务失败,异常信息:{0}", ex); return(TaskContinuation.Break); } return(TaskContinuation.Continue); }
internal static AlarmConfigurationEntity GetConfig() { var defaultConfig = AlarmConfigurationBase.GetDefaultConfig(); var config = configService.GetConfigItemValue(true, "AlarmConfiguration", defaultConfig, update => AlarmService.Init()); return(config); }