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:
commit
e19e6a13bb
@ -6,7 +6,7 @@
|
|||||||
|
|
||||||
namespace Admin.NET.Application;
|
namespace Admin.NET.Application;
|
||||||
|
|
||||||
public class RabbitMqHandler : IMessageHandler, ISingleton
|
public class RabbitMqHandler : IMessageHandler
|
||||||
{
|
{
|
||||||
public string QueueName => "admin.net.rabbitmq"; // 队列名称
|
public string QueueName => "admin.net.rabbitmq"; // 队列名称
|
||||||
|
|
||||||
|
|||||||
@ -6,7 +6,7 @@
|
|||||||
|
|
||||||
namespace Admin.NET.Core;
|
namespace Admin.NET.Core;
|
||||||
|
|
||||||
public interface IMessageHandler
|
public interface IMessageHandler: ITransient
|
||||||
{
|
{
|
||||||
string QueueName { get; }
|
string QueueName { get; }
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user