admin/src/Oms.Application/Messaging/OrderBatchRabbitMqOptions.cs
zzh 4f3bbd17bc feat(order): 订单批量任务 RabbitMQ 异步处理与治理 API
引入批量 Job 表、RabbitMQ 队列与消费者,支持导入/小包创建及我的订单批量操作异步化,并提供任务列表、重试失败、取消 pending 与 DLX 监控接口及测试。

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-07-08 09:52:22 +08:00

33 lines
817 B
C#

namespace Oms.Application.Messaging;
public class OrderBatchRabbitMqOptions
{
public const string SectionName = "OrderBatch:RabbitMq";
public bool Enabled { get; set; }
public string HostName { get; set; } = "localhost";
public int Port { get; set; } = 5672;
public string UserName { get; set; } = "oms";
public string Password { get; set; } = "oms123";
public string VirtualHost { get; set; } = "/oms";
public ushort PrefetchCount { get; set; } = 5;
public int MaxRetryCount { get; set; } = 3;
/// <summary>
/// DLX 队列堆积告警阈值。
/// </summary>
public uint DlxAlertThreshold { get; set; } = 100;
/// <summary>
/// 队列监控轮询间隔(秒)。
/// </summary>
public int MonitorIntervalSeconds { get; set; } = 300;
}