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

Popular posts from this blog

php - failed to open stream: HTTP request failed! HTTP/1.0 400 Bad Request -

java - How to filter a backspace keyboard input -

java - Show Soft Keyboard when EditText Appears -