public void LinkAll(CountriesLinkContext context) { var countries = Db.GetCountries(); var linker = CreateLinker(context); linker.LinkCountries(countries); }
private void LinkCountries() { var linkContext = new CountriesLinkContext(_context.Id); _context.AddContext(linkContext); var worker = new CountryWorker(_settings.ElasticSearchClientSettings, Works, Db); Works.AddToQueue(worker.LinkAll, linkContext, QueuePriority.Medium, false); }