Exemplo n.º 1
0
        public GameBoardState(string whitePlayer, string blackPlayer)
        {
            CurrentPlayer = WhitePlayer = whitePlayer;
            BlackPlayer   = blackPlayer;

            _blackConectionId = _userManager.GetConectionId(blackPlayer);
            _whiteConectionId = _userManager.GetConectionId(whitePlayer);

            InitializeBoardGame();
        }
Exemplo n.º 2
0
        // Send chat request to second user.
        public void SendRequest(string reciverName, string senderName, bool isChat)
        {
            string conectionId = _userManager.GetConectionId(reciverName);

            Clients.Client(conectionId).InteractionRequest(senderName, isChat);
        }