改为Transient方式注入,达到消息消费隔离,线程安全
This commit is contained in:
parent
fd07c3862a
commit
825d307f7e
@ -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