MassTransit Command 测试预备代码
continuous-integration/drone/push Build is passing

This commit is contained in:
2024-09-27 09:54:16 +08:00
parent 02db483119
commit 2461646d5f
10 changed files with 125 additions and 11 deletions
+1 -1
View File
@@ -155,7 +155,7 @@ builder.Services.AddMediator(cfg =>
builder.Services.AddMassTransit(cfg =>
{
// 注册消费者
cfg.AddConsumer<AddSubjectConsumer>(); // 替换为你的消费者类
cfg.AddConsumer<AddSubjectTriggerConsumer>(); // 替换为你的消费者类
// 使用 InMemory 作为消息传递机制
cfg.UsingInMemory((context, cfg) =>
@@ -18,6 +18,7 @@ namespace IRaCIS.Core.API
// 全局忽略 DomainEvents 属性
automapper.AddGlobalIgnore(nameof(Entity.DomainEvents));
automapper.AddGlobalIgnore(nameof(Entity.DomainCommands));
#region 使 IncludeMembers 使
//mapping an EntityFramework Core DbContext-object.