rebus-org / Rebus.Autofac

:bus: Autofac container adapter for Rebus
https://mookid.dk/category/rebus
Other
12 stars 11 forks source link

Failed message handling invoked twice the handler #18

Closed clegendre closed 4 years ago

clegendre commented 4 years ago

https://github.com/rebus-org/Rebus.Autofac/blob/0474cabe3d887c5cc1fa81d9e228ae5bd9ddbb98/Rebus.Autofac/Autofac/AutofacHandlerActivator.cs#L132

This line should not include the message type itself, since line below already does. GetBaseTypes(includeSelf: false) should fix this issue.

mookid8000 commented 4 years ago

It's fixed in Rebus.Autofac 6.0.0, which is on NuGet.org now. 🙂

Thanks for reporting this and suggesting a fix! I did exactly what you proposed 👍