示例#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);
        }
示例#3
0
 protected override void InternalDispose()
 {
     AlarmService.Dispose();
 }