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