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(); } }
protected virtual void Dispose(bool disposing) { if (disposed) { return; } if (disposing) { handle.Dispose(); getter = null; decoder = null; assembler = null; } disposed = true; }