public MatchCacheClearer(IClubDataSource clubDataSource, IMatchFilterFactory matchFilterFactory, IMatchFilterQueryStringSerializer matchFilterSerializer, IClearableCache cache) { _clubDataSource = clubDataSource ?? throw new ArgumentNullException(nameof(clubDataSource)); _matchFilterFactory = matchFilterFactory ?? throw new ArgumentNullException(nameof(matchFilterFactory)); _matchFilterSerializer = matchFilterSerializer ?? throw new ArgumentNullException(nameof(matchFilterSerializer)); _cache = cache ?? throw new ArgumentNullException(nameof(cache)); }
public CachedMatchListingDataSource(IReadOnlyPolicyRegistry <string> policyRegistry, ICacheableMatchListingDataSource matchListingDataSource, IMatchFilterQueryStringSerializer matchFilterSerializer) { _policyRegistry = policyRegistry ?? throw new ArgumentNullException(nameof(policyRegistry)); _matchListingDataSource = matchListingDataSource ?? throw new ArgumentNullException(nameof(matchListingDataSource)); _matchFilterSerializer = matchFilterSerializer ?? throw new ArgumentNullException(nameof(matchFilterSerializer)); }