Skip to content

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

Open

Description

@mauroservienti

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();

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions