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) { }
public StaticDataRetrieve(IPecTecClient client) { _client = client; }