internal static CustomLobby Join(Invitation invite) { var lobby = new CustomLobby(); Session.Current.CurrentLobby = lobby; var task = invite.Join(); task.ContinueWith(t => lobby.GotLobbyStatus(t.Result)); return lobby; }
internal static CustomLobby Join(Invitation invite) { var lobby = new CustomLobby(); Session.Current.CurrentLobby = lobby; var task = invite.Join(); task.ContinueWith(t => lobby.GotLobbyStatus(t.Result)); return(lobby); }