Skip to content

Commit 5eb5db1

Browse files
committed
Error on registring event handlers
1 parent a7c7426 commit 5eb5db1

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ 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))).AsImplementedInterfaces();
3535

3636
builder
3737
.RegisterAssemblyTypes(typeof(CreateOrderCommandValidator).GetTypeInfo().Assembly)

0 commit comments

Comments
 (0)