rebus-org / Rebus

:bus: Simple and lean service bus implementation for .NET
https://mookid.dk/category/rebus
Other
2.32k stars 363 forks source link

Creating a generic IFailed<T> to catch unimplemented second level retries #1100

Closed stambunan closed 1 year ago

stambunan commented 1 year ago

Hello,

Is there a way to create a generic IFailed to catch unimplemented second level retries?

I have a question on https://stackoverflow.com/questions/76520100/is-there-a-way-to-create-a-generic-ifailedt-to-catch-unimplemented-second-leve and was hoping for some guidance.

In short, we have second-level retries enabled and not all our handlers are implementing IFailed<SomeCommand>. Is there a way to register a generic IHandleMessages<IFailed<T>> to handle all other other second level retries?

labeled commented 1 year ago

Have you tried IHandleMessages<IFailed<object>>?

stambunan commented 1 year ago

Closing as it's been answered https://stackoverflow.com/a/76817369/1835622