c# - Resubmit event to rebus -
c# - Resubmit event to rebus -
after handeling message, need send new message. it's command event pattern, handled command, , need submit event (to same bus).
is bus context message came available in handler? if not how suggest find right bus?
i'm not sure understand you're trying achieve, sounds me implementing referred request/reply? in case it's easy, because handler can this:
public class somerequesthandler { readonly ibus bus; public somerequesthandler(ibus bus) { this.bus = bus; } public void handle(somerequest request) { bus.reply(new somereply(...)); } }
sent messages automatically furnished rebus-return-address
header handler of message utilize destination when bus.reply
.
c# rebus
Comments
Post a Comment