Esempio n. 1
0
 public PlayCardHandler(
     IGameResultService gameResultService,
     IRuleStrategyFactory ruleStrategyFactory)
 {
     this.gameResultService   = gameResultService;
     this.ruleStrategyFactory = ruleStrategyFactory;
 }
 public GameResultController(IGameResultService gameResultService, IBoardGameService boardGameService,
                             IGamerService gamerService)
 {
     _gameResultService = gameResultService;
     _boardGameService  = boardGameService;
     _gamerService      = gamerService;
 }
 public ApplicationServiceGameResult(IGameResultService gameResultService
                                     , IMapper mapper, ILeaderboardService leaderboardService)
 {
     this.gameResultService  = gameResultService;
     this.mapper             = mapper;
     this.leaderboardService = leaderboardService;
 }
 public GameResultController(IGameResultService service)
 {
     this._service = service;
 }
 public async Task <ServiceResult> Replicate([FromServices] IGameResultService service)
 {
     return(await service.Replicate());
 }
 public async Task <ServiceResult> Insert([FromServices] IGameResultService service, SaveGameResultMessage message)
 {
     return(await service.Save(message));
 }
 /// <summary>
 /// Ctor
 /// </summary>
 /// <param name="gameResultService">Game results service</param>
 public GameResultController(IGameResultService gameResultService) => this.GameResultService = gameResultService;
Esempio n. 8
0
 public GameResultController(IGameResultService gameService, IPlayerResultService playerService)
 {
     this.gameService   = gameService;
     this.playerService = playerService;
 }