public void Logout() { var liveAuthClient = new LiveAuthClient("000000004811DB42"); string logoutUrl = liveAuthClient.GetLogoutUrl(); var authForm = new LiveAuthWindow( logoutUrl, null, "Logout" ); authForm.LogOut(logoutUrl); }
// TODO: REMOVE Login() / Logout() / OnLiveAuthCompleted() / etc. from this library, as they should not take a dependency // specifically on the Desktop Live ID library public void Login() { var liveAuthClient = new LiveAuthClient("000000004811DB42"); string startUrl = liveAuthClient.GetLoginUrl(new List <string>() { "service::prodkds.dns-cargo.com::MBI_SSL" }); var authForm = new LiveAuthWindow( startUrl, this.OnLiveAuthCompleted, "Login to the Microsoft Account associated with your Band" ); authForm.Login(); }