Deferring publish-messages in Rebus -
i want defer message meant published, rebus returns message sending queue. expecting send them actual recipients.
am doing wrong here or have understood defer-function wrong?
that's how bus.defer
works - it'll send message return address specified in headers.returnaddress
header of message, default set input queue of sender.
you can have timeout manager send message somewhere else explicitly setting return address of message so:
// specify address reply bus.attachheader(msg, headers.returnaddress, "somewhereelse"); // defer message bus.defer(tothefuture, msg);
but in case, since want message published, suggest add local handler publishes message when it's returned timeout manager.
Comments
Post a Comment