private async void btnAccept_Click(object sender, RoutedEventArgs e)
        {
            string message =  txtInput.Text;
            try
            {
                GoDaddyTestClient client = new GoDaddyTestClient();
                message = await client.GetDataAsync(Convert.ToInt32(message));
                ShowMessage(message);
                await client.CloseAsync();
            }
            catch (Exception)
            {

                ShowError();
            }
        }
Exemple #2
0
        private async void btnAccept_Click(object sender, RoutedEventArgs e)
        {
            string message = txtInput.Text;

            try
            {
                GoDaddyTestClient client = new GoDaddyTestClient();
                message = await client.GetDataAsync(Convert.ToInt32(message));

                ShowMessage(message);
                await client.CloseAsync();
            }
            catch (Exception)
            {
                ShowError();
            }
        }
 private async void StartService()
 {
     GoDaddyTestClient tc = new GoDaddyTestClient();
     await tc.GetDataAsync(5);
 }
Exemple #4
0
 private async void StartService()
 {
     GoDaddyTestClient tc = new GoDaddyTestClient();
     await tc.GetDataAsync(5);
 }