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