Esempio n. 1
0
 public async Task TriggerAlert(AlertShortViewModel alert, IReadOnlyList <string> members)
 {
     if (Clients != null)
     {
         await this.Clients.All.SendAsync("AlertTriggered", alert);
     }
 }
Esempio n. 2
0
 public async Task TriggerAlertDummy(AlertShortViewModel alert, string userId)
 {
     if (Clients != null)
     {
         await this.Clients.User(userId).SendAsync("AlertTriggered", alert);
     }
 }
 public async void NotifyTeamMembers(AlertShortViewModel alert, IReadOnlyList <string> members)
 {
     await this.alertsHub.TriggerAlert(alert, members);
 }