private void ButtonSend_Click(object sender, RoutedEventArgs e) { HubProxy.Invoke("Send", UserName, TextBoxMessage.Text); TextBoxMessage.Text = String.Empty; TextBoxMessage.Focus(); }
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(); }