public EditTournamentSeasonsSurfaceController(IUmbracoContextAccessor umbracoContextAccessor, IUmbracoDatabaseFactory umbracoDatabaseFactory, ServiceContext serviceContext,
                                               AppCaches appCaches, ILogger logger, IProfilingLogger profilingLogger, UmbracoHelper umbracoHelper, ITournamentDataSource tournamentDataSource, ICacheClearer <Tournament> cacheClearer,
                                               ITournamentRepository tournamentRepository, IAuthorizationPolicy <Tournament> authorizationPolicy, IPostSaveRedirector postSaveRedirector)
     : base(umbracoContextAccessor, umbracoDatabaseFactory, serviceContext, appCaches, logger, profilingLogger, umbracoHelper)
 {
     _tournamentDataSource = tournamentDataSource ?? throw new ArgumentNullException(nameof(tournamentDataSource));
     _cacheClearer         = cacheClearer ?? throw new ArgumentNullException(nameof(cacheClearer));
     _tournamentRepository = tournamentRepository ?? throw new ArgumentNullException(nameof(tournamentRepository));
     _authorizationPolicy  = authorizationPolicy ?? throw new ArgumentNullException(nameof(authorizationPolicy));
     _postSaveRedirector   = postSaveRedirector ?? throw new ArgumentNullException(nameof(postSaveRedirector));
 }
コード例 #2
0
 public EditCloseOfPlaySurfaceController(IUmbracoContextAccessor umbracoContextAccessor, IUmbracoDatabaseFactory umbracoDatabaseFactory, ServiceContext serviceContext,
                                         AppCaches appCaches, ILogger logger, IProfilingLogger profilingLogger, UmbracoHelper umbracoHelper, IMatchDataSource matchDataSource,
                                         IMatchRepository matchRepository, IAuthorizationPolicy <Match> authorizationPolicy, IDateTimeFormatter dateTimeFormatter, ICacheClearer <Match> cacheClearer)
     : base(umbracoContextAccessor, umbracoDatabaseFactory, serviceContext, appCaches, logger, profilingLogger, umbracoHelper)
 {
     _matchDataSource     = matchDataSource ?? throw new ArgumentNullException(nameof(matchDataSource));
     _matchRepository     = matchRepository ?? throw new ArgumentNullException(nameof(matchRepository));
     _authorizationPolicy = authorizationPolicy ?? throw new ArgumentNullException(nameof(authorizationPolicy));
     _dateTimeFormatter   = dateTimeFormatter ?? throw new ArgumentNullException(nameof(dateTimeFormatter));
     _cacheClearer        = cacheClearer ?? throw new ArgumentNullException(nameof(cacheClearer));
 }
 public CreateTournamentSurfaceController(IUmbracoContextAccessor umbracoContextAccessor, IUmbracoDatabaseFactory umbracoDatabaseFactory, ServiceContext serviceContext,
                                          AppCaches appCaches, ILogger logger, IProfilingLogger profilingLogger, UmbracoHelper umbracoHelper, ITournamentRepository tournamentRepository,
                                          ITeamDataSource teamDataSource, ISeasonDataSource seasonDataSource, IMatchValidator matchValidator, ICacheClearer <Tournament> cacheClearer)
     : base(umbracoContextAccessor, umbracoDatabaseFactory, serviceContext, appCaches, logger, profilingLogger, umbracoHelper)
 {
     _tournamentRepository = tournamentRepository ?? throw new ArgumentNullException(nameof(tournamentRepository));
     _teamDataSource       = teamDataSource ?? throw new ArgumentNullException(nameof(teamDataSource));
     _seasonDataSource     = seasonDataSource ?? throw new ArgumentNullException(nameof(seasonDataSource));
     _matchValidator       = matchValidator ?? throw new ArgumentNullException(nameof(matchValidator));
     _cacheClearer         = cacheClearer ?? throw new ArgumentNullException(nameof(cacheClearer));
 }
コード例 #4
0
 public CreateLeagueMatchSurfaceController(IUmbracoContextAccessor umbracoContextAccessor, IUmbracoDatabaseFactory umbracoDatabaseFactory, ServiceContext serviceContext,
                                           AppCaches appCaches, ILogger logger, IProfilingLogger profilingLogger, UmbracoHelper umbracoHelper, IMatchRepository matchRepository, ITeamDataSource teamDataSource,
                                           ISeasonDataSource seasonDataSource, ICreateMatchSeasonSelector createMatchSeasonSelector, IEditMatchHelper editMatchHelper, IMatchValidator matchValidator,
                                           ICacheClearer <Match> cacheClearer)
     : base(umbracoContextAccessor, umbracoDatabaseFactory, serviceContext, appCaches, logger, profilingLogger, umbracoHelper)
 {
     _matchRepository           = matchRepository ?? throw new ArgumentNullException(nameof(matchRepository));
     _teamDataSource            = teamDataSource ?? throw new ArgumentNullException(nameof(teamDataSource));
     _seasonDataSource          = seasonDataSource ?? throw new ArgumentNullException(nameof(seasonDataSource));
     _createMatchSeasonSelector = createMatchSeasonSelector ?? throw new ArgumentNullException(nameof(createMatchSeasonSelector));
     _editMatchHelper           = editMatchHelper ?? throw new ArgumentNullException(nameof(editMatchHelper));
     _matchValidator            = matchValidator ?? throw new ArgumentNullException(nameof(matchValidator));
     _cacheClearer = cacheClearer ?? throw new ArgumentNullException(nameof(cacheClearer));
 }
 public DeleteTournamentSurfaceController(IUmbracoContextAccessor umbracoContextAccessor, IUmbracoDatabaseFactory umbracoDatabaseFactory, ServiceContext serviceContext,
                                          AppCaches appCaches, ILogger logger, IProfilingLogger profilingLogger, UmbracoHelper umbracoHelper, ITournamentDataSource tournamentDataSource,
                                          IMatchListingDataSource matchListingDataSource, ITournamentRepository tournamentRepository, ICacheClearer <Tournament> cacheClearer,
                                          ICommentsDataSource <Tournament> matchCommentsDataSource, IAuthorizationPolicy <Tournament> authorizationPolicy, IDateTimeFormatter dateTimeFormatter)
     : base(umbracoContextAccessor, umbracoDatabaseFactory, serviceContext, appCaches, logger, profilingLogger, umbracoHelper)
 {
     _tournamentDataSource   = tournamentDataSource ?? throw new ArgumentNullException(nameof(tournamentDataSource));
     _matchListingDataSource = matchListingDataSource ?? throw new ArgumentNullException(nameof(matchListingDataSource));
     _tournamentRepository   = tournamentRepository ?? throw new ArgumentNullException(nameof(tournamentRepository));
     _cacheClearer           = cacheClearer ?? throw new ArgumentNullException(nameof(cacheClearer));
     _commentsDataSource     = matchCommentsDataSource ?? throw new ArgumentNullException(nameof(matchCommentsDataSource));
     _authorizationPolicy    = authorizationPolicy ?? throw new ArgumentNullException(nameof(authorizationPolicy));
     _dateTimeFormatter      = dateTimeFormatter ?? throw new ArgumentNullException(nameof(dateTimeFormatter));
 }