Ejemplo n.º 1
0
 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));
 }
Ejemplo n.º 2
0
 public TournamentController(IGlobalSettings globalSettings,
                             IUmbracoContextAccessor umbracoContextAccessor,
                             ServiceContext serviceContext,
                             AppCaches appCaches,
                             IProfilingLogger profilingLogger,
                             UmbracoHelper umbracoHelper,
                             ITournamentDataSource tournamentDataSource,
                             IMatchListingDataSource matchDataSource,
                             IMatchFilterFactory matchFilterFactory,
                             ICommentsDataSource <Tournament> commentsDataSource,
                             IAuthorizationPolicy <Tournament> authorizationPolicy,
                             IDateTimeFormatter dateFormatter,
                             IEmailProtector emailProtector,
                             IBadLanguageFilter badLanguageFilter)
     : base(globalSettings, umbracoContextAccessor, serviceContext, appCaches, profilingLogger, umbracoHelper)
 {
     _tournamentDataSource = tournamentDataSource ?? throw new ArgumentNullException(nameof(tournamentDataSource));
     _matchDataSource      = matchDataSource ?? throw new ArgumentNullException(nameof(matchDataSource));
     _matchFilterFactory   = matchFilterFactory ?? throw new ArgumentNullException(nameof(matchFilterFactory));
     _commentsDataSource   = commentsDataSource ?? throw new ArgumentNullException(nameof(commentsDataSource));
     _authorizationPolicy  = authorizationPolicy ?? throw new ArgumentNullException(nameof(authorizationPolicy));
     _dateFormatter        = dateFormatter ?? throw new ArgumentNullException(nameof(dateFormatter));
     _emailProtector       = emailProtector ?? throw new ArgumentNullException(nameof(emailProtector));
     _badLanguageFilter    = badLanguageFilter ?? throw new ArgumentNullException(nameof(badLanguageFilter));
 }
 public MatchesForTeamController(IGlobalSettings globalSettings,
                                 IUmbracoContextAccessor umbracoContextAccessor,
                                 ServiceContext serviceContext,
                                 AppCaches appCaches,
                                 IProfilingLogger profilingLogger,
                                 UmbracoHelper umbracoHelper,
                                 ITeamDataSource teamDataSource,
                                 IMatchFilterFactory matchFilterFactory,
                                 IMatchListingDataSource matchDataSource,
                                 IDateTimeFormatter dateFormatter,
                                 ICreateMatchSeasonSelector createMatchSeasonSelector,
                                 IAuthorizationPolicy <Team> authorizationPolicy,
                                 IMatchFilterQueryStringParser matchFilterQueryStringParser,
                                 IMatchFilterHumanizer matchFilterHumanizer)
     : base(globalSettings, umbracoContextAccessor, serviceContext, appCaches, profilingLogger, umbracoHelper)
 {
     _teamDataSource               = teamDataSource ?? throw new ArgumentNullException(nameof(teamDataSource));
     _matchFilterFactory           = matchFilterFactory ?? throw new ArgumentNullException(nameof(matchFilterFactory));
     _matchDataSource              = matchDataSource ?? throw new ArgumentNullException(nameof(matchDataSource));
     _dateFormatter                = dateFormatter ?? throw new ArgumentNullException(nameof(dateFormatter));
     _createMatchSeasonSelector    = createMatchSeasonSelector ?? throw new ArgumentNullException(nameof(createMatchSeasonSelector));
     _authorizationPolicy          = authorizationPolicy ?? throw new ArgumentNullException(nameof(authorizationPolicy));
     _matchFilterQueryStringParser = matchFilterQueryStringParser ?? throw new ArgumentNullException(nameof(matchFilterQueryStringParser));
     _matchFilterHumanizer         = matchFilterHumanizer ?? throw new ArgumentNullException(nameof(matchFilterHumanizer));
 }
 public MatchesForSeasonController(IGlobalSettings globalSettings,
                                   IUmbracoContextAccessor umbracoContextAccessor,
                                   ServiceContext serviceContext,
                                   AppCaches appCaches,
                                   IProfilingLogger profilingLogger,
                                   UmbracoHelper umbracoHelper,
                                   IMatchFilterFactory matchFilterFactory,
                                   ISeasonDataSource seasonDataSource,
                                   IMatchListingDataSource matchDataSource,
                                   IAuthorizationPolicy <Competition> authorizationPolicy,
                                   IDateTimeFormatter dateFormatter)
     : base(globalSettings, umbracoContextAccessor, serviceContext, appCaches, profilingLogger, umbracoHelper)
 {
     _matchFilterFactory  = matchFilterFactory ?? throw new ArgumentNullException(nameof(matchFilterFactory));
     _seasonDataSource    = seasonDataSource ?? throw new ArgumentNullException(nameof(seasonDataSource));
     _matchDataSource     = matchDataSource ?? throw new ArgumentNullException(nameof(matchDataSource));
     _authorizationPolicy = authorizationPolicy ?? throw new ArgumentNullException(nameof(authorizationPolicy));
     _dateFormatter       = dateFormatter ?? throw new ArgumentNullException(nameof(dateFormatter));
 }