public static QueueLobby Join(Invitation invite, int queueId) { var lobby = new QueueLobby(queueId); 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; }