Use interfaces for Polly retry policies (#20821)

This enables use of ResiliencePipelineBuilder which returns the
interface when calling AsSyncPolicy / AsAsyncPolicy
This commit is contained in:
Jacob Ilsø
2025-03-12 09:49:03 +01:00
committed by GitHub
parent 7d9e1ecc22
commit 7f40ce0dd8
15 changed files with 32 additions and 32 deletions

View File

@@ -22,11 +22,11 @@ namespace Org.OpenAPITools.Client
/// <summary>
/// Retry policy
/// </summary>
public static Policy<RestResponse> RetryPolicy { get; set; }
public static ISyncPolicy<RestResponse> RetryPolicy { get; set; }
/// <summary>
/// Async retry policy
/// </summary>
public static AsyncPolicy<RestResponse> AsyncRetryPolicy { get; set; }
public static IAsyncPolicy<RestResponse> AsyncRetryPolicy { get; set; }
}
}