Beispiel #1
0
 public SubmissionsController(
     OHuntDbContext context,
     ILogger <SubmissionsController> logger)
 {
     _context = context;
     _logger  = logger;
 }
Beispiel #2
0
        public ProblemLabelManager(OHuntDbContext context, IServiceProvider serviceProvider)
        {
            _context = context;

            _crawlers = new Dictionary <MappingOnlineJudge, IMappingCrawler>();
            foreach (var crawlerType in CrawlersToInit)
            {
                var crawler = (IMappingCrawler)serviceProvider.GetService(crawlerType);
                _crawlers.Add(crawler.OnlineJudge, crawler);
            }
        }