Example #1
0
        public RRKFService()
        {
            log = LogManager.GetLogger(this.GetType());
            RedisDb.InitDb();
            this.db = RedisDb.GetRedisDb;
            rooturl = ConfigurationManager.AppSettings["rrkf_url"];
            Regex reg = new Regex("(?<domain>.*://www.+?/.*?)");

            domain = reg.Match(rooturl).Groups["domain"].Value;
            domain = domain.Remove(domain.Length - 1);
        }
Example #2
0
        public FilmService()
        {
            log = LogManager.GetLogger(this.GetType());
            RedisDb.InitDb();
            this.db = RedisDb.GetRedisDb;
            rooturl = ConfigurationManager.AppSettings["rooturl"];
            int pos = rooturl.LastIndexOf("/");

            page_baseurl = rooturl.Substring(0, pos + 1);
            Regex reg = new Regex("(?<domain>.*://www.+?/.*?)");

            domainurl = reg.Match(rooturl).Groups["domain"].Value;
            domainurl = domainurl.Remove(domainurl.Length - 1);
        }
 public JobService()
 {
     log = LogManager.GetLogger(this.GetType());
     RedisDb.InitDb();
     this.db = RedisDb.GetRedisDb;
 }