Example #1
0
 private void LoadConf()
 {
    this.exeConf = new ExeConf(@"{0}\Server.config".Format(Environment.CurrentDirectory));
    this.exeConf.Load();
    this.rootDir = this.exeConf.GetValue("appSettings", "add", "rootDir");
    this.rootDir = this.rootDir.TrimEnd(new char[] { '\\', '/' });
    if (!Directory.Exists(this.rootDir))
       throw new DirectoryNotFoundException("FolderNotFound: {0}".Format(this.rootDir));
    this.rootDirIdx = @"{0}\idx.html".Format(this.rootDir.TrimEnd('\\'));
    this.httpPrefix = this.exeConf.GetValue("appSettings", "add", "httpPrefix");
 }
Example #2
0
 public GoogleBot(ExeConf exeConf)
 {
     this.exeConf = exeConf;
     this.links   = new List <string>();
     this.qryStr  = this.exeConf.GetValue("appSettings", "add", "googleBotQryStr");
 }