Exemple #1
0
 private void Button_Click(object sender, RoutedEventArgs e)
 {
     ServiceReference1.TestClient client = new ServiceReference1.TestClient();
     client.EchoCompleted += new EventHandler<ServiceReference1.EchoCompletedEventArgs>(client_EchoCompleted);
     client.EchoAsync("Hello");
     this.txtDebug.Text = this.txtDebug.Text + "Called the service" + Environment.NewLine;
 }
Exemple #2
0
 private void Button_Click(object sender, RoutedEventArgs e)
 {
     ServiceReference1.TestClient client = new ServiceReference1.TestClient();
     client.EchoCompleted += new EventHandler<ServiceReference1.EchoCompletedEventArgs>(client_EchoCompleted);
     client.EchoAsync("Hello world");
     this.AddToDebug("Called the service");
 }