skip to Main Content

How to await on a message subscribed from Redis?

I have the following code structure: private AutoResetEvent _renderCompleteEvent = new AutoResetEvent(false); // GET: api/<controller> [HttpGet] public async Task<string> GetAsync() { // Subscribe to the response from Redis publish _pubsub.Subscribe("x", (channel, message) => RenderComplete(message)); // Ideally I would like to…

VIEW QUESTION
Back To Top
Search