Ejemplo n.º 1
0
 private void requestButton_Click(object sender, EventArgs e)
 {
     WriteConsole("Request", "Server", actionTextBox.Text, payloadTextBox.Text);
     slavePipe.SendRequestAsync(actionTextBox.Text, payloadTextBox.Text).ContinueWith(
         t =>
     {
         WriteConsole("Response", "Server", t.Result.action, t.Result.payload);
     });
 }