Skip to content

Instantly share code, notes, and snippets.

@christopherhouse
Last active December 16, 2015 20:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save christopherhouse/5489504 to your computer and use it in GitHub Desktop.
Save christopherhouse/5489504 to your computer and use it in GitHub Desktop.
private void DoLogin(MobileServiceAuthenticationProvider provider)
{
var task = this.client.LoginAsync(this, provider).ContinueWith(t => {
MobileServiceUser user = t.Result;
this.BeginInvokeOnMainThread(() => {
UIAlertView alert = new UIAlertView("Logged In!", string.Format ("Hello user {0}", user.UserId),
null, "OK");
alert.Show ();
});
});
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment