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

            return(config);
        }