Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Delayed delivery depends on the error queue defined at the endpoint configuration level #525

Open
mauroservienti opened this issue Feb 19, 2021 · 0 comments

Comments

@mauroservienti
Copy link
Member

ASQ transport has a native delayed delivery feature that in case of failure in dispatching the delayed message moves it to the error queue. For historical reasons, the transport used to detect the endpoint configured error queue and use that as the delayed delivery error queue. With the new transport seam and the ability to use transports in raw mode without an NServiceBus endpoint the following hack is needed:

var nativeDelayedDeliveryErrorQueue = DelayedDelivery.DelayedDeliveryPoisonQueue
?? hostSettings.CoreSettings?.GetOrDefault<string>(ErrorQueueSettings.SettingsKey)
?? receiversSettings.Select(settings => settings.ErrorQueue).FirstOrDefault();

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant