Hey,
To handle a recovery situation with our system, our ErrorHandler can fire a Command onto the CommandBus asking an AR to temporarily suspend itself. In turn, it fires an event to acknowledge this, and an event handler in the AR sets “suspended = true”.
I would ideally like to use the same Command for different AR types (so they can share the “recovery / suspend” code), but it seems like only one CommandHandler per Command can be registered.
I can’t just use an interceptor as the state needs to maintained across restarts (in the EventStore).
Any thoughts?
JAmes