Пример #1
0
 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;
 }
Пример #3
0
 public VBulletinScavenger(IHashProvider hashProvider, NishkriyaContext db)
 {
     _db           = db;
     _hashProvider = hashProvider;
     _log          = LogManager.GetLogger("ScavengerLord");
 }
Пример #4
0
 public YAFScavenger(IHashProvider hashProvider, NishkriyaContext db)
 {
     _hashProvider = hashProvider;
     _db           = db;
 }
 public NewContentViewModelBuilder(NishkriyaContext db)
 {
     _db = db;
 }