mirror of
https://github.com/tribufu/tribufu-dotnet
synced 2025-06-23 05:04:37 +00:00
Generate project with open-api-generator
This commit is contained in:
32
src/Tribufu/Client/RetryConfiguration.cs
Normal file
32
src/Tribufu/Client/RetryConfiguration.cs
Normal file
@ -0,0 +1,32 @@
|
||||
/*
|
||||
* Tribufu API
|
||||
*
|
||||
* REST API to access Tribufu services.
|
||||
*
|
||||
* The version of the OpenAPI document: 1.1.0
|
||||
* Contact: contact@tribufu.com
|
||||
* Generated by: https://github.com/openapitools/openapi-generator.git
|
||||
*/
|
||||
|
||||
|
||||
using Polly;
|
||||
using RestSharp;
|
||||
|
||||
namespace Tribufu.Client
|
||||
{
|
||||
/// <summary>
|
||||
/// Configuration class to set the polly retry policies to be applied to the requests.
|
||||
/// </summary>
|
||||
public static class RetryConfiguration
|
||||
{
|
||||
/// <summary>
|
||||
/// Retry policy
|
||||
/// </summary>
|
||||
public static Policy<RestResponse> RetryPolicy { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Async retry policy
|
||||
/// </summary>
|
||||
public static AsyncPolicy<RestResponse> AsyncRetryPolicy { get; set; }
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user