Skip to content

Commit 25a7060

Browse files
committed
Fix issue ordering event handler registration
1 parent e447412 commit 25a7060

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

src/Services/Ordering/Ordering.API/Infrastructure/AutofacModules/MediatorModule.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,9 @@ protected override void Load(ContainerBuilder builder)
3131
builder.RegisterAssemblyTypes(typeof(ValidateOrAddBuyerAggregateWhenOrderStartedDomainEventHandler).GetTypeInfo().Assembly)
3232
.As(o => o.GetInterfaces()
3333
.Where(i => i.IsClosedTypeOf(typeof(IAsyncNotificationHandler<>)))
34-
.Select(i => new KeyedService("IAsyncNotificationHandler", i)));
34+
.Select(i => new KeyedService("IAsyncNotificationHandler", i)))
35+
.AsImplementedInterfaces();
36+
3537

3638
builder
3739
.RegisterAssemblyTypes(typeof(CreateOrderCommandValidator).GetTypeInfo().Assembly)

0 commit comments

Comments
 (0)