예제 #1
0
파일: JobManager.cs 프로젝트: d3lboy/stats
        public Task StartAsync(CancellationToken cancellationToken)
        {
            logger.LogInformation($"Started.");

            foreach (int value in Enum.GetValues(typeof(Competition)))
            {
                competitionFactory.CreateInstance().Initialize((Competition)value);
            }

            synchronizer.FetchNewJobs();
            return(Task.CompletedTask);
        }