Hi Team,
I am trying to integrate Polly Retry policy in our project for one off the database call.
Like for below method
Public Void GetDetailsFromDB()
{
//Do stuff
}
For this I want to retry 3 times if it fails, so we wrapped up below code with like
var policy=Policy
.Handle<Exception>
.OrResult<HttpREsponseMessage>(r=> httpStatusCode=500)
.Retry(3, ex,retcount)=>
{
});