public GameSession(TcpServer server, ChessGameManagerService gameManager) : base(server)
 {
     _gameManager = gameManager;
     _protocol    = new RemoteInstructionProtocol(gameManager.SharedGameState);
 }
 public GameConsoleService(ChessGameManagerService gameManager)
 {
     _gameManager = gameManager;
 }
 public GameServer(IPAddress address, int port, ChessGameManagerService gameManager) : base(address, port)
 {
     _gameManager = gameManager;
 }
Beispiel #4
0
 public GameServerService(ChessGameManagerService gameManager, IOptions <GameServerServiceOptions> options, ILogger <GameServerService> logger)
 {
     _logger     = logger;
     _gameServer = new GameServer(IPAddress.Any, options.Value.Port, gameManager);
     _logger.LogInformation($"Started on port {options.Value.Port}");
 }