예제 #1
0
 static KJ237CacheHelper()
 {
     rPRealCacheService        = ServiceFactory.Create <IRPRealCacheService>();
     r_PhjService              = ServiceFactory.Create <IR_PhjService>();
     r_PhistoryService         = ServiceFactory.Create <IR_PhistoryService>();
     rsyncLocalCacheService    = ServiceFactory.Create <IRsyncLocalCacheService>();
     personPointDefineService  = ServiceFactory.Create <IPersonPointDefineService>();
     rPersoninfCacheService    = ServiceFactory.Create <IRPersoninfCacheService>();
     r_PersoninfRepository     = ServiceFactory.Create <IR_PersoninfRepository>();
     rUndefinedDefCacheService = ServiceFactory.Create <IRUndefinedDefCacheService>();
     pointDefineService        = ServiceFactory.Create <IPointDefineService>();
     alarmCacheService         = ServiceFactory.Create <IAlarmCacheService>();
     alarmRecordRepository     = ServiceFactory.Create <IAlarmRecordRepository>();
     alarmTodbService          = ServiceFactory.Create <IInsertToDbService <Jc_BInfo> >();
     phjTodbService            = ServiceFactory.Create <IInsertToDbService <R_PhjInfo> >();
     phistoryTodbService       = ServiceFactory.Create <IInsertToDbService <R_PhistoryInfo> >();
     r_PBCacheService          = ServiceFactory.Create <IR_PBCacheService>();
     areaCacheService          = ServiceFactory.Create <IAreaCacheService>();
     r_PbService   = ServiceFactory.Create <IInsertToDbService <R_PbInfo> >();
     r_CallService = ServiceFactory.Create <IR_CallService>();
     r_KqbcService = ServiceFactory.Create <IR_KqbcService>();
 }
 public AlarmDataInsertToDb()
 {
     FilePath          = ConfigurationManager.FileConfiguration.GetString("FileDataToDbPath", @"C:/LocalDb") + "\\Alarm\\";
     alarmRepository   = ServiceFactory.Create <IAlarmRecordRepository>();
     alarmCacheService = ServiceFactory.Create <IAlarmCacheService>();
 }
예제 #3
0
 private AlarmCacheCleanTask(int intreval)
     : base("清除已结束报警缓存任务", intreval)
 {
     alarmCacheService = ServiceFactory.Create <IAlarmCacheService>();
     delaytime         = new TimeSpan(0, 5, 0);
 }
예제 #4
0
 public AlarmRecordService(IAlarmRecordRepository _Repository, IAlarmCacheService alarmCacheService)
 {
     this._Repository        = _Repository;
     this._alarmCacheService = alarmCacheService;
 }