Exemple #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);
 }
Exemple #2
0
 private async Task PublishToCurrentUser(SignalREvent @event)
 {
     await Clients.Client(Context.ConnectionId).ReceiveEvent(@event);
 }