public async Task UserSentToGame(INavService NavService) { hubConnection.On <GameModel>(MessageType.SendToGame, async(game) => { Console.WriteLine("I am being sent to the game"); await NavService.NavigateTo <GameViewModel <GameModel>, GameModel>(game); }); }
void InfoAction() { _navigationService.NavigateTo("InfoUser", SelectedItem); }