Not sure what is wrong with my retry policy logic with Service Bus 1.1. We are not able to use Azure service bus. I have tried several different configurations but still no luck getting it to fire. It will just move right to the exception.
TokenProvider provider = TokenProvider.CreateSharedAccessSignatureTokenProvider("RootManageSharedAccessKey", "<key goes here>");
var retryPolicy = new RetryExponential(TimeSpan.FromSeconds(10), TimeSpan.FromMinutes(3),
TimeSpan.FromSeconds(10), TimeSpan.FromMinutes(5), 1000);
var _factory = MessagingFactory.Create("<Namespace Address>", provider);
var _sender = _factory.CreateMessageSender("Analytics");
_sender.RetryPolicy = retryPolicy;
var message = new BrokeredMessage("message");
try
{
_sender.Send(message);
}
catch(Exception e)
{
Console.WriteLine(e);
}
I've made the retry policy abnormally large for testing purposes. As far as I can tell it never retries the message. I've tested the various exceptions including those where istransient is true.
I have read through these posts and articles already:
Has anyone ever ran into this before? I hope i'm just missing something simple.