I’m wondering if I can define the location of the error queue for my application using the fluent (Configure.With()) syntax?
Note this has changed in nservicebus3 to be configured via MessageForwardingInCaseOfFaultConfig
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
There is no easy way since we want to push users to put that setting in the config so that OPS can change it without a recompile. That said you can override where NSB reads the setting and put that in code instead. Do this by implementing:
IProvideConfiguration
Here is an example on how to do it:
https://github.com/NServiceBus/NServiceBus/blob/master/Samples/PubSub/Subscriber1/ConfigOverride.cs