Пример #1
0
 public LeagueController(FantasyCriticUserManager userManager, FantasyCriticService fantasyCriticService, IClock clock, IHubContext <UpdateHub> hubcontext)
 {
     _userManager          = userManager;
     _fantasyCriticService = fantasyCriticService;
     _clock      = clock;
     _hubcontext = hubcontext;
 }
Пример #2
0
    private static AdminService GetAdminService()
    {
        FantasyCriticUserManager userManager             = null !;
        IFantasyCriticUserStore  betaUserStore           = new MySQLFantasyCriticUserStore(_betaConnectionString, _clock);
        IMasterGameRepo          masterGameRepo          = new MySQLMasterGameRepo(_betaConnectionString, betaUserStore);
        IFantasyCriticRepo       fantasyCriticRepo       = new MySQLFantasyCriticRepo(_betaConnectionString, betaUserStore, masterGameRepo);
        InterLeagueService       interLeagueService      = new InterLeagueService(fantasyCriticRepo, masterGameRepo);
        LeagueMemberService      leagueMemberService     = new LeagueMemberService(null !, fantasyCriticRepo, _clock);
        GameAcquisitionService   gameAcquisitionService  = new GameAcquisitionService(fantasyCriticRepo, masterGameRepo, leagueMemberService, _clock);
        ActionProcessingService  actionProcessingService = new ActionProcessingService(gameAcquisitionService);
        FantasyCriticService     fantasyCriticService    = new FantasyCriticService(leagueMemberService, interLeagueService, fantasyCriticRepo, _clock);
        IOpenCriticService       openCriticService       = null !;
        IGGService         ggService         = null !;
        PatreonService     patreonService    = null !;
        IRDSManager        rdsManager        = null !;
        RoyaleService      royaleService     = null !;
        IHypeFactorService hypeFactorService = new LambdaHypeFactorService(_awsRegion, _betaBucket);

        AdminServiceConfiguration configuration = new AdminServiceConfiguration(true);
        var environment = Environment.GetEnvironmentVariable("ASPNETCORE_ENVIRONMENT");
        var realHypeConstantsEnvironments = new List <string>()
        {
            "STAGING", "PRODUCTION"
        };

        if (environment is not null && realHypeConstantsEnvironments.Contains(environment.ToUpper()))
        {
            configuration = new AdminServiceConfiguration(false);
        }

        return(new AdminService(fantasyCriticService, userManager, fantasyCriticRepo, masterGameRepo, interLeagueService,
                                openCriticService, ggService, patreonService, _clock, rdsManager, royaleService, hypeFactorService, configuration, actionProcessingService));
    }
Пример #3
0
 public AdminController(FantasyCriticUserManager userManager, FantasyCriticService fantasyCriticService, IOpenCriticService openCriticService, IClock clock)
 {
     _userManager          = userManager;
     _fantasyCriticService = fantasyCriticService;
     _openCriticService    = openCriticService;
     _clock = clock;
 }
 public LeagueManagerController(FantasyCriticUserManager userManager, FantasyCriticService fantasyCriticService, IClock clock, IHubContext <UpdateHub> hubcontext, IEmailSender emailSender)
 {
     _userManager          = userManager;
     _fantasyCriticService = fantasyCriticService;
     _clock       = clock;
     _hubcontext  = hubcontext;
     _emailSender = emailSender;
 }
Пример #5
0
 public GameController(FantasyCriticUserManager userManager, InterLeagueService interLeagueService,
                       FantasyCriticService fantasyCriticService, GameSearchingService gameSearchingService, IClock clock)
     : base(userManager)
 {
     _interLeagueService   = interLeagueService;
     _fantasyCriticService = fantasyCriticService;
     _gameSearchingService = gameSearchingService;
     _clock = clock;
 }
Пример #6
0
 public AdminController(AdminService adminService, FantasyCriticService fantasyCriticService, IOpenCriticService openCriticService,
                        IClock clock, InterLeagueService interLeagueService, ILogger <AdminController> logger, GameAcquisitionService gameAcquisitionService)
 {
     _adminService         = adminService;
     _fantasyCriticService = fantasyCriticService;
     _openCriticService    = openCriticService;
     _clock = clock;
     _interLeagueService     = interLeagueService;
     _logger                 = logger;
     _gameAcquisitionService = gameAcquisitionService;
 }
 public LeagueManagerController(FantasyCriticUserManager userManager, FantasyCriticService fantasyCriticService, InterLeagueService interLeagueService,
                                LeagueMemberService leagueMemberService, DraftService draftService, PublisherService publisherService, IClock clock, IHubContext <UpdateHub> hubContext,
                                EmailSendingService emailSendingService, GameAcquisitionService gameAcquisitionService) : base(userManager, fantasyCriticService, interLeagueService, leagueMemberService)
 {
     _draftService           = draftService;
     _publisherService       = publisherService;
     _clock                  = clock;
     _hubContext             = hubContext;
     _emailSendingService    = emailSendingService;
     _gameAcquisitionService = gameAcquisitionService;
 }
Пример #8
0
 public AdminController(AdminService adminService, FantasyCriticService fantasyCriticService, IClock clock, InterLeagueService interLeagueService,
                        ILogger <AdminController> logger, GameAcquisitionService gameAcquisitionService, FantasyCriticUserManager userManager,
                        IWebHostEnvironment webHostEnvironment, EmailSendingService emailSendingService)
     : base(userManager)
 {
     _adminService         = adminService;
     _fantasyCriticService = fantasyCriticService;
     _clock = clock;
     _interLeagueService     = interLeagueService;
     _logger                 = logger;
     _gameAcquisitionService = gameAcquisitionService;
     _webHostEnvironment     = webHostEnvironment;
     _emailSendingService    = emailSendingService;
 }
Пример #9
0
 public AdminController(AdminService adminService, FantasyCriticService fantasyCriticService, IOpenCriticService openCriticService,
                        IClock clock, InterLeagueService interLeagueService, ILogger <AdminController> logger, GameAcquisitionService gameAcquisitionService,
                        FantasyCriticUserManager userManager, IEmailSender emailSender)
 {
     _adminService         = adminService;
     _fantasyCriticService = fantasyCriticService;
     _openCriticService    = openCriticService;
     _clock = clock;
     _interLeagueService     = interLeagueService;
     _logger                 = logger;
     _gameAcquisitionService = gameAcquisitionService;
     _userManager            = userManager;
     _emailSender            = emailSender;
 }
Пример #10
0
 public LeagueManagerController(FantasyCriticUserManager userManager, FantasyCriticService fantasyCriticService, InterLeagueService interLeagueService,
                                LeagueMemberService leagueMemberService, DraftService draftService, PublisherService publisherService, IClock clock, IHubContext <UpdateHub> hubContext, IEmailSender emailSender,
                                GameAcquisitionService gameAcquisitionService)
 {
     _userManager          = userManager;
     _fantasyCriticService = fantasyCriticService;
     _interLeagueService   = interLeagueService;
     _leagueMemberService  = leagueMemberService;
     _draftService         = draftService;
     _publisherService     = publisherService;
     _clock                  = clock;
     _hubContext             = hubContext;
     _emailSender            = emailSender;
     _gameAcquisitionService = gameAcquisitionService;
 }
Пример #11
0
 public EmailSendingService(FantasyCriticUserManager userManager, IEmailSender emailSender,
                            InterLeagueService interLeagueService, FantasyCriticService fantasyCriticService,
                            GameAcquisitionService gameAcquisitionService, LeagueMemberService leagueMemberService,
                            EmailSendingServiceConfiguration configuration, IClock clock)
 {
     _userManager            = userManager;
     _emailSender            = emailSender;
     _interLeagueService     = interLeagueService;
     _fantasyCriticService   = fantasyCriticService;
     _gameAcquisitionService = gameAcquisitionService;
     _leagueMemberService    = leagueMemberService;
     _baseAddress            = configuration.BaseAddress;
     _isProduction           = configuration.IsProduction;
     _clock = clock;
 }
Пример #12
0
 public AdminService(FantasyCriticService fantasyCriticService, FantasyCriticUserManager userManager, IFantasyCriticRepo fantasyCriticRepo, IMasterGameRepo masterGameRepo,
                     InterLeagueService interLeagueService, IOpenCriticService openCriticService, IGGService ggService, PatreonService patreonService, IClock clock, IRDSManager rdsManager,
                     RoyaleService royaleService, IHypeFactorService hypeFactorService, AdminServiceConfiguration configuration, ActionProcessingService actionProcessingService)
 {
     _fantasyCriticService = fantasyCriticService;
     _userManager          = userManager;
     _fantasyCriticRepo    = fantasyCriticRepo;
     _masterGameRepo       = masterGameRepo;
     _interLeagueService   = interLeagueService;
     _openCriticService    = openCriticService;
     _ggService            = ggService;
     _patreonService       = patreonService;
     _clock                   = clock;
     _rdsManager              = rdsManager;
     _royaleService           = royaleService;
     _hypeFactorService       = hypeFactorService;
     _configuration           = configuration;
     _actionProcessingService = actionProcessingService;
 }
Пример #13
0
 protected BaseLeagueController(FantasyCriticUserManager userManager, FantasyCriticService fantasyCriticService, InterLeagueService interLeagueService, LeagueMemberService leagueMemberService) : base(userManager)
 {
     _fantasyCriticService = fantasyCriticService;
     _interLeagueService   = interLeagueService;
     _leagueMemberService  = leagueMemberService;
 }
Пример #14
0
 public UpdateHub(FantasyCriticService fantasyCriticService)
 {
     _fantasyCriticService = fantasyCriticService;
 }
Пример #15
0
 public UpdateHub(FantasyCriticUserManager userManager, FantasyCriticService fantasyCriticService)
 {
     _userManager          = userManager;
     _fantasyCriticService = fantasyCriticService;
 }
Пример #16
0
 public GameController(FantasyCriticUserManager userManager, FantasyCriticService fantasyCriticService)
 {
     _userManager          = userManager;
     _fantasyCriticService = fantasyCriticService;
 }
Пример #17
0
 public GeneralController(FantasyCriticService fantasyCriticService, InterLeagueService interLeagueService)
 {
     _fantasyCriticService = fantasyCriticService;
     _interLeagueService   = interLeagueService;
 }