RSB 3.0 Customize outgoing messages by destination
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<rhino.esb> | |
<bus threadCount="1" | |
numberOfRetries="5" | |
endpoint="rhino.queues://localhost/test_queue?volatile=true" | |
queueIsolationLevel="ReadCommitted" /> | |
</rhino.esb> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class CustomizeForVolatileEndpoints : ICustomizeOutgoingMessages | |
{ | |
public void Customize(OutgoingMessageInformation messageInformation) | |
{ | |
if (messageInformation.Destination != null && | |
messageInformation.Destination.Uri.Query.ToUpperInvariant().Contains("VOLATILE=TRUE"))) | |
{ | |
messageInformation.MaxAttempts = 2; | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment