public async Task TriggerAlert(AlertShortViewModel alert, IReadOnlyList <string> members) { if (Clients != null) { await this.Clients.All.SendAsync("AlertTriggered", alert); } }
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); }