Пример #1
0
 public async Task BroadcastMessage(MessageInstance msg)
 {
     await Clients.All.BroadcastMessage(msg);
 }
Пример #2
0
 /// <summary>
 /// Send Message to all SignalR Clients
 /// </summary>
 /// <param name="msg"></param>
 /// <returns></returns>
 private IObservable <MessageInstance> ToObservable(MessageInstance msg)
 => Observable.FromAsync(async() =>
 {
     await this.target.Clients.All.BroadcastMessage(msg);
     return(msg);
 });