I've defined a Polly policy to perform retry when an exception occurs. The policy is defined as
policy = Policy.Handle<ReconnectException>().Retry(retryCount);
and I call my method with
policy.Execute(()=>SendMessageWithRetryPolicy(message));
How do I perform a reset so that if my MaxRetryCount is set to 5 and the message has successfully beign dispacted at the 3 step I have again 5 step to perform?
Thanks in advance