Пример #1
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();
            }
        }
Пример #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();
            }
        }
Пример #3
0
 private async void StartService()
 {
     GoDaddyTestClient tc = new GoDaddyTestClient();
     await tc.GetDataAsync(5);
 }
Пример #4
0
 private async void StartService()
 {
     GoDaddyTestClient tc = new GoDaddyTestClient();
     await tc.GetDataAsync(5);
 }