James Bradt
unread,Aug 11, 2010, 2:14:27 PM8/11/10Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to ncqrs-dev
Good Day,
As part of the system that I am developing, I want the ability to
publish an event indicating that a command was processed by the domain
model.
The reason for this event is that I have a NSB saga that is above the
domain model (the saga actually sends the command to the domain). One
of the things that the saga can do is handle message timeouts (and
with the correct logic) - re-submittal of commands.
In the saga, I need to know that the command was processed so that I
can handle the saga timeout event correctly.
I know that I could have the saga subscribe to the domain events
(orderAdded, orderCancelled, orderAddFailed), but then the saga would
need to know every possible outcome of the domain, and I think that
over-complicates the saga.
So, (long story short), how would I obtain the ncqrs eventbus inside
the domain so I can publish the 'CommandProcessed' event?
Thanks,
James