public void Run() { using (var db = new NishkriyaContext()) { var hasher = new Sha1Provider(); var scrapers = new List <IForumScraper> { new YAFScavenger(hasher, db), new VBulletinScavenger(hasher, db) }; scrapers.ForEach(s => s.Scrape()); } }
public NewContentViewModelBuilder(NishkriyaContext db) { _db = db; }
public VBulletinScavenger(IHashProvider hashProvider, NishkriyaContext db) { _db = db; _hashProvider = hashProvider; _log = LogManager.GetLogger("ScavengerLord"); }
public YAFScavenger(IHashProvider hashProvider, NishkriyaContext db) { _hashProvider = hashProvider; _db = db; }