Exemplo n.º 1
0
 public BaseController(IMapper mapper, ILeagueData leagueData, IPecTecClient client, IStaticDataRetrieve data, IChampionRepository champRepo)
 {
     Mapper     = mapper ?? throw new ArgumentNullException(nameof(mapper));
     LeagueData = leagueData ?? throw new ArgumentNullException(nameof(leagueData));
     Client     = client ?? throw new ArgumentNullException(nameof(client));
     Data       = data ?? throw new ArgumentNullException(nameof(data));
     ChampRepo  = champRepo ?? throw new ArgumentNullException(nameof(champRepo));
 }
        public LiveDataRetrieve(IPecTecClient client, IMemoryCache cache)
        {
            _client = client;
            _cache  = cache;
            _cache.Set(_oneSecondTimer, 0);
            _cache.Set(_twoMinuteTimer, 0);

            SetupTimers();
        }
 public SearchController(IMapper mapper, ILeagueData leagueData, IPecTecClient client, IStaticDataRetrieve data, IChampionRepository champRepo) : base(mapper, leagueData, client, data, champRepo)
 {
 }
Exemplo n.º 4
0
 public StaticDataRetrieve(IPecTecClient client)
 {
     _client = client;
 }