Usage: Example 1 :
var httpResponse = await CodeRetryExtensions.Retry(() => httpClient.PostAsJsonAsync(argRoute, request), TimeSpan.FromMinutes(1), 2).ConfigureAwait(false);
Example 2:
Task.Run(() => CodeRetryExtensions.Retry(() => Print(), TimeSpan.FromMinutes(1), 3));