Пример #1
0
 public PayoutService(ILogger <PayoutService> logger,
                      IUserService userService,
                      IGameTransactionService gameTransactionService,
                      IGameHistoryService gameHistoryService)
 {
     this.logger                 = logger;
     this.userService            = userService;
     this.gameTransactionService = gameTransactionService;
     this.gameHistoryService     = gameHistoryService;
 }
Пример #2
0
 public CardGameController(
     GameContext gameContext,
     ICardDrawingService drawingService,
     ICardScoringService scoringService,
     IGamePlayingService playingService,
     IGameHistoryService historyService)
 {
     _gameContext = gameContext
                    ?? throw new ArgumentNullException(nameof(gameContext));
     _drawingService = drawingService
                       ?? throw new ArgumentNullException(nameof(drawingService));
     _scoringService = scoringService
                       ?? throw new ArgumentNullException(nameof(scoringService));
     _playingService = playingService
                       ?? throw new ArgumentNullException(nameof(playingService));
     _historyService = historyService
                       ?? throw new ArgumentNullException(nameof(historyService));
 }
Пример #3
0
 public GameService(GameModuleCollection gameModules,
                    IUserService userService,
                    IBonusService bonusService,
                    IPayoutService payoutService,
                    IGameHistoryService gameHistoryService,
                    IGameTransactionService transactionService,
                    IDistributedCache cache,
                    CachedSettings cachedSettings,
                    IValidationStrategy validator,
                    ILogger <GameService> logger)
 {
     this.gameModules        = gameModules;
     this.userService        = userService;
     this.bonusService       = bonusService;
     this.payoutService      = payoutService;
     this.gameHistoryService = gameHistoryService;
     this.transactionService = transactionService;
     this.cache          = cache;
     this.cachedSettings = cachedSettings;
     this.validator      = validator;
     this.logger         = logger;
 }
 public GameHistoryController(IGameHistoryService gameHistoryService)
 {
     _gameHistoryService = gameHistoryService;
 }