mirror of
https://github.com/OpenAPITools/openapi-generator.git
synced 2025-07-03 06:00:52 +00:00
mark retry class as static (#11369)
This commit is contained in:
parent
2d927a738b
commit
55ffdb791f
@ -1,3 +1,5 @@
|
|||||||
|
{{>partial_header}}
|
||||||
|
|
||||||
using Polly;
|
using Polly;
|
||||||
{{#useRestSharp}}
|
{{#useRestSharp}}
|
||||||
using RestSharp;
|
using RestSharp;
|
||||||
@ -11,7 +13,7 @@ namespace {{packageName}}.Client
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// Configuration class to set the polly retry policies to be applied to the requests.
|
/// Configuration class to set the polly retry policies to be applied to the requests.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public class RetryConfiguration
|
public static class RetryConfiguration
|
||||||
{
|
{
|
||||||
{{#useRestSharp}}
|
{{#useRestSharp}}
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
@ -1,3 +1,13 @@
|
|||||||
|
/*
|
||||||
|
* MultipartFile test
|
||||||
|
*
|
||||||
|
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
||||||
|
*
|
||||||
|
* The version of the OpenAPI document: 1.0.0
|
||||||
|
* Generated by: https://github.com/openapitools/openapi-generator.git
|
||||||
|
*/
|
||||||
|
|
||||||
|
|
||||||
using Polly;
|
using Polly;
|
||||||
using RestSharp;
|
using RestSharp;
|
||||||
|
|
||||||
@ -6,7 +16,7 @@ namespace Org.OpenAPITools.Client
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// Configuration class to set the polly retry policies to be applied to the requests.
|
/// Configuration class to set the polly retry policies to be applied to the requests.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public class RetryConfiguration
|
public static class RetryConfiguration
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Retry policy
|
/// Retry policy
|
||||||
|
@ -1,3 +1,13 @@
|
|||||||
|
/*
|
||||||
|
* OpenAPI Petstore
|
||||||
|
*
|
||||||
|
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
||||||
|
*
|
||||||
|
* The version of the OpenAPI document: 1.0.0
|
||||||
|
* Generated by: https://github.com/openapitools/openapi-generator.git
|
||||||
|
*/
|
||||||
|
|
||||||
|
|
||||||
using Polly;
|
using Polly;
|
||||||
using RestSharp;
|
using RestSharp;
|
||||||
|
|
||||||
@ -6,7 +16,7 @@ namespace Org.OpenAPITools.Client
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// Configuration class to set the polly retry policies to be applied to the requests.
|
/// Configuration class to set the polly retry policies to be applied to the requests.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public class RetryConfiguration
|
public static class RetryConfiguration
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Retry policy
|
/// Retry policy
|
||||||
|
@ -1,3 +1,13 @@
|
|||||||
|
/*
|
||||||
|
* OpenAPI Petstore
|
||||||
|
*
|
||||||
|
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
||||||
|
*
|
||||||
|
* The version of the OpenAPI document: 1.0.0
|
||||||
|
* Generated by: https://github.com/openapitools/openapi-generator.git
|
||||||
|
*/
|
||||||
|
|
||||||
|
|
||||||
using Polly;
|
using Polly;
|
||||||
using System.Net.Http;
|
using System.Net.Http;
|
||||||
|
|
||||||
@ -6,7 +16,7 @@ namespace Org.OpenAPITools.Client
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// Configuration class to set the polly retry policies to be applied to the requests.
|
/// Configuration class to set the polly retry policies to be applied to the requests.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public class RetryConfiguration
|
public static class RetryConfiguration
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Retry policy
|
/// Retry policy
|
||||||
|
@ -1,3 +1,13 @@
|
|||||||
|
/*
|
||||||
|
* OpenAPI Petstore
|
||||||
|
*
|
||||||
|
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
||||||
|
*
|
||||||
|
* The version of the OpenAPI document: 1.0.0
|
||||||
|
* Generated by: https://github.com/openapitools/openapi-generator.git
|
||||||
|
*/
|
||||||
|
|
||||||
|
|
||||||
using Polly;
|
using Polly;
|
||||||
using RestSharp;
|
using RestSharp;
|
||||||
|
|
||||||
@ -6,7 +16,7 @@ namespace Org.OpenAPITools.Client
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// Configuration class to set the polly retry policies to be applied to the requests.
|
/// Configuration class to set the polly retry policies to be applied to the requests.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public class RetryConfiguration
|
public static class RetryConfiguration
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Retry policy
|
/// Retry policy
|
||||||
|
@ -1,3 +1,13 @@
|
|||||||
|
/*
|
||||||
|
* OpenAPI Petstore
|
||||||
|
*
|
||||||
|
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
||||||
|
*
|
||||||
|
* The version of the OpenAPI document: 1.0.0
|
||||||
|
* Generated by: https://github.com/openapitools/openapi-generator.git
|
||||||
|
*/
|
||||||
|
|
||||||
|
|
||||||
using Polly;
|
using Polly;
|
||||||
using RestSharp;
|
using RestSharp;
|
||||||
|
|
||||||
@ -6,7 +16,7 @@ namespace Org.OpenAPITools.Client
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// Configuration class to set the polly retry policies to be applied to the requests.
|
/// Configuration class to set the polly retry policies to be applied to the requests.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public class RetryConfiguration
|
public static class RetryConfiguration
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Retry policy
|
/// Retry policy
|
||||||
|
@ -1,3 +1,13 @@
|
|||||||
|
/*
|
||||||
|
* OpenAPI Petstore
|
||||||
|
*
|
||||||
|
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
||||||
|
*
|
||||||
|
* The version of the OpenAPI document: 1.0.0
|
||||||
|
* Generated by: https://github.com/openapitools/openapi-generator.git
|
||||||
|
*/
|
||||||
|
|
||||||
|
|
||||||
using Polly;
|
using Polly;
|
||||||
using RestSharp;
|
using RestSharp;
|
||||||
|
|
||||||
@ -6,7 +16,7 @@ namespace Org.OpenAPITools.Client
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// Configuration class to set the polly retry policies to be applied to the requests.
|
/// Configuration class to set the polly retry policies to be applied to the requests.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public class RetryConfiguration
|
public static class RetryConfiguration
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Retry policy
|
/// Retry policy
|
||||||
|
@ -1,3 +1,13 @@
|
|||||||
|
/*
|
||||||
|
* OpenAPI Petstore
|
||||||
|
*
|
||||||
|
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
||||||
|
*
|
||||||
|
* The version of the OpenAPI document: 1.0.0
|
||||||
|
* Generated by: https://github.com/openapitools/openapi-generator.git
|
||||||
|
*/
|
||||||
|
|
||||||
|
|
||||||
using Polly;
|
using Polly;
|
||||||
using RestSharp;
|
using RestSharp;
|
||||||
|
|
||||||
@ -6,7 +16,7 @@ namespace Org.OpenAPITools.Client
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// Configuration class to set the polly retry policies to be applied to the requests.
|
/// Configuration class to set the polly retry policies to be applied to the requests.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public class RetryConfiguration
|
public static class RetryConfiguration
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Retry policy
|
/// Retry policy
|
||||||
|
@ -1,3 +1,13 @@
|
|||||||
|
/*
|
||||||
|
* OpenAPI Petstore
|
||||||
|
*
|
||||||
|
* This is a sample server Petstore server. For this sample, you can use the api key `special-key` to test the authorization filters.
|
||||||
|
*
|
||||||
|
* The version of the OpenAPI document: 1.0.0
|
||||||
|
* Generated by: https://github.com/openapitools/openapi-generator.git
|
||||||
|
*/
|
||||||
|
|
||||||
|
|
||||||
using Polly;
|
using Polly;
|
||||||
using RestSharp;
|
using RestSharp;
|
||||||
|
|
||||||
@ -6,7 +16,7 @@ namespace Org.OpenAPITools.Client
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// Configuration class to set the polly retry policies to be applied to the requests.
|
/// Configuration class to set the polly retry policies to be applied to the requests.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public class RetryConfiguration
|
public static class RetryConfiguration
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Retry policy
|
/// Retry policy
|
||||||
|
Loading…
x
Reference in New Issue
Block a user