RabbitMQ多消费者支持配置文件

This commit is contained in:
eithday 2025-08-29 14:18:01 +08:00
parent cedb0a9acc
commit b7190320b5
2 changed files with 5 additions and 5 deletions

View File

@ -14,5 +14,10 @@
"HostName": "127.0.0.1",
"Port": 5672,
"VirtualHost": "/"
},
//RabbitMQ
"RabbitMqConsumerOptions": {
"ConsumerCount": 1 // 线
}
}

View File

@ -11,11 +11,6 @@ namespace Admin.NET.Core;
/// </summary>
public class RabbitMqConsumerOptions : IConfigurableOptions
{
/// <summary>
/// 队列名称
/// </summary>
public string QueueName { get; set; }
/// <summary>
/// 消费者数量
/// </summary>