public NodeManager(IConnectionMultiplexer redisConnection, ILogger <NodeManager> logger, IOptions <GametekiLobbyOptions> options, IGameNodeService gameNodeService)
        {
            this.logger          = logger;
            this.gameNodeService = gameNodeService;
            this.options         = options.Value;

            subscriber = redisConnection.GetSubscriber();
        }
示例#2
0
        public LobbyService(IConnectionMultiplexer redisConnection, IOptions <GametekiLobbyOptions> options, ILogger <LobbyService> logger)
        {
            this.options = options.Value;

            Logger     = logger;
            subscriber = redisConnection.GetSubscriber();
            database   = redisConnection.GetDatabase();

            UsersByConnectionId = new Dictionary <string, LobbyUser>();
            GamesById           = new Dictionary <Guid, LobbyGame>();
        }
 public ThronetekiHub(
     IThronetekiLobbyService lobbyService,
     IConnectionMultiplexer redisConnection,
     IGameNodeService gameNodeService,
     IOptions <AuthTokenOptions> tokenOptions,
     IHttpClient httpClient,
     IOptions <GametekiLobbyOptions> options)
     : base(lobbyService, redisConnection, gameNodeService, tokenOptions)
 {
     this.httpClient        = httpClient;
     this.options           = options.Value;
     thronetekiLobbyService = lobbyService;
 }