Esempio n. 1
0
        public IActionResult ProductText()
        {
            for (int i = 0; i < 100000; i++)
            {
                var exchange = "Janitor";    //交换机名
                var routeKey = "TempeCheck"; //路由名
                var propType = "text/plain"; //消息类型
                var queue    = "Queue";      //管道名
                _reRabbitMqService.BasicProductMessage(_channel, propType, queue, exchange, routeKey, $"消息{i}");
                Console.WriteLine($"消息{i}");
            }


            return(Json("true"));
        }