Exemple #1
0
 public RoundService(ApplicationDbContext dbContext, IConfiguration configuration, IJackpotService jackpotService)
 {
     _dbContext      = dbContext;
     _configuration  = configuration;
     _jackpotService = jackpotService;
     jackPercFromBet = _configuration.GetValue <int>("Jackpot:PercFromBet");
 }
Exemple #2
0
 public UserService(
     IConfiguration configuration,
     TokenHelper tokenHelper,
     SignInManager <User> signinManager,
     UserManager <User> userManager,
     IUserRepository userRepository,
     IJackpotService jackpotService
     )
 {
     _configuration                 = configuration;
     _tokenHelper                   = tokenHelper;
     _userManager                   = userManager;
     _signInManager                 = signinManager;
     _userRepository                = userRepository;
     _jackpotService                = jackpotService;
     _JwtKey                        = _configuration["Jwt:key"];
     _tokenExpiresAfterInMinutes    = int.Parse(_configuration["Jwt:ExpiresAfterInMinutes"]);
     _amountPercentgeToPutInJackpot = int.Parse(_configuration["Jackpot:AmountPercentgeToPutInJackpot"]);
 }
Exemple #3
0
 public JackpotController(IJackpotService jackpotService)
 {
     _jackpotService = jackpotService;
 }