Skip to content

Latest commit

 

History

History
11 lines (6 loc) · 351 Bytes

README.md

File metadata and controls

11 lines (6 loc) · 351 Bytes

Generic C# class for Code Retry Implementation

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));