Esempio n. 1
0
 public MatchService(AlexandriaContext alexandriaContext, IBackgroundWorker backgroundWorker, ICacheBreaker cacheBreaker, TournamentUtils tournamentUtils, IOptions <Alexandria.Games.SuperSmashBros.Configuration.Queue> superSmashBrosQueues)
 {
     this.alexandriaContext    = alexandriaContext;
     this.cacheBreaker         = cacheBreaker;
     this.tournamentUtils      = tournamentUtils;
     this.backgroundWorker     = backgroundWorker;
     this.superSmashBrosQueues = superSmashBrosQueues.Value;
 }
Esempio n. 2
0
 public TeamService(IHttpContextAccessor httpContext,
                    AlexandriaContext context,
                    IUserUtils userUtils,
                    IAuthorizationService authorizationService,
                    IBackgroundWorker backgroundWorker,
                    IOptions <Shared.Configuration.Queue> queues,
                    IProfanityValidator profanityValidator,
                    SlackClient slackClient,
                    ICacheBreaker cacheBreaker)
 {
     this.httpContext          = httpContext.HttpContext;
     this.context              = context;
     this.userUtils            = userUtils;
     this.authorizationService = authorizationService;
     this.backgroundWorker     = backgroundWorker;
     this.queues             = queues.Value ?? throw new NoNullAllowedException("Queue Options can't be null");
     this.profanityValidator = profanityValidator;
     this.slackClient        = slackClient;
     this.cacheBreaker       = cacheBreaker;
 }
Esempio n. 3
0
 public GameCastingService(AlexandriaContext alexandriaContext, IAuthorizationService authorizationService, ICacheBreaker cacheBreaker)
 {
     this.alexandriaContext    = alexandriaContext;
     this.authorizationService = authorizationService;
     this.cacheBreaker         = cacheBreaker;
 }