mark retry class as static (#11369)

This commit is contained in:
William Cheng 2022-01-21 16:36:19 +08:00 committed by GitHub
parent 2d927a738b
commit 55ffdb791f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
9 changed files with 91 additions and 9 deletions

View File

@ -1,3 +1,5 @@
{{>partial_header}}
using Polly;
{{#useRestSharp}}
using RestSharp;
@ -11,7 +13,7 @@ namespace {{packageName}}.Client
/// <summary>
/// Configuration class to set the polly retry policies to be applied to the requests.
/// </summary>
public class RetryConfiguration
public static class RetryConfiguration
{
{{#useRestSharp}}
/// <summary>

View File

@ -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 RestSharp;
@ -6,7 +16,7 @@ namespace Org.OpenAPITools.Client
/// <summary>
/// Configuration class to set the polly retry policies to be applied to the requests.
/// </summary>
public class RetryConfiguration
public static class RetryConfiguration
{
/// <summary>
/// Retry policy

View File

@ -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 RestSharp;
@ -6,7 +16,7 @@ namespace Org.OpenAPITools.Client
/// <summary>
/// Configuration class to set the polly retry policies to be applied to the requests.
/// </summary>
public class RetryConfiguration
public static class RetryConfiguration
{
/// <summary>
/// Retry policy

View File

@ -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 System.Net.Http;
@ -6,7 +16,7 @@ namespace Org.OpenAPITools.Client
/// <summary>
/// Configuration class to set the polly retry policies to be applied to the requests.
/// </summary>
public class RetryConfiguration
public static class RetryConfiguration
{
/// <summary>
/// Retry policy

View File

@ -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 RestSharp;
@ -6,7 +16,7 @@ namespace Org.OpenAPITools.Client
/// <summary>
/// Configuration class to set the polly retry policies to be applied to the requests.
/// </summary>
public class RetryConfiguration
public static class RetryConfiguration
{
/// <summary>
/// Retry policy

View File

@ -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 RestSharp;
@ -6,7 +16,7 @@ namespace Org.OpenAPITools.Client
/// <summary>
/// Configuration class to set the polly retry policies to be applied to the requests.
/// </summary>
public class RetryConfiguration
public static class RetryConfiguration
{
/// <summary>
/// Retry policy

View File

@ -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 RestSharp;
@ -6,7 +16,7 @@ namespace Org.OpenAPITools.Client
/// <summary>
/// Configuration class to set the polly retry policies to be applied to the requests.
/// </summary>
public class RetryConfiguration
public static class RetryConfiguration
{
/// <summary>
/// Retry policy

View File

@ -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 RestSharp;
@ -6,7 +16,7 @@ namespace Org.OpenAPITools.Client
/// <summary>
/// Configuration class to set the polly retry policies to be applied to the requests.
/// </summary>
public class RetryConfiguration
public static class RetryConfiguration
{
/// <summary>
/// Retry policy

View File

@ -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 RestSharp;
@ -6,7 +16,7 @@ namespace Org.OpenAPITools.Client
/// <summary>
/// Configuration class to set the polly retry policies to be applied to the requests.
/// </summary>
public class RetryConfiguration
public static class RetryConfiguration
{
/// <summary>
/// Retry policy