private async void btnSomar_ClickAsync(object sender, EventArgs e) { var calc = new Proxy.CalcWebService(); try { var r = ExecutarWebService(); txtResult.Text = r.ToString(); } catch (Exception E) { await Log(E.Message); } finally { } }
private async Task <int> Somar() { var calc = new Proxy.CalcWebService(); return(calc.Somar(ToInt32(txtX.Text), ToInt32(txtY.Text))); }
private int ExecutarWebService() { var calc = new Proxy.CalcWebService(); return(calc.Somar(Convert.ToInt32(txtX.Text), Convert.ToInt32(txtY.Text))); }