Example #1
0
 public SocketController(IUserRepository _userRepository, IPersistentLoginHandler _loginHandler, ILobbySocketHandlerRepository _lobbySocketHandlerRepository, ILobbySeekRepository _seekRepository, IGameRepository _gameRepository, IRandomProvider _randomProvider, IGameSocketHandlerRepository _gameSocketHandlerRepository, IGameRepoForSocketHandlers _gameRepoForSocketHandlers, IMoveCollectionTransformer _moveCollectionTransformer)
     : base(_userRepository, _loginHandler)
 {
     lobbySocketHandlerRepository = _lobbySocketHandlerRepository;
     seekRepository = _seekRepository;
     gameRepository = _gameRepository;
     randomProvider = _randomProvider;
     gameSocketHandlerRepository = _gameSocketHandlerRepository;
     gameRepoForSocketHandlers   = _gameRepoForSocketHandlers;
     moveCollectionTransformer   = _moveCollectionTransformer;
 }
 public GameSocketHandler(WebSocket socket, GamePlayer _client, IGameRepoForSocketHandlers _gameRepository, IGameSocketHandlerRepository _handlerRepository, IMoveCollectionTransformer _moveCollectionTransformer, IUserRepository _userRepository, IRandomProvider _randomProvider, string _gameId)
 {
     ws                        = socket;
     client                    = _client;
     gameRepository            = _gameRepository;
     handlerRepository         = _handlerRepository;
     moveCollectionTransformer = _moveCollectionTransformer;
     userRepository            = _userRepository;
     randomProvider            = _randomProvider;
     gameId                    = _gameId;
     Disposed                  = false;
 }