Skip to content

Decorator registration is not working with Autofac 6.x #36

@junaidahmed92

Description

@junaidahmed92

Hi,
I've implemented CQRS by following your repo. However I noticed that the decorator registration is now working with Autofac 6.x

builder.RegisterGenericDecorator(
typeof(UnitOfWorkCommandHandlerWithResultDecorator<,>),
typeof(ICommandHandler<,>));

I found different links on github with same issue but none of them really helps
autofac/Autofac#1098
kgrzybek/modular-monolith-with-ddd#68

Can you explain how can we solve this issue with latest version of Autofac?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions