/// <summary> /// Gets the email associated with an account /// </summary> /// <returns></returns> private async Task GetEmailAsync() { try { string email = await Task.Run(() => ServerOperations.GetEmail(this.username, this.password)); Device.BeginInvokeOnMainThread(() => this.LabelTitle.Text = $"Enter the confirmation code sent to {email}"); } catch { Device.BeginInvokeOnMainThread(() => this.LabelMessage.Text = "Connection Error: Please Try Again."); } }