private void SendAlarm_Click(object sender, RoutedEventArgs e) { AlarmMessage a = new AlarmMessage(); HubProxy.Invoke("RaiseAlarm", a); }
public void RaiseAlarm(AlarmMessage notification) { Clients.All.SendNotification(notification); }