Exemplo n.º 1
0
 public async Async.Task QueueSignalrEvent(EventMessage eventMessage)
 {
     var message = new SignalREvent("events", new List <EventMessage>()
     {
         eventMessage
     });
     await _queue.SendMessage("signalr-events", JsonSerializer.Serialize(message), StorageType.Config);
 }
Exemplo n.º 2
0
 private async Task PublishToCurrentUser(SignalREvent @event)
 {
     await Clients.Client(Context.ConnectionId).ReceiveEvent(@event);
 }