Esempio n. 1
0
        public void LinkAll(CountriesLinkContext context)
        {
            var countries = Db.GetCountries();
            var linker    = CreateLinker(context);

            linker.LinkCountries(countries);
        }
Esempio n. 2
0
        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);
        }