Beispiel #1
0
        public void LinkCategories(LinkCategoriesContext context)
        {
            var categories = Db.GetCategories();
            var linker     = CreateLinker(context);

            linker.LinkCategories(categories);
        }
Beispiel #2
0
        private void LinkCategories()
        {
            var linkContext = new LinkCategoriesContext(_context.Id);

            _context.AddContext(linkContext);
            var worker = new CategoryWorker(_settings.ElasticSearchClientSettings, Works, Db);

            Works.AddToQueue(worker.LinkCategories, linkContext, QueuePriority.Medium, false);
        }