diff --git a/modules/openapi-generator/src/main/resources/csharp-netcore/Configuration.mustache b/modules/openapi-generator/src/main/resources/csharp-netcore/Configuration.mustache index f6d577f2398..9471c25da05 100644 --- a/modules/openapi-generator/src/main/resources/csharp-netcore/Configuration.mustache +++ b/modules/openapi-generator/src/main/resources/csharp-netcore/Configuration.mustache @@ -92,11 +92,13 @@ namespace {{packageName}}.Client /// The servers private IList> _servers; {{/servers.0}} + {{#hasHttpSignatureMethods}} /// /// HTTPSigning configuration /// private HTTPSigningConfiguration _HTTPSigningConfiguration = null; + {{/hasHttpSignatureMethods}} #endregion Private Members #region Constructors @@ -467,6 +469,7 @@ namespace {{packageName}}.Client return url; } {{/servers.0}} + {{#hasHttpSignatureMethods}} /// /// Gets and Sets the HTTPSigningConfiuration @@ -476,6 +479,7 @@ namespace {{packageName}}.Client get { return _HTTPSigningConfiguration; } set { _HTTPSigningConfiguration = value; } } + {{/hasHttpSignatureMethods}} #endregion Properties @@ -553,9 +557,11 @@ namespace {{packageName}}.Client Username = second.Username ?? first.Username, Password = second.Password ?? first.Password, AccessToken = second.AccessToken ?? first.AccessToken, + {{#hasHttpSignatureMethods}} + HTTPSigningConfiguration = second.HTTPSigningConfiguration ?? first.HTTPSigningConfiguration, + {{/hasHttpSignatureMethods}} TempFolderPath = second.TempFolderPath ?? first.TempFolderPath, - DateTimeFormat = second.DateTimeFormat ?? first.DateTimeFormat, - HTTPSigningConfiguration = second.HTTPSigningConfiguration ?? first.HTTPSigningConfiguration + DateTimeFormat = second.DateTimeFormat ?? first.DateTimeFormat }; return config; } diff --git a/modules/openapi-generator/src/main/resources/csharp-netcore/IReadableConfiguration.mustache b/modules/openapi-generator/src/main/resources/csharp-netcore/IReadableConfiguration.mustache index 6c78ec21e78..dba74b47481 100644 --- a/modules/openapi-generator/src/main/resources/csharp-netcore/IReadableConfiguration.mustache +++ b/modules/openapi-generator/src/main/resources/csharp-netcore/IReadableConfiguration.mustache @@ -96,10 +96,12 @@ namespace {{packageName}}.Client /// /// X509 Certificate collection. X509CertificateCollection ClientCertificates { get; } + {{#hasHttpSignatureMethods}} /// /// Gets the HTTPSigning configuration /// HTTPSigningConfiguration HTTPSigningConfiguration { get; } + {{/hasHttpSignatureMethods}} } } diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools/Client/Configuration.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools/Client/Configuration.cs index 3f45125b889..ff0b02cd6ef 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools/Client/Configuration.cs +++ b/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools/Client/Configuration.cs @@ -560,9 +560,9 @@ namespace Org.OpenAPITools.Client Username = second.Username ?? first.Username, Password = second.Password ?? first.Password, AccessToken = second.AccessToken ?? first.AccessToken, + HTTPSigningConfiguration = second.HTTPSigningConfiguration ?? first.HTTPSigningConfiguration, TempFolderPath = second.TempFolderPath ?? first.TempFolderPath, - DateTimeFormat = second.DateTimeFormat ?? first.DateTimeFormat, - HTTPSigningConfiguration = second.HTTPSigningConfiguration ?? first.HTTPSigningConfiguration + DateTimeFormat = second.DateTimeFormat ?? first.DateTimeFormat }; return config; } diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools/Client/Configuration.cs b/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools/Client/Configuration.cs index c4ad0881b5e..dacc721f192 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools/Client/Configuration.cs +++ b/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools/Client/Configuration.cs @@ -566,9 +566,9 @@ namespace Org.OpenAPITools.Client Username = second.Username ?? first.Username, Password = second.Password ?? first.Password, AccessToken = second.AccessToken ?? first.AccessToken, + HTTPSigningConfiguration = second.HTTPSigningConfiguration ?? first.HTTPSigningConfiguration, TempFolderPath = second.TempFolderPath ?? first.TempFolderPath, - DateTimeFormat = second.DateTimeFormat ?? first.DateTimeFormat, - HTTPSigningConfiguration = second.HTTPSigningConfiguration ?? first.HTTPSigningConfiguration + DateTimeFormat = second.DateTimeFormat ?? first.DateTimeFormat }; return config; }