예제 #1
0
 public ResultsApi(JsonSerializerOptions jsonOptions,
                   JsonObjectSerializer jsonSerializer, IPlayerResultTable playerResultTable,
                   IUsersTable usersTable, IPlayerTable playerTable)
     : base(jsonOptions, jsonSerializer)
 {
     this.playerResultTable = playerResultTable;
     this.usersTable        = usersTable;
     this.playerTable       = playerTable;
 }
예제 #2
0
 public PlayersApi(IPlayerTable playerTable, IMapper mapper, JsonSerializerOptions jsonOptions,
                   JsonObjectSerializer jsonSerializer, IAuthorize authorize,
                   IPlayerLogTable playerLogTable, IPlayerResultTable playerResultTable)
     : base(playerTable, jsonOptions, jsonSerializer)
 {
     this.mapper            = mapper;
     this.authorize         = authorize;
     this.playerLogTable    = playerLogTable;
     this.playerResultTable = playerResultTable;
 }
예제 #3
0
        public PlayersPlayApi(IPlayerTable playerTable, JsonSerializerOptions jsonOptions,
                              JsonObjectSerializer jsonSerializer, IAuthorize authorize, IGameClient gameClient,
                              IPlayerLogTable playerLogTable, IPlayerResultTable playerResultTable,
                              IPlayerGameLeaseManager playerGameLease, IConfiguration configuration,
                              IMessageSender messageSender)
            : base(playerTable, jsonOptions, jsonSerializer)
        {
            this.authorize         = authorize;
            this.gameClient        = gameClient;
            this.playerLogTable    = playerLogTable;
            this.playerResultTable = playerResultTable;
            this.playerGameLease   = playerGameLease;
            this.messageSender     = messageSender;

            if (serviceBusConnectionString == null)
            {
                serviceBusConnectionString = configuration["AzureWebJobsServiceBus"];
            }
        }
 public TournamentApi(IPlayerTable playerTable, JsonSerializerOptions jsonOptions, JsonObjectSerializer jsonSerializer)
 {
     this.playerTable    = playerTable;
     this.jsonOptions    = jsonOptions;
     this.jsonSerializer = jsonSerializer;
 }
 protected PlayersApiBase(IPlayerTable playerTable, JsonSerializerOptions jsonOptions, JsonObjectSerializer jsonSerializer)
     : base(jsonOptions, jsonSerializer)
 {
     this.playerTable = playerTable;
 }