public async Task Post(NotificationHubModel model)
 {
     await _hubContext.Clients.All.SendAsync("notificationReceived", "rest", model.Message);
 }
Beispiel #2
0
 public async Task Notification(NotificationHubModel model)
 {
     await Clients.All.SendAsync("notificationReceived", "server", model.Message);
 }