public static void Gamer_LoginSuccess(object sender, SignedInEventArgs e) { // set the local gamer to the signedin gamer gamer = e.Gamer; // begin asynchronously getting the player's profile. Do this because it may take time to get over the network otherwise. gamer.BeginGetProfile(endGetProfile, gamer); // remove the signedin handler SignedInGamer.SignedIn -= signInHandler; Console.WriteLine("Gamer: " + gamer.Gamertag + " signed in."); int maxNumberOfPlayers = 1; NetworkSession.BeginFind(NetworkSessionType.PlayerMatch, maxNumberOfPlayers, null, endFind, session); }