Merge pull request '改为Transient方式注入,达到消息消费隔离,线程安全' (#436) from eithday/Admin.NET.Pro:v2 into v2

Reviewed-on: https://code.adminnet.top/Admin.NET/Admin.NET.Pro/pulls/436
This commit is contained in:
zuohuaijun 2025-08-31 11:15:41 +08:00
commit e19e6a13bb
2 changed files with 2 additions and 2 deletions

View File

@ -6,7 +6,7 @@
namespace Admin.NET.Application;
public class RabbitMqHandler : IMessageHandler, ISingleton
public class RabbitMqHandler : IMessageHandler
{
public string QueueName => "admin.net.rabbitmq"; // 队列名称

View File

@ -6,7 +6,7 @@
namespace Admin.NET.Core;
public interface IMessageHandler
public interface IMessageHandler: ITransient
{
string QueueName { get; }