public ResultsApi(IMapper mapper, JsonSerializerOptions jsonOptions,
                   JsonObjectSerializer jsonSerializer, IPlayerResultTable playerResultTable)
     : base(jsonOptions, jsonSerializer)
 {
     this.mapper            = mapper;
     this.playerResultTable = playerResultTable;
 }
示例#2
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;
 }
示例#3
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;
 }
示例#4
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"];
            }
        }