定时任务
This commit is contained in:
@@ -34,39 +34,12 @@
|
||||
//AppDomain.Unload(AppDomain.CurrentDomain);
|
||||
}
|
||||
|
||||
//////得到集团服务器路径
|
||||
try
|
||||
{
|
||||
string address = ConfigurationManager.AppSettings["endpoint"];
|
||||
Funs.SystemVersion = ConfigurationManager.AppSettings["SystemVersion"];
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
ErrLogInfo.WriteLog("得到集团服务器地址失败!", ex);
|
||||
}
|
||||
////实名制同步定时器
|
||||
try
|
||||
{
|
||||
if (ConfigurationManager.AppSettings["EnableRealName"] == "True")
|
||||
{
|
||||
BLL.RealNameMonitorService.StartMonitor();
|
||||
}
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
ErrLogInfo.WriteLog("实名制同步定时器启动失败!", ex);
|
||||
}
|
||||
////通用定时器
|
||||
try
|
||||
{
|
||||
ErrLogInfo.WriteLog("通用定时器开启!" );
|
||||
BLL.MonitorService.StartMonitor();
|
||||
BLL.MonitorService.StartWeather();
|
||||
BLL.MonitorService.StartMonitorEve();
|
||||
//BLL.MonitorService.StartPersonQuarterCheck();
|
||||
//BLL.MonitorService.StartEnvironmentSync();
|
||||
QuartzServices.Init();
|
||||
ErrLogInfo.WriteLog("通用定时器结束!");
|
||||
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user