RabbitMQ多消费者支持配置文件
This commit is contained in:
parent
cedb0a9acc
commit
b7190320b5
@ -14,5 +14,10 @@
|
||||
"HostName": "127.0.0.1",
|
||||
"Port": 5672,
|
||||
"VirtualHost": "/"
|
||||
},
|
||||
|
||||
//RabbitMQ消费者配置
|
||||
"RabbitMqConsumerOptions": {
|
||||
"ConsumerCount": 1 // 消费者数量,多消费者实现多线程消费队列
|
||||
}
|
||||
}
|
||||
@ -11,11 +11,6 @@ namespace Admin.NET.Core;
|
||||
/// </summary>
|
||||
public class RabbitMqConsumerOptions : IConfigurableOptions
|
||||
{
|
||||
/// <summary>
|
||||
/// 队列名称
|
||||
/// </summary>
|
||||
public string QueueName { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 消费者数量
|
||||
/// </summary>
|
||||
|
||||
Loading…
Reference in New Issue
Block a user