When implementing a global handler for IHandleSagaNotFound, is it possible to obtain information on which saga was tried to load?
I have a design where one published message would have to resurrect 2 sagas.
If a saga cannot be found for a reason, I would throw an exception, so the message is retried and eventually sent to the error queue.
In the other case, I would not throw an exception and just “ignore” the message.
One solution could be to redesign those 2 sagas into one.
But that would be my last option.
I was thinking of implementing a behavior that hooks in before the SagaPersistenceBehavior, to store the saga information somewhere, and use that in the SagaNotFoundHandler.
Anyone already implemented such a behavior?
Some pointers are most welcome.