Exemplo n.º 1
0
 public void Consume(string queue)
 {
     _RabbitMQClient.Consume(queue, (message) =>
     {
         _logger.LogInformation($"[{DateTimeOffset.Now:HH:mm:ss.fffff}] 队列 {queue} 收到消息:{message}");
         Thread.Sleep(100);
     });