/// <summary> /// Helper method to leave a game by sending a leave message to the joined game host. /// </summary> private async Task LeaveGameAsync(string playerName) { PlayerMessage command = new PlayerMessage() { Command = PlayerMessageType.Leave, PlayerName = playerName }; await _managerCommunicationChannel .SendRemoteMessageAsync(command); }