forked from loafle/openapi-generator-original
Update RetryConfiguration.mustache (#7495)
* Update RetryConfiguration.mustache Use Policy<> instead of RetryPolicy<> to allow for use of wrapped policies. * update samples Co-authored-by: William Cheng <wing328hk@gmail.com>
This commit is contained in:
parent
6db283c03b
commit
b8de51f2fd
@ -1,4 +1,4 @@
|
||||
using Polly.Retry;
|
||||
using Polly;
|
||||
using RestSharp;
|
||||
|
||||
namespace {{packageName}}.Client
|
||||
@ -11,11 +11,11 @@ namespace {{packageName}}.Client
|
||||
/// <summary>
|
||||
/// Retry policy
|
||||
/// </summary>
|
||||
public static RetryPolicy<IRestResponse> RetryPolicy { get; set; }
|
||||
public static Policy<IRestResponse> RetryPolicy { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Async retry policy
|
||||
/// </summary>
|
||||
public static AsyncRetryPolicy<IRestResponse> AsyncRetryPolicy { get; set; }
|
||||
public static AsyncPolicy<IRestResponse> AsyncRetryPolicy { get; set; }
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -1,4 +1,4 @@
|
||||
using Polly.Retry;
|
||||
using Polly;
|
||||
using RestSharp;
|
||||
|
||||
namespace Org.OpenAPITools.Client
|
||||
@ -11,11 +11,11 @@ namespace Org.OpenAPITools.Client
|
||||
/// <summary>
|
||||
/// Retry policy
|
||||
/// </summary>
|
||||
public static RetryPolicy<IRestResponse> RetryPolicy { get; set; }
|
||||
public static Policy<IRestResponse> RetryPolicy { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Async retry policy
|
||||
/// </summary>
|
||||
public static AsyncRetryPolicy<IRestResponse> AsyncRetryPolicy { get; set; }
|
||||
public static AsyncPolicy<IRestResponse> AsyncRetryPolicy { get; set; }
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -1,4 +1,4 @@
|
||||
using Polly.Retry;
|
||||
using Polly;
|
||||
using RestSharp;
|
||||
|
||||
namespace Org.OpenAPITools.Client
|
||||
@ -11,11 +11,11 @@ namespace Org.OpenAPITools.Client
|
||||
/// <summary>
|
||||
/// Retry policy
|
||||
/// </summary>
|
||||
public static RetryPolicy<IRestResponse> RetryPolicy { get; set; }
|
||||
public static Policy<IRestResponse> RetryPolicy { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Async retry policy
|
||||
/// </summary>
|
||||
public static AsyncRetryPolicy<IRestResponse> AsyncRetryPolicy { get; set; }
|
||||
public static AsyncPolicy<IRestResponse> AsyncRetryPolicy { get; set; }
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user