async void SignIn() { Microsoft.Xbox.Services.System.SignInResult result = await m_user.SignInAsync(UIDispatcher); if (result.Status == Microsoft.Xbox.Services.System.SignInStatus.Success) { m_xboxLiveContext = new Microsoft.Xbox.Services.XboxLiveContext(m_user); debugText += "\n User signed in: " + m_xboxLiveContext.User.Gamertag; } }
async public void SignIn() { try { SignInResult result = await m_user.SignInAsync(m_uiDispatcher); HandleSignInResult(result); } catch (System.Exception ex) { LogLine("SignIn failed: " + ex.ToString()); } }