Beispiel #1
0
 public bool SetParseInfo(WebSiteParser parser)
 {
     if (Parser == null)
     {
         Parser = parser;
         return(true);
     }
     return(false);
 }
Beispiel #2
0
        public bool AddSite(string name, WebSiteSettings settings, WebSiteParser parser)
        {
            var site = new WebSiteDataContainer(name);

            if (site.SetSettings(settings) && site.SetParseInfo(parser) && !Contains(name))
            {
                _containers.Add(site);
                return(true);
            }
            return(false);
        }