public async Task BroadcastMessage(MessageInstance msg) { await Clients.All.BroadcastMessage(msg); }
/// <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); });