Example #1
0
        public GameServer(int port = 50051)
        {
            _port = port;

            _gameServerService = new GameServerServiceImpl();

            _matchMakerService = new MatchMakerService(_gameServerService);

            _server = new Server
            {
                Services =
                {
                    GameServerService.BindService(_gameServerService)
                },
                Ports =
                {
                    new ServerPort("localhost", _port, ServerCredentials.Insecure)
                }
            };
        }