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