Exemple #1
0
 private void ButtonSend_Click(object sender, RoutedEventArgs e)
 {
     HubProxy.Invoke("Send", UserName, TextBoxMessage.Text);
     TextBoxMessage.Text = String.Empty;
     TextBoxMessage.Focus();
 }
Exemple #2
0
 private void btnSendAnoymous_Click(object sender, RoutedEventArgs e)
 {
     HubProxy.Invoke("Send", TextBoxMessage.Text);
     TextBoxMessage.Text = String.Empty;
     TextBoxMessage.Focus();
 }
 public void SendMessage(string message)
 {
     _proxy.Invoke("SendMessage", message).Wait();
 }