forked from loafle/openapi-generator-original
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:
@@ -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; }
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user