示例#1
0
        public List <BO.AdPosting> ScrapeSite(EnumTypes.Websites site)
        {
            getter  = new HtmlGetter();
            decoder = new HtmlDecoder();

            switch (site)
            {
            case EnumTypes.Websites.GunPost:
                return(decoder.GetAdList(getter.GunPostSearch()));

            case EnumTypes.Websites.FirearmsCanada:
            case EnumTypes.Websites.TownPost:
            default: throw new NotImplementedException();
            }
        }
示例#2
0
        protected virtual void Dispose(bool disposing)
        {
            if (disposed)
            {
                return;
            }

            if (disposing)
            {
                handle.Dispose();
                getter    = null;
                decoder   = null;
                assembler = null;
            }

            disposed = true;
        }