Example #1
0
        public async Task ConsumeAsync(string topicName, string servicePath)
        {
            HttpContext.Response.Headers.Add("Cache-Control", "no-cache");
            HttpContext.Response.Headers.Add("Content-Type", "text/event-stream; charset=utf-8");

            HttpContext.Response.StatusCode = StatusCodes.Status200OK;

            await _consumerService.WriteAsync(topicName, servicePath, HttpContext);
        }