Пример #1
0
 public Algorithm(
     ILoggerFactory logger,
     IPlayerService playerService,
     IResultService resultService,
     ISubRatingRepository subRatingRepository,
     IRatingJobRepository ratingJobRepository,
     IOptions <Config> config
     )
 {
     _logger              = logger.CreateLogger("UniversalTennis.Algorithm.Algorithm");
     _playerService       = playerService;
     _resultService       = resultService;
     _subRatingRepository = subRatingRepository;
     _ratingJobRepository = ratingJobRepository;
     _config              = config.Value;
 }
Пример #2
0
 public RatingsController(
     IPlayerService playerService,
     IResultService resultService,
     IRatingHistoryRepository ratingHistoryRepository,
     IServiceProvider serviceProvider,
     IRatingHistoryService ratingHistoryService,
     ISubRatingRepository subRatingRepository,
     IOptions <Config> config
     )
 {
     _resultService           = resultService;
     _playerService           = playerService;
     _ratingHistoryRepository = ratingHistoryRepository;
     _ratingHistoryService    = ratingHistoryService;
     _serviceProvider         = serviceProvider;
     _subRatingRepository     = subRatingRepository;
     _config = config.Value;
 }