Example #1
0
        public List <Ts_Tasks> GetNormTask()
        {
            var myserver = ServersManage.GetInstance().MyServer;

            if (myserver == null)
            {
                log.Fatal(string.Format("服务器没有注册,系统将无法正常运行"));
                throw new Exception(string.Format("服务器没有注册,系统将无法正常运行"));
            }
            return(_ormTasks.FindAll(w => w.Status == 1 && w.RunServerId == myserver.Id));
        }
Example #2
0
 public ServerService()
 {
     _ormServers    = _serverRepository.For <Ts_Servers>();
     _mailService   = new MailService();
     _serverManager = ServersManage.GetInstance();
 }