Пример #1
0
 //readonly List<string> noType = new List<string> { "0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "Size", "Parity" };
 public PredictionService(IEnumerable <ILotteryResultRepository> resultRepos,
                          ILogger <PredictionService> logger,
                          IConfiguration config)
 {
     this._logger    = logger;
     this.resultRepo = resultRepos.FirstOrDefault(x => x.DBType == config["DBType"]);
 }
Пример #2
0
 public LotteryResultService(IEnumerable <ILotteryResultRepository> resultRepos,
                             IOpenService openService, ILogger <LotteryResultService> logger,
                             IConfiguration config)
 {
     this._logger     = logger;
     this.resultRepo  = resultRepos.FirstOrDefault(x => x.DBType == config["DBType"]);
     this.openService = openService;
 }