From 9300a68ad7cda463f179689396ebf3c43b691353 Mon Sep 17 00:00:00 2001 From: devhl-labs Date: Sun, 29 Sep 2024 11:11:06 -0400 Subject: [PATCH] [csharp][generichost] Fix local var (#19642) * fix local var * revert one unneeded breaking change * revert one unneeded breaking change --- .../OnErrorDefaultImplementation.mustache | 4 +- .../csharp/libraries/generichost/api.mustache | 22 +- .../src/Org.OpenAPITools/Api/DefaultApi.cs | 26 +- .../src/Org.OpenAPITools/Api/DefaultApi.cs | 26 +- .../src/Org.OpenAPITools/Api/DefaultApi.cs | 26 +- .../Org.OpenAPITools/Api/AnotherFakeApi.cs | 26 +- .../src/Org.OpenAPITools/Api/DefaultApi.cs | 130 ++--- .../src/Org.OpenAPITools/Api/FakeApi.cs | 520 +++++++++--------- .../Api/FakeClassnameTags123Api.cs | 26 +- .../src/Org.OpenAPITools/Api/PetApi.cs | 234 ++++---- .../src/Org.OpenAPITools/Api/StoreApi.cs | 104 ++-- .../src/Org.OpenAPITools/Api/UserApi.cs | 208 +++---- .../src/Org.OpenAPITools/Api/DefaultApi.cs | 26 +- .../Org.OpenAPITools/Api/AnotherFakeApi.cs | 26 +- .../src/Org.OpenAPITools/Api/DefaultApi.cs | 130 ++--- .../src/Org.OpenAPITools/Api/FakeApi.cs | 520 +++++++++--------- .../Api/FakeClassnameTags123Api.cs | 26 +- .../src/Org.OpenAPITools/Api/PetApi.cs | 234 ++++---- .../src/Org.OpenAPITools/Api/StoreApi.cs | 104 ++-- .../src/Org.OpenAPITools/Api/UserApi.cs | 208 +++---- .../src/Org.OpenAPITools/Api/DefaultApi.cs | 26 +- .../src/Org.OpenAPITools/Api/DefaultApi.cs | 26 +- .../src/Org.OpenAPITools/Api/DefaultApi.cs | 26 +- .../src/Org.OpenAPITools/Api/DefaultApi.cs | 26 +- .../Org.OpenAPITools/Api/AnotherFakeApi.cs | 26 +- .../src/Org.OpenAPITools/Api/DefaultApi.cs | 130 ++--- .../src/Org.OpenAPITools/Api/FakeApi.cs | 520 +++++++++--------- .../Api/FakeClassnameTags123Api.cs | 26 +- .../src/Org.OpenAPITools/Api/PetApi.cs | 234 ++++---- .../src/Org.OpenAPITools/Api/StoreApi.cs | 104 ++-- .../src/Org.OpenAPITools/Api/UserApi.cs | 208 +++---- .../src/Org.OpenAPITools/Api/DefaultApi.cs | 26 +- .../Org.OpenAPITools/Api/AnotherFakeApi.cs | 26 +- .../src/Org.OpenAPITools/Api/DefaultApi.cs | 130 ++--- .../src/Org.OpenAPITools/Api/FakeApi.cs | 520 +++++++++--------- .../Api/FakeClassnameTags123Api.cs | 26 +- .../src/Org.OpenAPITools/Api/PetApi.cs | 234 ++++---- .../src/Org.OpenAPITools/Api/StoreApi.cs | 104 ++-- .../src/Org.OpenAPITools/Api/UserApi.cs | 208 +++---- .../src/Org.OpenAPITools/Api/DefaultApi.cs | 26 +- .../src/Org.OpenAPITools/Api/DefaultApi.cs | 26 +- .../src/Org.OpenAPITools/Api/DefaultApi.cs | 26 +- .../src/Org.OpenAPITools/Api/DefaultApi.cs | 26 +- .../Org.OpenAPITools/Api/AnotherFakeApi.cs | 26 +- .../src/Org.OpenAPITools/Api/DefaultApi.cs | 130 ++--- .../src/Org.OpenAPITools/Api/FakeApi.cs | 520 +++++++++--------- .../Api/FakeClassnameTags123Api.cs | 26 +- .../src/Org.OpenAPITools/Api/PetApi.cs | 234 ++++---- .../src/Org.OpenAPITools/Api/StoreApi.cs | 104 ++-- .../src/Org.OpenAPITools/Api/UserApi.cs | 208 +++---- .../Org.OpenAPITools/Api/AnotherFakeApi.cs | 26 +- .../src/Org.OpenAPITools/Api/DefaultApi.cs | 130 ++--- .../src/Org.OpenAPITools/Api/FakeApi.cs | 520 +++++++++--------- .../Api/FakeClassnameTags123Api.cs | 26 +- .../src/Org.OpenAPITools/Api/PetApi.cs | 234 ++++---- .../src/Org.OpenAPITools/Api/StoreApi.cs | 104 ++-- .../src/Org.OpenAPITools/Api/UserApi.cs | 208 +++---- .../src/Org.OpenAPITools/Api/DefaultApi.cs | 26 +- .../Org.OpenAPITools/Api/AnotherFakeApi.cs | 26 +- .../src/Org.OpenAPITools/Api/DefaultApi.cs | 130 ++--- .../src/Org.OpenAPITools/Api/FakeApi.cs | 520 +++++++++--------- .../Api/FakeClassnameTags123Api.cs | 26 +- .../src/Org.OpenAPITools/Api/PetApi.cs | 234 ++++---- .../src/Org.OpenAPITools/Api/StoreApi.cs | 104 ++-- .../src/Org.OpenAPITools/Api/UserApi.cs | 208 +++---- .../Org.OpenAPITools/Api/AnotherFakeApi.cs | 26 +- .../src/Org.OpenAPITools/Api/DefaultApi.cs | 130 ++--- .../src/Org.OpenAPITools/Api/FakeApi.cs | 520 +++++++++--------- .../Api/FakeClassnameTags123Api.cs | 26 +- .../src/Org.OpenAPITools/Api/PetApi.cs | 234 ++++---- .../src/Org.OpenAPITools/Api/StoreApi.cs | 104 ++-- .../src/Org.OpenAPITools/Api/UserApi.cs | 208 +++---- .../src/Org.OpenAPITools/Api/DefaultApi.cs | 26 +- .../Org.OpenAPITools/Api/AnotherFakeApi.cs | 26 +- .../src/Org.OpenAPITools/Api/DefaultApi.cs | 130 ++--- .../src/Org.OpenAPITools/Api/FakeApi.cs | 520 +++++++++--------- .../Api/FakeClassnameTags123Api.cs | 26 +- .../src/Org.OpenAPITools/Api/PetApi.cs | 234 ++++---- .../src/Org.OpenAPITools/Api/StoreApi.cs | 104 ++-- .../src/Org.OpenAPITools/Api/UserApi.cs | 208 +++---- 80 files changed, 5824 insertions(+), 5824 deletions(-) diff --git a/modules/openapi-generator/src/main/resources/csharp/libraries/generichost/OnErrorDefaultImplementation.mustache b/modules/openapi-generator/src/main/resources/csharp/libraries/generichost/OnErrorDefaultImplementation.mustache index 7af8e07602d..a1a9fa976f5 100644 --- a/modules/openapi-generator/src/main/resources/csharp/libraries/generichost/OnErrorDefaultImplementation.mustache +++ b/modules/openapi-generator/src/main/resources/csharp/libraries/generichost/OnErrorDefaultImplementation.mustache @@ -1,2 +1,2 @@ - if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while sending the request to the server."); \ No newline at end of file + if (!suppressDefaultLogLocalVar) + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); \ No newline at end of file diff --git a/modules/openapi-generator/src/main/resources/csharp/libraries/generichost/api.mustache b/modules/openapi-generator/src/main/resources/csharp/libraries/generichost/api.mustache index 8c02da8f17c..1b414eb8e5d 100644 --- a/modules/openapi-generator/src/main/resources/csharp/libraries/generichost/api.mustache +++ b/modules/openapi-generator/src/main/resources/csharp/libraries/generichost/api.mustache @@ -303,30 +303,30 @@ namespace {{packageName}}.{{apiPackage}} /// /// Logs exceptions that occur while retrieving the server response /// - /// - /// - /// + /// + /// + /// {{#allParams}} /// {{/allParams}} - private void OnError{{operationId}}DefaultImplementation({{#lambda.joinWithComma}}Exception exception string pathFormat string path {{#allParams}}{{^required}}Option<{{/required}}{{{dataType}}}{{>NullConditionalParameter}}{{^required}}>{{/required}} {{paramName}} {{/allParams}}{{/lambda.joinWithComma}}) + private void OnError{{operationId}}DefaultImplementation({{#lambda.joinWithComma}}Exception exceptionLocalVar string pathFormatLocalVar string pathLocalVar {{#allParams}}{{^required}}Option<{{/required}}{{{dataType}}}{{>NullConditionalParameter}}{{^required}}>{{/required}} {{paramName}} {{/allParams}}{{/lambda.joinWithComma}}) { - bool suppressDefaultLog = false; - OnError{{operationId}}({{#lambda.joinWithComma}}ref suppressDefaultLog exception pathFormat path {{#allParams}}{{paramName}} {{/allParams}}{{/lambda.joinWithComma}}); + bool suppressDefaultLogLocalVar = false; + OnError{{operationId}}({{#lambda.joinWithComma}}ref suppressDefaultLogLocalVar exceptionLocalVar pathFormatLocalVar pathLocalVar {{#allParams}}{{paramName}} {{/allParams}}{{/lambda.joinWithComma}}); {{>OnErrorDefaultImplementation}} } /// /// A partial method that gives developers a way to provide customized exception handling /// - /// - /// - /// - /// + /// + /// + /// + /// {{#allParams}} /// {{/allParams}} - partial void OnError{{operationId}}({{#lambda.joinWithComma}}ref bool suppressDefaultLog Exception exception string pathFormat string path {{#allParams}}{{^required}}Option<{{/required}}{{{dataType}}}{{>NullConditionalParameter}}{{^required}}>{{/required}} {{paramName}} {{/allParams}}{{/lambda.joinWithComma}}); + partial void OnError{{operationId}}({{#lambda.joinWithComma}}ref bool suppressDefaultLogLocalVar Exception exceptionLocalVar string pathFormatLocalVar string pathLocalVar {{#allParams}}{{^required}}Option<{{/required}}{{{dataType}}}{{>NullConditionalParameter}}{{^required}}>{{/required}} {{paramName}} {{/allParams}}{{/lambda.joinWithComma}}); /// /// {{summary}} {{notes}} diff --git a/samples/client/petstore/csharp/generichost/net4.7/AllOf/src/Org.OpenAPITools/Api/DefaultApi.cs b/samples/client/petstore/csharp/generichost/net4.7/AllOf/src/Org.OpenAPITools/Api/DefaultApi.cs index f65336b2c81..4e25fbff573 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/AllOf/src/Org.OpenAPITools/Api/DefaultApi.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/AllOf/src/Org.OpenAPITools/Api/DefaultApi.cs @@ -172,27 +172,27 @@ namespace Org.OpenAPITools.Api /// /// Logs exceptions that occur while retrieving the server response /// - /// - /// - /// + /// + /// + /// /// - private void OnErrorListDefaultImplementation(Exception exception, string pathFormat, string path, string personId) + private void OnErrorListDefaultImplementation(Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, string personId) { - bool suppressDefaultLog = false; - OnErrorList(ref suppressDefaultLog, exception, pathFormat, path, personId); - if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while sending the request to the server."); + bool suppressDefaultLogLocalVar = false; + OnErrorList(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, personId); + if (!suppressDefaultLogLocalVar) + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling /// - /// - /// - /// - /// + /// + /// + /// + /// /// - partial void OnErrorList(ref bool suppressDefaultLog, Exception exception, string pathFormat, string path, string personId); + partial void OnErrorList(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, string personId); /// /// diff --git a/samples/client/petstore/csharp/generichost/net4.7/AnyOf/src/Org.OpenAPITools/Api/DefaultApi.cs b/samples/client/petstore/csharp/generichost/net4.7/AnyOf/src/Org.OpenAPITools/Api/DefaultApi.cs index 9fb9257ced6..c2a2d862a62 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/AnyOf/src/Org.OpenAPITools/Api/DefaultApi.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/AnyOf/src/Org.OpenAPITools/Api/DefaultApi.cs @@ -155,25 +155,25 @@ namespace Org.OpenAPITools.Api /// /// Logs exceptions that occur while retrieving the server response /// - /// - /// - /// - private void OnErrorRootGetDefaultImplementation(Exception exception, string pathFormat, string path) + /// + /// + /// + private void OnErrorRootGetDefaultImplementation(Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar) { - bool suppressDefaultLog = false; - OnErrorRootGet(ref suppressDefaultLog, exception, pathFormat, path); - if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while sending the request to the server."); + bool suppressDefaultLogLocalVar = false; + OnErrorRootGet(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar); + if (!suppressDefaultLogLocalVar) + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling /// - /// - /// - /// - /// - partial void OnErrorRootGet(ref bool suppressDefaultLog, Exception exception, string pathFormat, string path); + /// + /// + /// + /// + partial void OnErrorRootGet(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar); /// /// diff --git a/samples/client/petstore/csharp/generichost/net4.7/AnyOfNoCompare/src/Org.OpenAPITools/Api/DefaultApi.cs b/samples/client/petstore/csharp/generichost/net4.7/AnyOfNoCompare/src/Org.OpenAPITools/Api/DefaultApi.cs index 9fb9257ced6..c2a2d862a62 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/AnyOfNoCompare/src/Org.OpenAPITools/Api/DefaultApi.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/AnyOfNoCompare/src/Org.OpenAPITools/Api/DefaultApi.cs @@ -155,25 +155,25 @@ namespace Org.OpenAPITools.Api /// /// Logs exceptions that occur while retrieving the server response /// - /// - /// - /// - private void OnErrorRootGetDefaultImplementation(Exception exception, string pathFormat, string path) + /// + /// + /// + private void OnErrorRootGetDefaultImplementation(Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar) { - bool suppressDefaultLog = false; - OnErrorRootGet(ref suppressDefaultLog, exception, pathFormat, path); - if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while sending the request to the server."); + bool suppressDefaultLogLocalVar = false; + OnErrorRootGet(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar); + if (!suppressDefaultLogLocalVar) + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling /// - /// - /// - /// - /// - partial void OnErrorRootGet(ref bool suppressDefaultLog, Exception exception, string pathFormat, string path); + /// + /// + /// + /// + partial void OnErrorRootGet(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar); /// /// diff --git a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Api/AnotherFakeApi.cs b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Api/AnotherFakeApi.cs index eef2a62a180..1fd1ffef4fe 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Api/AnotherFakeApi.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Api/AnotherFakeApi.cs @@ -207,27 +207,27 @@ namespace Org.OpenAPITools.Api /// /// Logs exceptions that occur while retrieving the server response /// - /// - /// - /// + /// + /// + /// /// - private void OnErrorCall123TestSpecialTagsDefaultImplementation(Exception exception, string pathFormat, string path, ModelClient modelClient) + private void OnErrorCall123TestSpecialTagsDefaultImplementation(Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, ModelClient modelClient) { - bool suppressDefaultLog = false; - OnErrorCall123TestSpecialTags(ref suppressDefaultLog, exception, pathFormat, path, modelClient); - if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while sending the request to the server."); + bool suppressDefaultLogLocalVar = false; + OnErrorCall123TestSpecialTags(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, modelClient); + if (!suppressDefaultLogLocalVar) + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling /// - /// - /// - /// - /// + /// + /// + /// + /// /// - partial void OnErrorCall123TestSpecialTags(ref bool suppressDefaultLog, Exception exception, string pathFormat, string path, ModelClient modelClient); + partial void OnErrorCall123TestSpecialTags(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, ModelClient modelClient); /// /// To test special tags To test special tags and operation ID starting with number diff --git a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Api/DefaultApi.cs b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Api/DefaultApi.cs index 5151d6053e5..879c3ecdb9a 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Api/DefaultApi.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Api/DefaultApi.cs @@ -404,25 +404,25 @@ namespace Org.OpenAPITools.Api /// /// Logs exceptions that occur while retrieving the server response /// - /// - /// - /// - private void OnErrorFooGetDefaultImplementation(Exception exception, string pathFormat, string path) + /// + /// + /// + private void OnErrorFooGetDefaultImplementation(Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar) { - bool suppressDefaultLog = false; - OnErrorFooGet(ref suppressDefaultLog, exception, pathFormat, path); - if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while sending the request to the server."); + bool suppressDefaultLogLocalVar = false; + OnErrorFooGet(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar); + if (!suppressDefaultLogLocalVar) + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling /// - /// - /// - /// - /// - partial void OnErrorFooGet(ref bool suppressDefaultLog, Exception exception, string pathFormat, string path); + /// + /// + /// + /// + partial void OnErrorFooGet(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar); /// /// @@ -612,27 +612,27 @@ namespace Org.OpenAPITools.Api /// /// Logs exceptions that occur while retrieving the server response /// - /// - /// - /// + /// + /// + /// /// - private void OnErrorGetCountryDefaultImplementation(Exception exception, string pathFormat, string path, string country) + private void OnErrorGetCountryDefaultImplementation(Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, string country) { - bool suppressDefaultLog = false; - OnErrorGetCountry(ref suppressDefaultLog, exception, pathFormat, path, country); - if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while sending the request to the server."); + bool suppressDefaultLogLocalVar = false; + OnErrorGetCountry(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, country); + if (!suppressDefaultLogLocalVar) + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling /// - /// - /// - /// - /// + /// + /// + /// + /// /// - partial void OnErrorGetCountry(ref bool suppressDefaultLog, Exception exception, string pathFormat, string path, string country); + partial void OnErrorGetCountry(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, string country); /// /// @@ -792,25 +792,25 @@ namespace Org.OpenAPITools.Api /// /// Logs exceptions that occur while retrieving the server response /// - /// - /// - /// - private void OnErrorHelloDefaultImplementation(Exception exception, string pathFormat, string path) + /// + /// + /// + private void OnErrorHelloDefaultImplementation(Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar) { - bool suppressDefaultLog = false; - OnErrorHello(ref suppressDefaultLog, exception, pathFormat, path); - if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while sending the request to the server."); + bool suppressDefaultLogLocalVar = false; + OnErrorHello(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar); + if (!suppressDefaultLogLocalVar) + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling /// - /// - /// - /// - /// - partial void OnErrorHello(ref bool suppressDefaultLog, Exception exception, string pathFormat, string path); + /// + /// + /// + /// + partial void OnErrorHello(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar); /// /// Hello Hello @@ -985,25 +985,25 @@ namespace Org.OpenAPITools.Api /// /// Logs exceptions that occur while retrieving the server response /// - /// - /// - /// - private void OnErrorRolesReportGetDefaultImplementation(Exception exception, string pathFormat, string path) + /// + /// + /// + private void OnErrorRolesReportGetDefaultImplementation(Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar) { - bool suppressDefaultLog = false; - OnErrorRolesReportGet(ref suppressDefaultLog, exception, pathFormat, path); - if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while sending the request to the server."); + bool suppressDefaultLogLocalVar = false; + OnErrorRolesReportGet(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar); + if (!suppressDefaultLogLocalVar) + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling /// - /// - /// - /// - /// - partial void OnErrorRolesReportGet(ref bool suppressDefaultLog, Exception exception, string pathFormat, string path); + /// + /// + /// + /// + partial void OnErrorRolesReportGet(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar); /// /// @@ -1178,25 +1178,25 @@ namespace Org.OpenAPITools.Api /// /// Logs exceptions that occur while retrieving the server response /// - /// - /// - /// - private void OnErrorTestDefaultImplementation(Exception exception, string pathFormat, string path) + /// + /// + /// + private void OnErrorTestDefaultImplementation(Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar) { - bool suppressDefaultLog = false; - OnErrorTest(ref suppressDefaultLog, exception, pathFormat, path); - if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while sending the request to the server."); + bool suppressDefaultLogLocalVar = false; + OnErrorTest(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar); + if (!suppressDefaultLogLocalVar) + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling /// - /// - /// - /// - /// - partial void OnErrorTest(ref bool suppressDefaultLog, Exception exception, string pathFormat, string path); + /// + /// + /// + /// + partial void OnErrorTest(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar); /// /// Retrieve an existing Notificationtest's Elements diff --git a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Api/FakeApi.cs b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Api/FakeApi.cs index 89f28095bda..38f93620766 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Api/FakeApi.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Api/FakeApi.cs @@ -1313,25 +1313,25 @@ namespace Org.OpenAPITools.Api /// /// Logs exceptions that occur while retrieving the server response /// - /// - /// - /// - private void OnErrorFakeHealthGetDefaultImplementation(Exception exception, string pathFormat, string path) + /// + /// + /// + private void OnErrorFakeHealthGetDefaultImplementation(Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar) { - bool suppressDefaultLog = false; - OnErrorFakeHealthGet(ref suppressDefaultLog, exception, pathFormat, path); - if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while sending the request to the server."); + bool suppressDefaultLogLocalVar = false; + OnErrorFakeHealthGet(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar); + if (!suppressDefaultLogLocalVar) + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling /// - /// - /// - /// - /// - partial void OnErrorFakeHealthGet(ref bool suppressDefaultLog, Exception exception, string pathFormat, string path); + /// + /// + /// + /// + partial void OnErrorFakeHealthGet(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar); /// /// Health check endpoint @@ -1510,27 +1510,27 @@ namespace Org.OpenAPITools.Api /// /// Logs exceptions that occur while retrieving the server response /// - /// - /// - /// + /// + /// + /// /// - private void OnErrorFakeOuterBooleanSerializeDefaultImplementation(Exception exception, string pathFormat, string path, Option body) + private void OnErrorFakeOuterBooleanSerializeDefaultImplementation(Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, Option body) { - bool suppressDefaultLog = false; - OnErrorFakeOuterBooleanSerialize(ref suppressDefaultLog, exception, pathFormat, path, body); - if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while sending the request to the server."); + bool suppressDefaultLogLocalVar = false; + OnErrorFakeOuterBooleanSerialize(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, body); + if (!suppressDefaultLogLocalVar) + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling /// - /// - /// - /// - /// + /// + /// + /// + /// /// - partial void OnErrorFakeOuterBooleanSerialize(ref bool suppressDefaultLog, Exception exception, string pathFormat, string path, Option body); + partial void OnErrorFakeOuterBooleanSerialize(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, Option body); /// /// Test serialization of outer boolean types @@ -1738,27 +1738,27 @@ namespace Org.OpenAPITools.Api /// /// Logs exceptions that occur while retrieving the server response /// - /// - /// - /// + /// + /// + /// /// - private void OnErrorFakeOuterCompositeSerializeDefaultImplementation(Exception exception, string pathFormat, string path, Option outerComposite) + private void OnErrorFakeOuterCompositeSerializeDefaultImplementation(Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, Option outerComposite) { - bool suppressDefaultLog = false; - OnErrorFakeOuterCompositeSerialize(ref suppressDefaultLog, exception, pathFormat, path, outerComposite); - if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while sending the request to the server."); + bool suppressDefaultLogLocalVar = false; + OnErrorFakeOuterCompositeSerialize(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, outerComposite); + if (!suppressDefaultLogLocalVar) + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling /// - /// - /// - /// - /// + /// + /// + /// + /// /// - partial void OnErrorFakeOuterCompositeSerialize(ref bool suppressDefaultLog, Exception exception, string pathFormat, string path, Option outerComposite); + partial void OnErrorFakeOuterCompositeSerialize(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, Option outerComposite); /// /// Test serialization of object with outer number type @@ -1957,27 +1957,27 @@ namespace Org.OpenAPITools.Api /// /// Logs exceptions that occur while retrieving the server response /// - /// - /// - /// + /// + /// + /// /// - private void OnErrorFakeOuterNumberSerializeDefaultImplementation(Exception exception, string pathFormat, string path, Option body) + private void OnErrorFakeOuterNumberSerializeDefaultImplementation(Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, Option body) { - bool suppressDefaultLog = false; - OnErrorFakeOuterNumberSerialize(ref suppressDefaultLog, exception, pathFormat, path, body); - if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while sending the request to the server."); + bool suppressDefaultLogLocalVar = false; + OnErrorFakeOuterNumberSerialize(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, body); + if (!suppressDefaultLogLocalVar) + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling /// - /// - /// - /// - /// + /// + /// + /// + /// /// - partial void OnErrorFakeOuterNumberSerialize(ref bool suppressDefaultLog, Exception exception, string pathFormat, string path, Option body); + partial void OnErrorFakeOuterNumberSerialize(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, Option body); /// /// Test serialization of outer number types @@ -2187,29 +2187,29 @@ namespace Org.OpenAPITools.Api /// /// Logs exceptions that occur while retrieving the server response /// - /// - /// - /// + /// + /// + /// /// /// - private void OnErrorFakeOuterStringSerializeDefaultImplementation(Exception exception, string pathFormat, string path, Guid requiredStringUuid, Option body) + private void OnErrorFakeOuterStringSerializeDefaultImplementation(Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, Guid requiredStringUuid, Option body) { - bool suppressDefaultLog = false; - OnErrorFakeOuterStringSerialize(ref suppressDefaultLog, exception, pathFormat, path, requiredStringUuid, body); - if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while sending the request to the server."); + bool suppressDefaultLogLocalVar = false; + OnErrorFakeOuterStringSerialize(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, requiredStringUuid, body); + if (!suppressDefaultLogLocalVar) + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling /// - /// - /// - /// - /// + /// + /// + /// + /// /// /// - partial void OnErrorFakeOuterStringSerialize(ref bool suppressDefaultLog, Exception exception, string pathFormat, string path, Guid requiredStringUuid, Option body); + partial void OnErrorFakeOuterStringSerialize(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, Guid requiredStringUuid, Option body); /// /// Test serialization of outer string types @@ -2412,25 +2412,25 @@ namespace Org.OpenAPITools.Api /// /// Logs exceptions that occur while retrieving the server response /// - /// - /// - /// - private void OnErrorGetArrayOfEnumsDefaultImplementation(Exception exception, string pathFormat, string path) + /// + /// + /// + private void OnErrorGetArrayOfEnumsDefaultImplementation(Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar) { - bool suppressDefaultLog = false; - OnErrorGetArrayOfEnums(ref suppressDefaultLog, exception, pathFormat, path); - if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while sending the request to the server."); + bool suppressDefaultLogLocalVar = false; + OnErrorGetArrayOfEnums(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar); + if (!suppressDefaultLogLocalVar) + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling /// - /// - /// - /// - /// - partial void OnErrorGetArrayOfEnums(ref bool suppressDefaultLog, Exception exception, string pathFormat, string path); + /// + /// + /// + /// + partial void OnErrorGetArrayOfEnums(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar); /// /// Array of Enums @@ -2605,25 +2605,25 @@ namespace Org.OpenAPITools.Api /// /// Logs exceptions that occur while retrieving the server response /// - /// - /// - /// - private void OnErrorGetMixedAnyOfDefaultImplementation(Exception exception, string pathFormat, string path) + /// + /// + /// + private void OnErrorGetMixedAnyOfDefaultImplementation(Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar) { - bool suppressDefaultLog = false; - OnErrorGetMixedAnyOf(ref suppressDefaultLog, exception, pathFormat, path); - if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while sending the request to the server."); + bool suppressDefaultLogLocalVar = false; + OnErrorGetMixedAnyOf(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar); + if (!suppressDefaultLogLocalVar) + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling /// - /// - /// - /// - /// - partial void OnErrorGetMixedAnyOf(ref bool suppressDefaultLog, Exception exception, string pathFormat, string path); + /// + /// + /// + /// + partial void OnErrorGetMixedAnyOf(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar); /// /// Test mixed type anyOf deserialization @@ -2798,25 +2798,25 @@ namespace Org.OpenAPITools.Api /// /// Logs exceptions that occur while retrieving the server response /// - /// - /// - /// - private void OnErrorGetMixedOneOfDefaultImplementation(Exception exception, string pathFormat, string path) + /// + /// + /// + private void OnErrorGetMixedOneOfDefaultImplementation(Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar) { - bool suppressDefaultLog = false; - OnErrorGetMixedOneOf(ref suppressDefaultLog, exception, pathFormat, path); - if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while sending the request to the server."); + bool suppressDefaultLogLocalVar = false; + OnErrorGetMixedOneOf(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar); + if (!suppressDefaultLogLocalVar) + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling /// - /// - /// - /// - /// - partial void OnErrorGetMixedOneOf(ref bool suppressDefaultLog, Exception exception, string pathFormat, string path); + /// + /// + /// + /// + partial void OnErrorGetMixedOneOf(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar); /// /// Test mixed type oneOf deserialization @@ -3006,27 +3006,27 @@ namespace Org.OpenAPITools.Api /// /// Logs exceptions that occur while retrieving the server response /// - /// - /// - /// + /// + /// + /// /// - private void OnErrorTestAdditionalPropertiesReferenceDefaultImplementation(Exception exception, string pathFormat, string path, Dictionary requestBody) + private void OnErrorTestAdditionalPropertiesReferenceDefaultImplementation(Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, Dictionary requestBody) { - bool suppressDefaultLog = false; - OnErrorTestAdditionalPropertiesReference(ref suppressDefaultLog, exception, pathFormat, path, requestBody); - if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while sending the request to the server."); + bool suppressDefaultLogLocalVar = false; + OnErrorTestAdditionalPropertiesReference(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, requestBody); + if (!suppressDefaultLogLocalVar) + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling /// - /// - /// - /// - /// + /// + /// + /// + /// /// - partial void OnErrorTestAdditionalPropertiesReference(ref bool suppressDefaultLog, Exception exception, string pathFormat, string path, Dictionary requestBody); + partial void OnErrorTestAdditionalPropertiesReference(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, Dictionary requestBody); /// /// test referenced additionalProperties @@ -3195,27 +3195,27 @@ namespace Org.OpenAPITools.Api /// /// Logs exceptions that occur while retrieving the server response /// - /// - /// - /// + /// + /// + /// /// - private void OnErrorTestBodyWithFileSchemaDefaultImplementation(Exception exception, string pathFormat, string path, FileSchemaTestClass fileSchemaTestClass) + private void OnErrorTestBodyWithFileSchemaDefaultImplementation(Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, FileSchemaTestClass fileSchemaTestClass) { - bool suppressDefaultLog = false; - OnErrorTestBodyWithFileSchema(ref suppressDefaultLog, exception, pathFormat, path, fileSchemaTestClass); - if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while sending the request to the server."); + bool suppressDefaultLogLocalVar = false; + OnErrorTestBodyWithFileSchema(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, fileSchemaTestClass); + if (!suppressDefaultLogLocalVar) + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling /// - /// - /// - /// - /// + /// + /// + /// + /// /// - partial void OnErrorTestBodyWithFileSchema(ref bool suppressDefaultLog, Exception exception, string pathFormat, string path, FileSchemaTestClass fileSchemaTestClass); + partial void OnErrorTestBodyWithFileSchema(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, FileSchemaTestClass fileSchemaTestClass); /// /// For this test, the body for this request much reference a schema named `File`. @@ -3390,29 +3390,29 @@ namespace Org.OpenAPITools.Api /// /// Logs exceptions that occur while retrieving the server response /// - /// - /// - /// + /// + /// + /// /// /// - private void OnErrorTestBodyWithQueryParamsDefaultImplementation(Exception exception, string pathFormat, string path, string query, User user) + private void OnErrorTestBodyWithQueryParamsDefaultImplementation(Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, string query, User user) { - bool suppressDefaultLog = false; - OnErrorTestBodyWithQueryParams(ref suppressDefaultLog, exception, pathFormat, path, query, user); - if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while sending the request to the server."); + bool suppressDefaultLogLocalVar = false; + OnErrorTestBodyWithQueryParams(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, query, user); + if (!suppressDefaultLogLocalVar) + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling /// - /// - /// - /// - /// + /// + /// + /// + /// /// /// - partial void OnErrorTestBodyWithQueryParams(ref bool suppressDefaultLog, Exception exception, string pathFormat, string path, string query, User user); + partial void OnErrorTestBodyWithQueryParams(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, string query, User user); /// /// @@ -3589,27 +3589,27 @@ namespace Org.OpenAPITools.Api /// /// Logs exceptions that occur while retrieving the server response /// - /// - /// - /// + /// + /// + /// /// - private void OnErrorTestClientModelDefaultImplementation(Exception exception, string pathFormat, string path, ModelClient modelClient) + private void OnErrorTestClientModelDefaultImplementation(Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, ModelClient modelClient) { - bool suppressDefaultLog = false; - OnErrorTestClientModel(ref suppressDefaultLog, exception, pathFormat, path, modelClient); - if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while sending the request to the server."); + bool suppressDefaultLogLocalVar = false; + OnErrorTestClientModel(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, modelClient); + if (!suppressDefaultLogLocalVar) + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling /// - /// - /// - /// - /// + /// + /// + /// + /// /// - partial void OnErrorTestClientModel(ref bool suppressDefaultLog, Exception exception, string pathFormat, string path, ModelClient modelClient); + partial void OnErrorTestClientModel(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, ModelClient modelClient); /// /// To test \"client\" model To test \"client\" model @@ -3864,9 +3864,9 @@ namespace Org.OpenAPITools.Api /// /// Logs exceptions that occur while retrieving the server response /// - /// - /// - /// + /// + /// + /// /// /// /// @@ -3881,21 +3881,21 @@ namespace Org.OpenAPITools.Api /// /// /// - private void OnErrorTestEndpointParametersDefaultImplementation(Exception exception, string pathFormat, string path, decimal number, string patternWithoutDelimiter, byte[] varByte, double varDouble, Option binary, Option callback, Option date, Option dateTime, Option int32, Option int64, Option integer, Option password, Option varFloat, Option varString) + private void OnErrorTestEndpointParametersDefaultImplementation(Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, decimal number, string patternWithoutDelimiter, byte[] varByte, double varDouble, Option binary, Option callback, Option date, Option dateTime, Option int32, Option int64, Option integer, Option password, Option varFloat, Option varString) { - bool suppressDefaultLog = false; - OnErrorTestEndpointParameters(ref suppressDefaultLog, exception, pathFormat, path, number, patternWithoutDelimiter, varByte, varDouble, binary, callback, date, dateTime, int32, int64, integer, password, varFloat, varString); - if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while sending the request to the server."); + bool suppressDefaultLogLocalVar = false; + OnErrorTestEndpointParameters(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, number, patternWithoutDelimiter, varByte, varDouble, binary, callback, date, dateTime, int32, int64, integer, password, varFloat, varString); + if (!suppressDefaultLogLocalVar) + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling /// - /// - /// - /// - /// + /// + /// + /// + /// /// /// /// @@ -3910,7 +3910,7 @@ namespace Org.OpenAPITools.Api /// /// /// - partial void OnErrorTestEndpointParameters(ref bool suppressDefaultLog, Exception exception, string pathFormat, string path, decimal number, string patternWithoutDelimiter, byte[] varByte, double varDouble, Option binary, Option callback, Option date, Option dateTime, Option int32, Option int64, Option integer, Option password, Option varFloat, Option varString); + partial void OnErrorTestEndpointParameters(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, decimal number, string patternWithoutDelimiter, byte[] varByte, double varDouble, Option binary, Option callback, Option date, Option dateTime, Option int32, Option int64, Option integer, Option password, Option varFloat, Option varString); /// /// Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트 Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트 @@ -4186,9 +4186,9 @@ namespace Org.OpenAPITools.Api /// /// Logs exceptions that occur while retrieving the server response /// - /// - /// - /// + /// + /// + /// /// /// /// @@ -4197,21 +4197,21 @@ namespace Org.OpenAPITools.Api /// /// /// - private void OnErrorTestEnumParametersDefaultImplementation(Exception exception, string pathFormat, string path, Option enumFormString, Option> enumFormStringArray, Option enumHeaderString, Option> enumHeaderStringArray, Option enumQueryDouble, Option enumQueryInteger, Option enumQueryString, Option> enumQueryStringArray) + private void OnErrorTestEnumParametersDefaultImplementation(Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, Option enumFormString, Option> enumFormStringArray, Option enumHeaderString, Option> enumHeaderStringArray, Option enumQueryDouble, Option enumQueryInteger, Option enumQueryString, Option> enumQueryStringArray) { - bool suppressDefaultLog = false; - OnErrorTestEnumParameters(ref suppressDefaultLog, exception, pathFormat, path, enumFormString, enumFormStringArray, enumHeaderString, enumHeaderStringArray, enumQueryDouble, enumQueryInteger, enumQueryString, enumQueryStringArray); - if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while sending the request to the server."); + bool suppressDefaultLogLocalVar = false; + OnErrorTestEnumParameters(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, enumFormString, enumFormStringArray, enumHeaderString, enumHeaderStringArray, enumQueryDouble, enumQueryInteger, enumQueryString, enumQueryStringArray); + if (!suppressDefaultLogLocalVar) + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling /// - /// - /// - /// - /// + /// + /// + /// + /// /// /// /// @@ -4220,7 +4220,7 @@ namespace Org.OpenAPITools.Api /// /// /// - partial void OnErrorTestEnumParameters(ref bool suppressDefaultLog, Exception exception, string pathFormat, string path, Option enumFormString, Option> enumFormStringArray, Option enumHeaderString, Option> enumHeaderStringArray, Option enumQueryDouble, Option enumQueryInteger, Option enumQueryString, Option> enumQueryStringArray); + partial void OnErrorTestEnumParameters(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, Option enumFormString, Option> enumFormStringArray, Option enumHeaderString, Option> enumHeaderStringArray, Option enumQueryDouble, Option enumQueryInteger, Option enumQueryString, Option> enumQueryStringArray); /// /// To test enum parameters To test enum parameters @@ -4438,37 +4438,37 @@ namespace Org.OpenAPITools.Api /// /// Logs exceptions that occur while retrieving the server response /// - /// - /// - /// + /// + /// + /// /// /// /// /// /// /// - private void OnErrorTestGroupParametersDefaultImplementation(Exception exception, string pathFormat, string path, bool requiredBooleanGroup, long requiredInt64Group, int requiredStringGroup, Option booleanGroup, Option int64Group, Option stringGroup) + private void OnErrorTestGroupParametersDefaultImplementation(Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, bool requiredBooleanGroup, long requiredInt64Group, int requiredStringGroup, Option booleanGroup, Option int64Group, Option stringGroup) { - bool suppressDefaultLog = false; - OnErrorTestGroupParameters(ref suppressDefaultLog, exception, pathFormat, path, requiredBooleanGroup, requiredInt64Group, requiredStringGroup, booleanGroup, int64Group, stringGroup); - if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while sending the request to the server."); + bool suppressDefaultLogLocalVar = false; + OnErrorTestGroupParameters(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, requiredBooleanGroup, requiredInt64Group, requiredStringGroup, booleanGroup, int64Group, stringGroup); + if (!suppressDefaultLogLocalVar) + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling /// - /// - /// - /// - /// + /// + /// + /// + /// /// /// /// /// /// /// - partial void OnErrorTestGroupParameters(ref bool suppressDefaultLog, Exception exception, string pathFormat, string path, bool requiredBooleanGroup, long requiredInt64Group, int requiredStringGroup, Option booleanGroup, Option int64Group, Option stringGroup); + partial void OnErrorTestGroupParameters(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, bool requiredBooleanGroup, long requiredInt64Group, int requiredStringGroup, Option booleanGroup, Option int64Group, Option stringGroup); /// /// Fake endpoint to test group parameters (optional) Fake endpoint to test group parameters (optional) @@ -4660,27 +4660,27 @@ namespace Org.OpenAPITools.Api /// /// Logs exceptions that occur while retrieving the server response /// - /// - /// - /// + /// + /// + /// /// - private void OnErrorTestInlineAdditionalPropertiesDefaultImplementation(Exception exception, string pathFormat, string path, Dictionary requestBody) + private void OnErrorTestInlineAdditionalPropertiesDefaultImplementation(Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, Dictionary requestBody) { - bool suppressDefaultLog = false; - OnErrorTestInlineAdditionalProperties(ref suppressDefaultLog, exception, pathFormat, path, requestBody); - if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while sending the request to the server."); + bool suppressDefaultLogLocalVar = false; + OnErrorTestInlineAdditionalProperties(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, requestBody); + if (!suppressDefaultLogLocalVar) + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling /// - /// - /// - /// - /// + /// + /// + /// + /// /// - partial void OnErrorTestInlineAdditionalProperties(ref bool suppressDefaultLog, Exception exception, string pathFormat, string path, Dictionary requestBody); + partial void OnErrorTestInlineAdditionalProperties(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, Dictionary requestBody); /// /// test inline additionalProperties @@ -4849,27 +4849,27 @@ namespace Org.OpenAPITools.Api /// /// Logs exceptions that occur while retrieving the server response /// - /// - /// - /// + /// + /// + /// /// - private void OnErrorTestInlineFreeformAdditionalPropertiesDefaultImplementation(Exception exception, string pathFormat, string path, TestInlineFreeformAdditionalPropertiesRequest testInlineFreeformAdditionalPropertiesRequest) + private void OnErrorTestInlineFreeformAdditionalPropertiesDefaultImplementation(Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, TestInlineFreeformAdditionalPropertiesRequest testInlineFreeformAdditionalPropertiesRequest) { - bool suppressDefaultLog = false; - OnErrorTestInlineFreeformAdditionalProperties(ref suppressDefaultLog, exception, pathFormat, path, testInlineFreeformAdditionalPropertiesRequest); - if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while sending the request to the server."); + bool suppressDefaultLogLocalVar = false; + OnErrorTestInlineFreeformAdditionalProperties(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, testInlineFreeformAdditionalPropertiesRequest); + if (!suppressDefaultLogLocalVar) + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling /// - /// - /// - /// - /// + /// + /// + /// + /// /// - partial void OnErrorTestInlineFreeformAdditionalProperties(ref bool suppressDefaultLog, Exception exception, string pathFormat, string path, TestInlineFreeformAdditionalPropertiesRequest testInlineFreeformAdditionalPropertiesRequest); + partial void OnErrorTestInlineFreeformAdditionalProperties(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, TestInlineFreeformAdditionalPropertiesRequest testInlineFreeformAdditionalPropertiesRequest); /// /// test inline free-form additionalProperties @@ -5044,29 +5044,29 @@ namespace Org.OpenAPITools.Api /// /// Logs exceptions that occur while retrieving the server response /// - /// - /// - /// + /// + /// + /// /// /// - private void OnErrorTestJsonFormDataDefaultImplementation(Exception exception, string pathFormat, string path, string param, string param2) + private void OnErrorTestJsonFormDataDefaultImplementation(Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, string param, string param2) { - bool suppressDefaultLog = false; - OnErrorTestJsonFormData(ref suppressDefaultLog, exception, pathFormat, path, param, param2); - if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while sending the request to the server."); + bool suppressDefaultLogLocalVar = false; + OnErrorTestJsonFormData(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, param, param2); + if (!suppressDefaultLogLocalVar) + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling /// - /// - /// - /// - /// + /// + /// + /// + /// /// /// - partial void OnErrorTestJsonFormData(ref bool suppressDefaultLog, Exception exception, string pathFormat, string path, string param, string param2); + partial void OnErrorTestJsonFormData(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, string param, string param2); /// /// test json serialization of form data @@ -5285,9 +5285,9 @@ namespace Org.OpenAPITools.Api /// /// Logs exceptions that occur while retrieving the server response /// - /// - /// - /// + /// + /// + /// /// /// /// @@ -5297,21 +5297,21 @@ namespace Org.OpenAPITools.Api /// /// /// - private void OnErrorTestQueryParameterCollectionFormatDefaultImplementation(Exception exception, string pathFormat, string path, List context, List http, List ioutil, List pipe, string requiredNotNullable, List url, Option notRequiredNotNullable, Option notRequiredNullable, string requiredNullable) + private void OnErrorTestQueryParameterCollectionFormatDefaultImplementation(Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, List context, List http, List ioutil, List pipe, string requiredNotNullable, List url, Option notRequiredNotNullable, Option notRequiredNullable, string requiredNullable) { - bool suppressDefaultLog = false; - OnErrorTestQueryParameterCollectionFormat(ref suppressDefaultLog, exception, pathFormat, path, context, http, ioutil, pipe, requiredNotNullable, url, notRequiredNotNullable, notRequiredNullable, requiredNullable); - if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while sending the request to the server."); + bool suppressDefaultLogLocalVar = false; + OnErrorTestQueryParameterCollectionFormat(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, context, http, ioutil, pipe, requiredNotNullable, url, notRequiredNotNullable, notRequiredNullable, requiredNullable); + if (!suppressDefaultLogLocalVar) + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling /// - /// - /// - /// - /// + /// + /// + /// + /// /// /// /// @@ -5321,7 +5321,7 @@ namespace Org.OpenAPITools.Api /// /// /// - partial void OnErrorTestQueryParameterCollectionFormat(ref bool suppressDefaultLog, Exception exception, string pathFormat, string path, List context, List http, List ioutil, List pipe, string requiredNotNullable, List url, Option notRequiredNotNullable, Option notRequiredNullable, string requiredNullable); + partial void OnErrorTestQueryParameterCollectionFormat(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, List context, List http, List ioutil, List pipe, string requiredNotNullable, List url, Option notRequiredNotNullable, Option notRequiredNullable, string requiredNullable); /// /// To test the collection format in query parameters @@ -5510,27 +5510,27 @@ namespace Org.OpenAPITools.Api /// /// Logs exceptions that occur while retrieving the server response /// - /// - /// - /// + /// + /// + /// /// - private void OnErrorTestStringMapReferenceDefaultImplementation(Exception exception, string pathFormat, string path, Dictionary requestBody) + private void OnErrorTestStringMapReferenceDefaultImplementation(Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, Dictionary requestBody) { - bool suppressDefaultLog = false; - OnErrorTestStringMapReference(ref suppressDefaultLog, exception, pathFormat, path, requestBody); - if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while sending the request to the server."); + bool suppressDefaultLogLocalVar = false; + OnErrorTestStringMapReference(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, requestBody); + if (!suppressDefaultLogLocalVar) + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling /// - /// - /// - /// - /// + /// + /// + /// + /// /// - partial void OnErrorTestStringMapReference(ref bool suppressDefaultLog, Exception exception, string pathFormat, string path, Dictionary requestBody); + partial void OnErrorTestStringMapReference(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, Dictionary requestBody); /// /// test referenced string map diff --git a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Api/FakeClassnameTags123Api.cs b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Api/FakeClassnameTags123Api.cs index ff66cc2a209..010a227c8b2 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Api/FakeClassnameTags123Api.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Api/FakeClassnameTags123Api.cs @@ -207,27 +207,27 @@ namespace Org.OpenAPITools.Api /// /// Logs exceptions that occur while retrieving the server response /// - /// - /// - /// + /// + /// + /// /// - private void OnErrorTestClassnameDefaultImplementation(Exception exception, string pathFormat, string path, ModelClient modelClient) + private void OnErrorTestClassnameDefaultImplementation(Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, ModelClient modelClient) { - bool suppressDefaultLog = false; - OnErrorTestClassname(ref suppressDefaultLog, exception, pathFormat, path, modelClient); - if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while sending the request to the server."); + bool suppressDefaultLogLocalVar = false; + OnErrorTestClassname(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, modelClient); + if (!suppressDefaultLogLocalVar) + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling /// - /// - /// - /// - /// + /// + /// + /// + /// /// - partial void OnErrorTestClassname(ref bool suppressDefaultLog, Exception exception, string pathFormat, string path, ModelClient modelClient); + partial void OnErrorTestClassname(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, ModelClient modelClient); /// /// To test class name in snake case To test class name in snake case diff --git a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Api/PetApi.cs b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Api/PetApi.cs index d4a6816894f..6f1add61539 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Api/PetApi.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Api/PetApi.cs @@ -711,27 +711,27 @@ namespace Org.OpenAPITools.Api /// /// Logs exceptions that occur while retrieving the server response /// - /// - /// - /// + /// + /// + /// /// - private void OnErrorAddPetDefaultImplementation(Exception exception, string pathFormat, string path, Pet pet) + private void OnErrorAddPetDefaultImplementation(Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, Pet pet) { - bool suppressDefaultLog = false; - OnErrorAddPet(ref suppressDefaultLog, exception, pathFormat, path, pet); - if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while sending the request to the server."); + bool suppressDefaultLogLocalVar = false; + OnErrorAddPet(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, pet); + if (!suppressDefaultLogLocalVar) + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling /// - /// - /// - /// - /// + /// + /// + /// + /// /// - partial void OnErrorAddPet(ref bool suppressDefaultLog, Exception exception, string pathFormat, string path, Pet pet); + partial void OnErrorAddPet(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, Pet pet); /// /// Add a new pet to the store @@ -924,29 +924,29 @@ namespace Org.OpenAPITools.Api /// /// Logs exceptions that occur while retrieving the server response /// - /// - /// - /// + /// + /// + /// /// /// - private void OnErrorDeletePetDefaultImplementation(Exception exception, string pathFormat, string path, long petId, Option apiKey) + private void OnErrorDeletePetDefaultImplementation(Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, long petId, Option apiKey) { - bool suppressDefaultLog = false; - OnErrorDeletePet(ref suppressDefaultLog, exception, pathFormat, path, petId, apiKey); - if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while sending the request to the server."); + bool suppressDefaultLogLocalVar = false; + OnErrorDeletePet(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, petId, apiKey); + if (!suppressDefaultLogLocalVar) + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling /// - /// - /// - /// - /// + /// + /// + /// + /// /// /// - partial void OnErrorDeletePet(ref bool suppressDefaultLog, Exception exception, string pathFormat, string path, long petId, Option apiKey); + partial void OnErrorDeletePet(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, long petId, Option apiKey); /// /// Deletes a pet @@ -1118,27 +1118,27 @@ namespace Org.OpenAPITools.Api /// /// Logs exceptions that occur while retrieving the server response /// - /// - /// - /// + /// + /// + /// /// - private void OnErrorFindPetsByStatusDefaultImplementation(Exception exception, string pathFormat, string path, List status) + private void OnErrorFindPetsByStatusDefaultImplementation(Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, List status) { - bool suppressDefaultLog = false; - OnErrorFindPetsByStatus(ref suppressDefaultLog, exception, pathFormat, path, status); - if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while sending the request to the server."); + bool suppressDefaultLogLocalVar = false; + OnErrorFindPetsByStatus(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, status); + if (!suppressDefaultLogLocalVar) + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling /// - /// - /// - /// - /// + /// + /// + /// + /// /// - partial void OnErrorFindPetsByStatus(ref bool suppressDefaultLog, Exception exception, string pathFormat, string path, List status); + partial void OnErrorFindPetsByStatus(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, List status); /// /// Finds Pets by status Multiple status values can be provided with comma separated strings @@ -1394,27 +1394,27 @@ namespace Org.OpenAPITools.Api /// /// Logs exceptions that occur while retrieving the server response /// - /// - /// - /// + /// + /// + /// /// - private void OnErrorFindPetsByTagsDefaultImplementation(Exception exception, string pathFormat, string path, List tags) + private void OnErrorFindPetsByTagsDefaultImplementation(Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, List tags) { - bool suppressDefaultLog = false; - OnErrorFindPetsByTags(ref suppressDefaultLog, exception, pathFormat, path, tags); - if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while sending the request to the server."); + bool suppressDefaultLogLocalVar = false; + OnErrorFindPetsByTags(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, tags); + if (!suppressDefaultLogLocalVar) + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling /// - /// - /// - /// - /// + /// + /// + /// + /// /// - partial void OnErrorFindPetsByTags(ref bool suppressDefaultLog, Exception exception, string pathFormat, string path, List tags); + partial void OnErrorFindPetsByTags(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, List tags); /// /// Finds Pets by tags Multiple tags can be provided with comma separated strings. Use tag1, tag2, tag3 for testing. @@ -1633,27 +1633,27 @@ namespace Org.OpenAPITools.Api /// /// Logs exceptions that occur while retrieving the server response /// - /// - /// - /// + /// + /// + /// /// - private void OnErrorGetPetByIdDefaultImplementation(Exception exception, string pathFormat, string path, long petId) + private void OnErrorGetPetByIdDefaultImplementation(Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, long petId) { - bool suppressDefaultLog = false; - OnErrorGetPetById(ref suppressDefaultLog, exception, pathFormat, path, petId); - if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while sending the request to the server."); + bool suppressDefaultLogLocalVar = false; + OnErrorGetPetById(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, petId); + if (!suppressDefaultLogLocalVar) + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling /// - /// - /// - /// - /// + /// + /// + /// + /// /// - partial void OnErrorGetPetById(ref bool suppressDefaultLog, Exception exception, string pathFormat, string path, long petId); + partial void OnErrorGetPetById(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, long petId); /// /// Find pet by ID Returns a single pet @@ -1878,27 +1878,27 @@ namespace Org.OpenAPITools.Api /// /// Logs exceptions that occur while retrieving the server response /// - /// - /// - /// + /// + /// + /// /// - private void OnErrorUpdatePetDefaultImplementation(Exception exception, string pathFormat, string path, Pet pet) + private void OnErrorUpdatePetDefaultImplementation(Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, Pet pet) { - bool suppressDefaultLog = false; - OnErrorUpdatePet(ref suppressDefaultLog, exception, pathFormat, path, pet); - if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while sending the request to the server."); + bool suppressDefaultLogLocalVar = false; + OnErrorUpdatePet(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, pet); + if (!suppressDefaultLogLocalVar) + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling /// - /// - /// - /// - /// + /// + /// + /// + /// /// - partial void OnErrorUpdatePet(ref bool suppressDefaultLog, Exception exception, string pathFormat, string path, Pet pet); + partial void OnErrorUpdatePet(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, Pet pet); /// /// Update an existing pet @@ -2109,31 +2109,31 @@ namespace Org.OpenAPITools.Api /// /// Logs exceptions that occur while retrieving the server response /// - /// - /// - /// + /// + /// + /// /// /// /// - private void OnErrorUpdatePetWithFormDefaultImplementation(Exception exception, string pathFormat, string path, long petId, Option name, Option status) + private void OnErrorUpdatePetWithFormDefaultImplementation(Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, long petId, Option name, Option status) { - bool suppressDefaultLog = false; - OnErrorUpdatePetWithForm(ref suppressDefaultLog, exception, pathFormat, path, petId, name, status); - if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while sending the request to the server."); + bool suppressDefaultLogLocalVar = false; + OnErrorUpdatePetWithForm(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, petId, name, status); + if (!suppressDefaultLogLocalVar) + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling /// - /// - /// - /// - /// + /// + /// + /// + /// /// /// /// - partial void OnErrorUpdatePetWithForm(ref bool suppressDefaultLog, Exception exception, string pathFormat, string path, long petId, Option name, Option status); + partial void OnErrorUpdatePetWithForm(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, long petId, Option name, Option status); /// /// Updates a pet in the store with form data @@ -2334,31 +2334,31 @@ namespace Org.OpenAPITools.Api /// /// Logs exceptions that occur while retrieving the server response /// - /// - /// - /// + /// + /// + /// /// /// /// - private void OnErrorUploadFileDefaultImplementation(Exception exception, string pathFormat, string path, long petId, Option additionalMetadata, Option file) + private void OnErrorUploadFileDefaultImplementation(Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, long petId, Option additionalMetadata, Option file) { - bool suppressDefaultLog = false; - OnErrorUploadFile(ref suppressDefaultLog, exception, pathFormat, path, petId, additionalMetadata, file); - if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while sending the request to the server."); + bool suppressDefaultLogLocalVar = false; + OnErrorUploadFile(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, petId, additionalMetadata, file); + if (!suppressDefaultLogLocalVar) + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling /// - /// - /// - /// - /// + /// + /// + /// + /// /// /// /// - partial void OnErrorUploadFile(ref bool suppressDefaultLog, Exception exception, string pathFormat, string path, long petId, Option additionalMetadata, Option file); + partial void OnErrorUploadFile(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, long petId, Option additionalMetadata, Option file); /// /// uploads an image @@ -2599,31 +2599,31 @@ namespace Org.OpenAPITools.Api /// /// Logs exceptions that occur while retrieving the server response /// - /// - /// - /// + /// + /// + /// /// /// /// - private void OnErrorUploadFileWithRequiredFileDefaultImplementation(Exception exception, string pathFormat, string path, long petId, System.IO.Stream requiredFile, Option additionalMetadata) + private void OnErrorUploadFileWithRequiredFileDefaultImplementation(Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, long petId, System.IO.Stream requiredFile, Option additionalMetadata) { - bool suppressDefaultLog = false; - OnErrorUploadFileWithRequiredFile(ref suppressDefaultLog, exception, pathFormat, path, petId, requiredFile, additionalMetadata); - if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while sending the request to the server."); + bool suppressDefaultLogLocalVar = false; + OnErrorUploadFileWithRequiredFile(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, petId, requiredFile, additionalMetadata); + if (!suppressDefaultLogLocalVar) + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling /// - /// - /// - /// - /// + /// + /// + /// + /// /// /// /// - partial void OnErrorUploadFileWithRequiredFile(ref bool suppressDefaultLog, Exception exception, string pathFormat, string path, long petId, System.IO.Stream requiredFile, Option additionalMetadata); + partial void OnErrorUploadFileWithRequiredFile(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, long petId, System.IO.Stream requiredFile, Option additionalMetadata); /// /// uploads an image (required) diff --git a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Api/StoreApi.cs b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Api/StoreApi.cs index f8d73a608a3..2cb0523731c 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Api/StoreApi.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Api/StoreApi.cs @@ -394,27 +394,27 @@ namespace Org.OpenAPITools.Api /// /// Logs exceptions that occur while retrieving the server response /// - /// - /// - /// + /// + /// + /// /// - private void OnErrorDeleteOrderDefaultImplementation(Exception exception, string pathFormat, string path, string orderId) + private void OnErrorDeleteOrderDefaultImplementation(Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, string orderId) { - bool suppressDefaultLog = false; - OnErrorDeleteOrder(ref suppressDefaultLog, exception, pathFormat, path, orderId); - if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while sending the request to the server."); + bool suppressDefaultLogLocalVar = false; + OnErrorDeleteOrder(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, orderId); + if (!suppressDefaultLogLocalVar) + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling /// - /// - /// - /// - /// + /// + /// + /// + /// /// - partial void OnErrorDeleteOrder(ref bool suppressDefaultLog, Exception exception, string pathFormat, string path, string orderId); + partial void OnErrorDeleteOrder(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, string orderId); /// /// Delete purchase order by ID For valid response try integer IDs with value < 1000. Anything above 1000 or nonintegers will generate API errors @@ -561,25 +561,25 @@ namespace Org.OpenAPITools.Api /// /// Logs exceptions that occur while retrieving the server response /// - /// - /// - /// - private void OnErrorGetInventoryDefaultImplementation(Exception exception, string pathFormat, string path) + /// + /// + /// + private void OnErrorGetInventoryDefaultImplementation(Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar) { - bool suppressDefaultLog = false; - OnErrorGetInventory(ref suppressDefaultLog, exception, pathFormat, path); - if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while sending the request to the server."); + bool suppressDefaultLogLocalVar = false; + OnErrorGetInventory(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar); + if (!suppressDefaultLogLocalVar) + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling /// - /// - /// - /// - /// - partial void OnErrorGetInventory(ref bool suppressDefaultLog, Exception exception, string pathFormat, string path); + /// + /// + /// + /// + partial void OnErrorGetInventory(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar); /// /// Returns pet inventories by status Returns a map of status codes to quantities @@ -767,27 +767,27 @@ namespace Org.OpenAPITools.Api /// /// Logs exceptions that occur while retrieving the server response /// - /// - /// - /// + /// + /// + /// /// - private void OnErrorGetOrderByIdDefaultImplementation(Exception exception, string pathFormat, string path, long orderId) + private void OnErrorGetOrderByIdDefaultImplementation(Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, long orderId) { - bool suppressDefaultLog = false; - OnErrorGetOrderById(ref suppressDefaultLog, exception, pathFormat, path, orderId); - if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while sending the request to the server."); + bool suppressDefaultLogLocalVar = false; + OnErrorGetOrderById(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, orderId); + if (!suppressDefaultLogLocalVar) + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling /// - /// - /// - /// - /// + /// + /// + /// + /// /// - partial void OnErrorGetOrderById(ref bool suppressDefaultLog, Exception exception, string pathFormat, string path, long orderId); + partial void OnErrorGetOrderById(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, long orderId); /// /// Find purchase order by ID For valid response try integer IDs with value <= 5 or > 10. Other values will generate exceptions @@ -995,27 +995,27 @@ namespace Org.OpenAPITools.Api /// /// Logs exceptions that occur while retrieving the server response /// - /// - /// - /// + /// + /// + /// /// - private void OnErrorPlaceOrderDefaultImplementation(Exception exception, string pathFormat, string path, Order order) + private void OnErrorPlaceOrderDefaultImplementation(Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, Order order) { - bool suppressDefaultLog = false; - OnErrorPlaceOrder(ref suppressDefaultLog, exception, pathFormat, path, order); - if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while sending the request to the server."); + bool suppressDefaultLogLocalVar = false; + OnErrorPlaceOrder(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, order); + if (!suppressDefaultLogLocalVar) + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling /// - /// - /// - /// - /// + /// + /// + /// + /// /// - partial void OnErrorPlaceOrder(ref bool suppressDefaultLog, Exception exception, string pathFormat, string path, Order order); + partial void OnErrorPlaceOrder(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, Order order); /// /// Place an order for a pet diff --git a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Api/UserApi.cs b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Api/UserApi.cs index 25824cb3dca..46a87aed2c0 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Api/UserApi.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Api/UserApi.cs @@ -636,27 +636,27 @@ namespace Org.OpenAPITools.Api /// /// Logs exceptions that occur while retrieving the server response /// - /// - /// - /// + /// + /// + /// /// - private void OnErrorCreateUserDefaultImplementation(Exception exception, string pathFormat, string path, User user) + private void OnErrorCreateUserDefaultImplementation(Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, User user) { - bool suppressDefaultLog = false; - OnErrorCreateUser(ref suppressDefaultLog, exception, pathFormat, path, user); - if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while sending the request to the server."); + bool suppressDefaultLogLocalVar = false; + OnErrorCreateUser(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, user); + if (!suppressDefaultLogLocalVar) + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling /// - /// - /// - /// - /// + /// + /// + /// + /// /// - partial void OnErrorCreateUser(ref bool suppressDefaultLog, Exception exception, string pathFormat, string path, User user); + partial void OnErrorCreateUser(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, User user); /// /// Create user This can only be done by the logged in user. @@ -825,27 +825,27 @@ namespace Org.OpenAPITools.Api /// /// Logs exceptions that occur while retrieving the server response /// - /// - /// - /// + /// + /// + /// /// - private void OnErrorCreateUsersWithArrayInputDefaultImplementation(Exception exception, string pathFormat, string path, List user) + private void OnErrorCreateUsersWithArrayInputDefaultImplementation(Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, List user) { - bool suppressDefaultLog = false; - OnErrorCreateUsersWithArrayInput(ref suppressDefaultLog, exception, pathFormat, path, user); - if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while sending the request to the server."); + bool suppressDefaultLogLocalVar = false; + OnErrorCreateUsersWithArrayInput(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, user); + if (!suppressDefaultLogLocalVar) + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling /// - /// - /// - /// - /// + /// + /// + /// + /// /// - partial void OnErrorCreateUsersWithArrayInput(ref bool suppressDefaultLog, Exception exception, string pathFormat, string path, List user); + partial void OnErrorCreateUsersWithArrayInput(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, List user); /// /// Creates list of users with given input array @@ -1014,27 +1014,27 @@ namespace Org.OpenAPITools.Api /// /// Logs exceptions that occur while retrieving the server response /// - /// - /// - /// + /// + /// + /// /// - private void OnErrorCreateUsersWithListInputDefaultImplementation(Exception exception, string pathFormat, string path, List user) + private void OnErrorCreateUsersWithListInputDefaultImplementation(Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, List user) { - bool suppressDefaultLog = false; - OnErrorCreateUsersWithListInput(ref suppressDefaultLog, exception, pathFormat, path, user); - if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while sending the request to the server."); + bool suppressDefaultLogLocalVar = false; + OnErrorCreateUsersWithListInput(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, user); + if (!suppressDefaultLogLocalVar) + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling /// - /// - /// - /// - /// + /// + /// + /// + /// /// - partial void OnErrorCreateUsersWithListInput(ref bool suppressDefaultLog, Exception exception, string pathFormat, string path, List user); + partial void OnErrorCreateUsersWithListInput(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, List user); /// /// Creates list of users with given input array @@ -1203,27 +1203,27 @@ namespace Org.OpenAPITools.Api /// /// Logs exceptions that occur while retrieving the server response /// - /// - /// - /// + /// + /// + /// /// - private void OnErrorDeleteUserDefaultImplementation(Exception exception, string pathFormat, string path, string username) + private void OnErrorDeleteUserDefaultImplementation(Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, string username) { - bool suppressDefaultLog = false; - OnErrorDeleteUser(ref suppressDefaultLog, exception, pathFormat, path, username); - if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while sending the request to the server."); + bool suppressDefaultLogLocalVar = false; + OnErrorDeleteUser(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, username); + if (!suppressDefaultLogLocalVar) + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling /// - /// - /// - /// - /// + /// + /// + /// + /// /// - partial void OnErrorDeleteUser(ref bool suppressDefaultLog, Exception exception, string pathFormat, string path, string username); + partial void OnErrorDeleteUser(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, string username); /// /// Delete user This can only be done by the logged in user. @@ -1385,27 +1385,27 @@ namespace Org.OpenAPITools.Api /// /// Logs exceptions that occur while retrieving the server response /// - /// - /// - /// + /// + /// + /// /// - private void OnErrorGetUserByNameDefaultImplementation(Exception exception, string pathFormat, string path, string username) + private void OnErrorGetUserByNameDefaultImplementation(Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, string username) { - bool suppressDefaultLog = false; - OnErrorGetUserByName(ref suppressDefaultLog, exception, pathFormat, path, username); - if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while sending the request to the server."); + bool suppressDefaultLogLocalVar = false; + OnErrorGetUserByName(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, username); + if (!suppressDefaultLogLocalVar) + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling /// - /// - /// - /// - /// + /// + /// + /// + /// /// - partial void OnErrorGetUserByName(ref bool suppressDefaultLog, Exception exception, string pathFormat, string path, string username); + partial void OnErrorGetUserByName(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, string username); /// /// Get user by user name @@ -1665,29 +1665,29 @@ namespace Org.OpenAPITools.Api /// /// Logs exceptions that occur while retrieving the server response /// - /// - /// - /// + /// + /// + /// /// /// - private void OnErrorLoginUserDefaultImplementation(Exception exception, string pathFormat, string path, string password, string username) + private void OnErrorLoginUserDefaultImplementation(Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, string password, string username) { - bool suppressDefaultLog = false; - OnErrorLoginUser(ref suppressDefaultLog, exception, pathFormat, path, password, username); - if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while sending the request to the server."); + bool suppressDefaultLogLocalVar = false; + OnErrorLoginUser(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, password, username); + if (!suppressDefaultLogLocalVar) + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling /// - /// - /// - /// - /// + /// + /// + /// + /// /// /// - partial void OnErrorLoginUser(ref bool suppressDefaultLog, Exception exception, string pathFormat, string path, string password, string username); + partial void OnErrorLoginUser(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, string password, string username); /// /// Logs user into the system @@ -1884,25 +1884,25 @@ namespace Org.OpenAPITools.Api /// /// Logs exceptions that occur while retrieving the server response /// - /// - /// - /// - private void OnErrorLogoutUserDefaultImplementation(Exception exception, string pathFormat, string path) + /// + /// + /// + private void OnErrorLogoutUserDefaultImplementation(Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar) { - bool suppressDefaultLog = false; - OnErrorLogoutUser(ref suppressDefaultLog, exception, pathFormat, path); - if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while sending the request to the server."); + bool suppressDefaultLogLocalVar = false; + OnErrorLogoutUser(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar); + if (!suppressDefaultLogLocalVar) + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling /// - /// - /// - /// - /// - partial void OnErrorLogoutUser(ref bool suppressDefaultLog, Exception exception, string pathFormat, string path); + /// + /// + /// + /// + partial void OnErrorLogoutUser(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar); /// /// Logs out current logged in user session @@ -2057,29 +2057,29 @@ namespace Org.OpenAPITools.Api /// /// Logs exceptions that occur while retrieving the server response /// - /// - /// - /// + /// + /// + /// /// /// - private void OnErrorUpdateUserDefaultImplementation(Exception exception, string pathFormat, string path, User user, string username) + private void OnErrorUpdateUserDefaultImplementation(Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, User user, string username) { - bool suppressDefaultLog = false; - OnErrorUpdateUser(ref suppressDefaultLog, exception, pathFormat, path, user, username); - if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while sending the request to the server."); + bool suppressDefaultLogLocalVar = false; + OnErrorUpdateUser(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, user, username); + if (!suppressDefaultLogLocalVar) + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling /// - /// - /// - /// - /// + /// + /// + /// + /// /// /// - partial void OnErrorUpdateUser(ref bool suppressDefaultLog, Exception exception, string pathFormat, string path, User user, string username); + partial void OnErrorUpdateUser(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, User user, string username); /// /// Updated user This can only be done by the logged in user. diff --git a/samples/client/petstore/csharp/generichost/net4.7/OneOf/src/Org.OpenAPITools/Api/DefaultApi.cs b/samples/client/petstore/csharp/generichost/net4.7/OneOf/src/Org.OpenAPITools/Api/DefaultApi.cs index 9fb9257ced6..c2a2d862a62 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/OneOf/src/Org.OpenAPITools/Api/DefaultApi.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/OneOf/src/Org.OpenAPITools/Api/DefaultApi.cs @@ -155,25 +155,25 @@ namespace Org.OpenAPITools.Api /// /// Logs exceptions that occur while retrieving the server response /// - /// - /// - /// - private void OnErrorRootGetDefaultImplementation(Exception exception, string pathFormat, string path) + /// + /// + /// + private void OnErrorRootGetDefaultImplementation(Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar) { - bool suppressDefaultLog = false; - OnErrorRootGet(ref suppressDefaultLog, exception, pathFormat, path); - if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while sending the request to the server."); + bool suppressDefaultLogLocalVar = false; + OnErrorRootGet(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar); + if (!suppressDefaultLogLocalVar) + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling /// - /// - /// - /// - /// - partial void OnErrorRootGet(ref bool suppressDefaultLog, Exception exception, string pathFormat, string path); + /// + /// + /// + /// + partial void OnErrorRootGet(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar); /// /// diff --git a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Api/AnotherFakeApi.cs b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Api/AnotherFakeApi.cs index eef2a62a180..1fd1ffef4fe 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Api/AnotherFakeApi.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Api/AnotherFakeApi.cs @@ -207,27 +207,27 @@ namespace Org.OpenAPITools.Api /// /// Logs exceptions that occur while retrieving the server response /// - /// - /// - /// + /// + /// + /// /// - private void OnErrorCall123TestSpecialTagsDefaultImplementation(Exception exception, string pathFormat, string path, ModelClient modelClient) + private void OnErrorCall123TestSpecialTagsDefaultImplementation(Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, ModelClient modelClient) { - bool suppressDefaultLog = false; - OnErrorCall123TestSpecialTags(ref suppressDefaultLog, exception, pathFormat, path, modelClient); - if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while sending the request to the server."); + bool suppressDefaultLogLocalVar = false; + OnErrorCall123TestSpecialTags(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, modelClient); + if (!suppressDefaultLogLocalVar) + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling /// - /// - /// - /// - /// + /// + /// + /// + /// /// - partial void OnErrorCall123TestSpecialTags(ref bool suppressDefaultLog, Exception exception, string pathFormat, string path, ModelClient modelClient); + partial void OnErrorCall123TestSpecialTags(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, ModelClient modelClient); /// /// To test special tags To test special tags and operation ID starting with number diff --git a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Api/DefaultApi.cs b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Api/DefaultApi.cs index 5151d6053e5..879c3ecdb9a 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Api/DefaultApi.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Api/DefaultApi.cs @@ -404,25 +404,25 @@ namespace Org.OpenAPITools.Api /// /// Logs exceptions that occur while retrieving the server response /// - /// - /// - /// - private void OnErrorFooGetDefaultImplementation(Exception exception, string pathFormat, string path) + /// + /// + /// + private void OnErrorFooGetDefaultImplementation(Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar) { - bool suppressDefaultLog = false; - OnErrorFooGet(ref suppressDefaultLog, exception, pathFormat, path); - if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while sending the request to the server."); + bool suppressDefaultLogLocalVar = false; + OnErrorFooGet(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar); + if (!suppressDefaultLogLocalVar) + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling /// - /// - /// - /// - /// - partial void OnErrorFooGet(ref bool suppressDefaultLog, Exception exception, string pathFormat, string path); + /// + /// + /// + /// + partial void OnErrorFooGet(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar); /// /// @@ -612,27 +612,27 @@ namespace Org.OpenAPITools.Api /// /// Logs exceptions that occur while retrieving the server response /// - /// - /// - /// + /// + /// + /// /// - private void OnErrorGetCountryDefaultImplementation(Exception exception, string pathFormat, string path, string country) + private void OnErrorGetCountryDefaultImplementation(Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, string country) { - bool suppressDefaultLog = false; - OnErrorGetCountry(ref suppressDefaultLog, exception, pathFormat, path, country); - if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while sending the request to the server."); + bool suppressDefaultLogLocalVar = false; + OnErrorGetCountry(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, country); + if (!suppressDefaultLogLocalVar) + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling /// - /// - /// - /// - /// + /// + /// + /// + /// /// - partial void OnErrorGetCountry(ref bool suppressDefaultLog, Exception exception, string pathFormat, string path, string country); + partial void OnErrorGetCountry(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, string country); /// /// @@ -792,25 +792,25 @@ namespace Org.OpenAPITools.Api /// /// Logs exceptions that occur while retrieving the server response /// - /// - /// - /// - private void OnErrorHelloDefaultImplementation(Exception exception, string pathFormat, string path) + /// + /// + /// + private void OnErrorHelloDefaultImplementation(Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar) { - bool suppressDefaultLog = false; - OnErrorHello(ref suppressDefaultLog, exception, pathFormat, path); - if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while sending the request to the server."); + bool suppressDefaultLogLocalVar = false; + OnErrorHello(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar); + if (!suppressDefaultLogLocalVar) + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling /// - /// - /// - /// - /// - partial void OnErrorHello(ref bool suppressDefaultLog, Exception exception, string pathFormat, string path); + /// + /// + /// + /// + partial void OnErrorHello(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar); /// /// Hello Hello @@ -985,25 +985,25 @@ namespace Org.OpenAPITools.Api /// /// Logs exceptions that occur while retrieving the server response /// - /// - /// - /// - private void OnErrorRolesReportGetDefaultImplementation(Exception exception, string pathFormat, string path) + /// + /// + /// + private void OnErrorRolesReportGetDefaultImplementation(Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar) { - bool suppressDefaultLog = false; - OnErrorRolesReportGet(ref suppressDefaultLog, exception, pathFormat, path); - if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while sending the request to the server."); + bool suppressDefaultLogLocalVar = false; + OnErrorRolesReportGet(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar); + if (!suppressDefaultLogLocalVar) + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling /// - /// - /// - /// - /// - partial void OnErrorRolesReportGet(ref bool suppressDefaultLog, Exception exception, string pathFormat, string path); + /// + /// + /// + /// + partial void OnErrorRolesReportGet(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar); /// /// @@ -1178,25 +1178,25 @@ namespace Org.OpenAPITools.Api /// /// Logs exceptions that occur while retrieving the server response /// - /// - /// - /// - private void OnErrorTestDefaultImplementation(Exception exception, string pathFormat, string path) + /// + /// + /// + private void OnErrorTestDefaultImplementation(Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar) { - bool suppressDefaultLog = false; - OnErrorTest(ref suppressDefaultLog, exception, pathFormat, path); - if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while sending the request to the server."); + bool suppressDefaultLogLocalVar = false; + OnErrorTest(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar); + if (!suppressDefaultLogLocalVar) + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling /// - /// - /// - /// - /// - partial void OnErrorTest(ref bool suppressDefaultLog, Exception exception, string pathFormat, string path); + /// + /// + /// + /// + partial void OnErrorTest(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar); /// /// Retrieve an existing Notificationtest's Elements diff --git a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Api/FakeApi.cs b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Api/FakeApi.cs index 402f72e32af..b3b0cf5352f 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Api/FakeApi.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Api/FakeApi.cs @@ -1313,25 +1313,25 @@ namespace Org.OpenAPITools.Api /// /// Logs exceptions that occur while retrieving the server response /// - /// - /// - /// - private void OnErrorFakeHealthGetDefaultImplementation(Exception exception, string pathFormat, string path) + /// + /// + /// + private void OnErrorFakeHealthGetDefaultImplementation(Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar) { - bool suppressDefaultLog = false; - OnErrorFakeHealthGet(ref suppressDefaultLog, exception, pathFormat, path); - if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while sending the request to the server."); + bool suppressDefaultLogLocalVar = false; + OnErrorFakeHealthGet(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar); + if (!suppressDefaultLogLocalVar) + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling /// - /// - /// - /// - /// - partial void OnErrorFakeHealthGet(ref bool suppressDefaultLog, Exception exception, string pathFormat, string path); + /// + /// + /// + /// + partial void OnErrorFakeHealthGet(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar); /// /// Health check endpoint @@ -1510,27 +1510,27 @@ namespace Org.OpenAPITools.Api /// /// Logs exceptions that occur while retrieving the server response /// - /// - /// - /// + /// + /// + /// /// - private void OnErrorFakeOuterBooleanSerializeDefaultImplementation(Exception exception, string pathFormat, string path, Option body) + private void OnErrorFakeOuterBooleanSerializeDefaultImplementation(Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, Option body) { - bool suppressDefaultLog = false; - OnErrorFakeOuterBooleanSerialize(ref suppressDefaultLog, exception, pathFormat, path, body); - if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while sending the request to the server."); + bool suppressDefaultLogLocalVar = false; + OnErrorFakeOuterBooleanSerialize(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, body); + if (!suppressDefaultLogLocalVar) + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling /// - /// - /// - /// - /// + /// + /// + /// + /// /// - partial void OnErrorFakeOuterBooleanSerialize(ref bool suppressDefaultLog, Exception exception, string pathFormat, string path, Option body); + partial void OnErrorFakeOuterBooleanSerialize(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, Option body); /// /// Test serialization of outer boolean types @@ -1738,27 +1738,27 @@ namespace Org.OpenAPITools.Api /// /// Logs exceptions that occur while retrieving the server response /// - /// - /// - /// + /// + /// + /// /// - private void OnErrorFakeOuterCompositeSerializeDefaultImplementation(Exception exception, string pathFormat, string path, Option outerComposite) + private void OnErrorFakeOuterCompositeSerializeDefaultImplementation(Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, Option outerComposite) { - bool suppressDefaultLog = false; - OnErrorFakeOuterCompositeSerialize(ref suppressDefaultLog, exception, pathFormat, path, outerComposite); - if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while sending the request to the server."); + bool suppressDefaultLogLocalVar = false; + OnErrorFakeOuterCompositeSerialize(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, outerComposite); + if (!suppressDefaultLogLocalVar) + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling /// - /// - /// - /// - /// + /// + /// + /// + /// /// - partial void OnErrorFakeOuterCompositeSerialize(ref bool suppressDefaultLog, Exception exception, string pathFormat, string path, Option outerComposite); + partial void OnErrorFakeOuterCompositeSerialize(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, Option outerComposite); /// /// Test serialization of object with outer number type @@ -1957,27 +1957,27 @@ namespace Org.OpenAPITools.Api /// /// Logs exceptions that occur while retrieving the server response /// - /// - /// - /// + /// + /// + /// /// - private void OnErrorFakeOuterNumberSerializeDefaultImplementation(Exception exception, string pathFormat, string path, Option body) + private void OnErrorFakeOuterNumberSerializeDefaultImplementation(Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, Option body) { - bool suppressDefaultLog = false; - OnErrorFakeOuterNumberSerialize(ref suppressDefaultLog, exception, pathFormat, path, body); - if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while sending the request to the server."); + bool suppressDefaultLogLocalVar = false; + OnErrorFakeOuterNumberSerialize(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, body); + if (!suppressDefaultLogLocalVar) + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling /// - /// - /// - /// - /// + /// + /// + /// + /// /// - partial void OnErrorFakeOuterNumberSerialize(ref bool suppressDefaultLog, Exception exception, string pathFormat, string path, Option body); + partial void OnErrorFakeOuterNumberSerialize(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, Option body); /// /// Test serialization of outer number types @@ -2187,29 +2187,29 @@ namespace Org.OpenAPITools.Api /// /// Logs exceptions that occur while retrieving the server response /// - /// - /// - /// + /// + /// + /// /// /// - private void OnErrorFakeOuterStringSerializeDefaultImplementation(Exception exception, string pathFormat, string path, Guid requiredStringUuid, Option body) + private void OnErrorFakeOuterStringSerializeDefaultImplementation(Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, Guid requiredStringUuid, Option body) { - bool suppressDefaultLog = false; - OnErrorFakeOuterStringSerialize(ref suppressDefaultLog, exception, pathFormat, path, requiredStringUuid, body); - if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while sending the request to the server."); + bool suppressDefaultLogLocalVar = false; + OnErrorFakeOuterStringSerialize(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, requiredStringUuid, body); + if (!suppressDefaultLogLocalVar) + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling /// - /// - /// - /// - /// + /// + /// + /// + /// /// /// - partial void OnErrorFakeOuterStringSerialize(ref bool suppressDefaultLog, Exception exception, string pathFormat, string path, Guid requiredStringUuid, Option body); + partial void OnErrorFakeOuterStringSerialize(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, Guid requiredStringUuid, Option body); /// /// Test serialization of outer string types @@ -2412,25 +2412,25 @@ namespace Org.OpenAPITools.Api /// /// Logs exceptions that occur while retrieving the server response /// - /// - /// - /// - private void OnErrorGetArrayOfEnumsDefaultImplementation(Exception exception, string pathFormat, string path) + /// + /// + /// + private void OnErrorGetArrayOfEnumsDefaultImplementation(Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar) { - bool suppressDefaultLog = false; - OnErrorGetArrayOfEnums(ref suppressDefaultLog, exception, pathFormat, path); - if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while sending the request to the server."); + bool suppressDefaultLogLocalVar = false; + OnErrorGetArrayOfEnums(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar); + if (!suppressDefaultLogLocalVar) + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling /// - /// - /// - /// - /// - partial void OnErrorGetArrayOfEnums(ref bool suppressDefaultLog, Exception exception, string pathFormat, string path); + /// + /// + /// + /// + partial void OnErrorGetArrayOfEnums(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar); /// /// Array of Enums @@ -2605,25 +2605,25 @@ namespace Org.OpenAPITools.Api /// /// Logs exceptions that occur while retrieving the server response /// - /// - /// - /// - private void OnErrorGetMixedAnyOfDefaultImplementation(Exception exception, string pathFormat, string path) + /// + /// + /// + private void OnErrorGetMixedAnyOfDefaultImplementation(Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar) { - bool suppressDefaultLog = false; - OnErrorGetMixedAnyOf(ref suppressDefaultLog, exception, pathFormat, path); - if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while sending the request to the server."); + bool suppressDefaultLogLocalVar = false; + OnErrorGetMixedAnyOf(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar); + if (!suppressDefaultLogLocalVar) + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling /// - /// - /// - /// - /// - partial void OnErrorGetMixedAnyOf(ref bool suppressDefaultLog, Exception exception, string pathFormat, string path); + /// + /// + /// + /// + partial void OnErrorGetMixedAnyOf(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar); /// /// Test mixed type anyOf deserialization @@ -2798,25 +2798,25 @@ namespace Org.OpenAPITools.Api /// /// Logs exceptions that occur while retrieving the server response /// - /// - /// - /// - private void OnErrorGetMixedOneOfDefaultImplementation(Exception exception, string pathFormat, string path) + /// + /// + /// + private void OnErrorGetMixedOneOfDefaultImplementation(Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar) { - bool suppressDefaultLog = false; - OnErrorGetMixedOneOf(ref suppressDefaultLog, exception, pathFormat, path); - if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while sending the request to the server."); + bool suppressDefaultLogLocalVar = false; + OnErrorGetMixedOneOf(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar); + if (!suppressDefaultLogLocalVar) + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling /// - /// - /// - /// - /// - partial void OnErrorGetMixedOneOf(ref bool suppressDefaultLog, Exception exception, string pathFormat, string path); + /// + /// + /// + /// + partial void OnErrorGetMixedOneOf(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar); /// /// Test mixed type oneOf deserialization @@ -3006,27 +3006,27 @@ namespace Org.OpenAPITools.Api /// /// Logs exceptions that occur while retrieving the server response /// - /// - /// - /// + /// + /// + /// /// - private void OnErrorTestAdditionalPropertiesReferenceDefaultImplementation(Exception exception, string pathFormat, string path, Dictionary requestBody) + private void OnErrorTestAdditionalPropertiesReferenceDefaultImplementation(Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, Dictionary requestBody) { - bool suppressDefaultLog = false; - OnErrorTestAdditionalPropertiesReference(ref suppressDefaultLog, exception, pathFormat, path, requestBody); - if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while sending the request to the server."); + bool suppressDefaultLogLocalVar = false; + OnErrorTestAdditionalPropertiesReference(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, requestBody); + if (!suppressDefaultLogLocalVar) + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling /// - /// - /// - /// - /// + /// + /// + /// + /// /// - partial void OnErrorTestAdditionalPropertiesReference(ref bool suppressDefaultLog, Exception exception, string pathFormat, string path, Dictionary requestBody); + partial void OnErrorTestAdditionalPropertiesReference(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, Dictionary requestBody); /// /// test referenced additionalProperties @@ -3195,27 +3195,27 @@ namespace Org.OpenAPITools.Api /// /// Logs exceptions that occur while retrieving the server response /// - /// - /// - /// + /// + /// + /// /// - private void OnErrorTestBodyWithFileSchemaDefaultImplementation(Exception exception, string pathFormat, string path, FileSchemaTestClass fileSchemaTestClass) + private void OnErrorTestBodyWithFileSchemaDefaultImplementation(Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, FileSchemaTestClass fileSchemaTestClass) { - bool suppressDefaultLog = false; - OnErrorTestBodyWithFileSchema(ref suppressDefaultLog, exception, pathFormat, path, fileSchemaTestClass); - if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while sending the request to the server."); + bool suppressDefaultLogLocalVar = false; + OnErrorTestBodyWithFileSchema(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, fileSchemaTestClass); + if (!suppressDefaultLogLocalVar) + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling /// - /// - /// - /// - /// + /// + /// + /// + /// /// - partial void OnErrorTestBodyWithFileSchema(ref bool suppressDefaultLog, Exception exception, string pathFormat, string path, FileSchemaTestClass fileSchemaTestClass); + partial void OnErrorTestBodyWithFileSchema(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, FileSchemaTestClass fileSchemaTestClass); /// /// For this test, the body for this request much reference a schema named `File`. @@ -3390,29 +3390,29 @@ namespace Org.OpenAPITools.Api /// /// Logs exceptions that occur while retrieving the server response /// - /// - /// - /// + /// + /// + /// /// /// - private void OnErrorTestBodyWithQueryParamsDefaultImplementation(Exception exception, string pathFormat, string path, string query, User user) + private void OnErrorTestBodyWithQueryParamsDefaultImplementation(Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, string query, User user) { - bool suppressDefaultLog = false; - OnErrorTestBodyWithQueryParams(ref suppressDefaultLog, exception, pathFormat, path, query, user); - if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while sending the request to the server."); + bool suppressDefaultLogLocalVar = false; + OnErrorTestBodyWithQueryParams(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, query, user); + if (!suppressDefaultLogLocalVar) + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling /// - /// - /// - /// - /// + /// + /// + /// + /// /// /// - partial void OnErrorTestBodyWithQueryParams(ref bool suppressDefaultLog, Exception exception, string pathFormat, string path, string query, User user); + partial void OnErrorTestBodyWithQueryParams(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, string query, User user); /// /// @@ -3589,27 +3589,27 @@ namespace Org.OpenAPITools.Api /// /// Logs exceptions that occur while retrieving the server response /// - /// - /// - /// + /// + /// + /// /// - private void OnErrorTestClientModelDefaultImplementation(Exception exception, string pathFormat, string path, ModelClient modelClient) + private void OnErrorTestClientModelDefaultImplementation(Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, ModelClient modelClient) { - bool suppressDefaultLog = false; - OnErrorTestClientModel(ref suppressDefaultLog, exception, pathFormat, path, modelClient); - if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while sending the request to the server."); + bool suppressDefaultLogLocalVar = false; + OnErrorTestClientModel(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, modelClient); + if (!suppressDefaultLogLocalVar) + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling /// - /// - /// - /// - /// + /// + /// + /// + /// /// - partial void OnErrorTestClientModel(ref bool suppressDefaultLog, Exception exception, string pathFormat, string path, ModelClient modelClient); + partial void OnErrorTestClientModel(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, ModelClient modelClient); /// /// To test \"client\" model To test \"client\" model @@ -3864,9 +3864,9 @@ namespace Org.OpenAPITools.Api /// /// Logs exceptions that occur while retrieving the server response /// - /// - /// - /// + /// + /// + /// /// /// /// @@ -3881,21 +3881,21 @@ namespace Org.OpenAPITools.Api /// /// /// - private void OnErrorTestEndpointParametersDefaultImplementation(Exception exception, string pathFormat, string path, decimal number, string patternWithoutDelimiter, byte[] varByte, double varDouble, Option binary, Option callback, Option date, Option dateTime, Option int32, Option int64, Option integer, Option password, Option varFloat, Option varString) + private void OnErrorTestEndpointParametersDefaultImplementation(Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, decimal number, string patternWithoutDelimiter, byte[] varByte, double varDouble, Option binary, Option callback, Option date, Option dateTime, Option int32, Option int64, Option integer, Option password, Option varFloat, Option varString) { - bool suppressDefaultLog = false; - OnErrorTestEndpointParameters(ref suppressDefaultLog, exception, pathFormat, path, number, patternWithoutDelimiter, varByte, varDouble, binary, callback, date, dateTime, int32, int64, integer, password, varFloat, varString); - if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while sending the request to the server."); + bool suppressDefaultLogLocalVar = false; + OnErrorTestEndpointParameters(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, number, patternWithoutDelimiter, varByte, varDouble, binary, callback, date, dateTime, int32, int64, integer, password, varFloat, varString); + if (!suppressDefaultLogLocalVar) + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling /// - /// - /// - /// - /// + /// + /// + /// + /// /// /// /// @@ -3910,7 +3910,7 @@ namespace Org.OpenAPITools.Api /// /// /// - partial void OnErrorTestEndpointParameters(ref bool suppressDefaultLog, Exception exception, string pathFormat, string path, decimal number, string patternWithoutDelimiter, byte[] varByte, double varDouble, Option binary, Option callback, Option date, Option dateTime, Option int32, Option int64, Option integer, Option password, Option varFloat, Option varString); + partial void OnErrorTestEndpointParameters(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, decimal number, string patternWithoutDelimiter, byte[] varByte, double varDouble, Option binary, Option callback, Option date, Option dateTime, Option int32, Option int64, Option integer, Option password, Option varFloat, Option varString); /// /// Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트 Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트 @@ -4198,9 +4198,9 @@ namespace Org.OpenAPITools.Api /// /// Logs exceptions that occur while retrieving the server response /// - /// - /// - /// + /// + /// + /// /// /// /// @@ -4209,21 +4209,21 @@ namespace Org.OpenAPITools.Api /// /// /// - private void OnErrorTestEnumParametersDefaultImplementation(Exception exception, string pathFormat, string path, Option enumFormString, Option> enumFormStringArray, Option enumHeaderString, Option> enumHeaderStringArray, Option enumQueryDouble, Option enumQueryInteger, Option enumQueryString, Option> enumQueryStringArray) + private void OnErrorTestEnumParametersDefaultImplementation(Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, Option enumFormString, Option> enumFormStringArray, Option enumHeaderString, Option> enumHeaderStringArray, Option enumQueryDouble, Option enumQueryInteger, Option enumQueryString, Option> enumQueryStringArray) { - bool suppressDefaultLog = false; - OnErrorTestEnumParameters(ref suppressDefaultLog, exception, pathFormat, path, enumFormString, enumFormStringArray, enumHeaderString, enumHeaderStringArray, enumQueryDouble, enumQueryInteger, enumQueryString, enumQueryStringArray); - if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while sending the request to the server."); + bool suppressDefaultLogLocalVar = false; + OnErrorTestEnumParameters(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, enumFormString, enumFormStringArray, enumHeaderString, enumHeaderStringArray, enumQueryDouble, enumQueryInteger, enumQueryString, enumQueryStringArray); + if (!suppressDefaultLogLocalVar) + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling /// - /// - /// - /// - /// + /// + /// + /// + /// /// /// /// @@ -4232,7 +4232,7 @@ namespace Org.OpenAPITools.Api /// /// /// - partial void OnErrorTestEnumParameters(ref bool suppressDefaultLog, Exception exception, string pathFormat, string path, Option enumFormString, Option> enumFormStringArray, Option enumHeaderString, Option> enumHeaderStringArray, Option enumQueryDouble, Option enumQueryInteger, Option enumQueryString, Option> enumQueryStringArray); + partial void OnErrorTestEnumParameters(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, Option enumFormString, Option> enumFormStringArray, Option enumHeaderString, Option> enumHeaderStringArray, Option enumQueryDouble, Option enumQueryInteger, Option enumQueryString, Option> enumQueryStringArray); /// /// To test enum parameters To test enum parameters @@ -4450,37 +4450,37 @@ namespace Org.OpenAPITools.Api /// /// Logs exceptions that occur while retrieving the server response /// - /// - /// - /// + /// + /// + /// /// /// /// /// /// /// - private void OnErrorTestGroupParametersDefaultImplementation(Exception exception, string pathFormat, string path, bool requiredBooleanGroup, long requiredInt64Group, int requiredStringGroup, Option booleanGroup, Option int64Group, Option stringGroup) + private void OnErrorTestGroupParametersDefaultImplementation(Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, bool requiredBooleanGroup, long requiredInt64Group, int requiredStringGroup, Option booleanGroup, Option int64Group, Option stringGroup) { - bool suppressDefaultLog = false; - OnErrorTestGroupParameters(ref suppressDefaultLog, exception, pathFormat, path, requiredBooleanGroup, requiredInt64Group, requiredStringGroup, booleanGroup, int64Group, stringGroup); - if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while sending the request to the server."); + bool suppressDefaultLogLocalVar = false; + OnErrorTestGroupParameters(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, requiredBooleanGroup, requiredInt64Group, requiredStringGroup, booleanGroup, int64Group, stringGroup); + if (!suppressDefaultLogLocalVar) + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling /// - /// - /// - /// - /// + /// + /// + /// + /// /// /// /// /// /// /// - partial void OnErrorTestGroupParameters(ref bool suppressDefaultLog, Exception exception, string pathFormat, string path, bool requiredBooleanGroup, long requiredInt64Group, int requiredStringGroup, Option booleanGroup, Option int64Group, Option stringGroup); + partial void OnErrorTestGroupParameters(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, bool requiredBooleanGroup, long requiredInt64Group, int requiredStringGroup, Option booleanGroup, Option int64Group, Option stringGroup); /// /// Fake endpoint to test group parameters (optional) Fake endpoint to test group parameters (optional) @@ -4672,27 +4672,27 @@ namespace Org.OpenAPITools.Api /// /// Logs exceptions that occur while retrieving the server response /// - /// - /// - /// + /// + /// + /// /// - private void OnErrorTestInlineAdditionalPropertiesDefaultImplementation(Exception exception, string pathFormat, string path, Dictionary requestBody) + private void OnErrorTestInlineAdditionalPropertiesDefaultImplementation(Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, Dictionary requestBody) { - bool suppressDefaultLog = false; - OnErrorTestInlineAdditionalProperties(ref suppressDefaultLog, exception, pathFormat, path, requestBody); - if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while sending the request to the server."); + bool suppressDefaultLogLocalVar = false; + OnErrorTestInlineAdditionalProperties(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, requestBody); + if (!suppressDefaultLogLocalVar) + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling /// - /// - /// - /// - /// + /// + /// + /// + /// /// - partial void OnErrorTestInlineAdditionalProperties(ref bool suppressDefaultLog, Exception exception, string pathFormat, string path, Dictionary requestBody); + partial void OnErrorTestInlineAdditionalProperties(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, Dictionary requestBody); /// /// test inline additionalProperties @@ -4861,27 +4861,27 @@ namespace Org.OpenAPITools.Api /// /// Logs exceptions that occur while retrieving the server response /// - /// - /// - /// + /// + /// + /// /// - private void OnErrorTestInlineFreeformAdditionalPropertiesDefaultImplementation(Exception exception, string pathFormat, string path, TestInlineFreeformAdditionalPropertiesRequest testInlineFreeformAdditionalPropertiesRequest) + private void OnErrorTestInlineFreeformAdditionalPropertiesDefaultImplementation(Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, TestInlineFreeformAdditionalPropertiesRequest testInlineFreeformAdditionalPropertiesRequest) { - bool suppressDefaultLog = false; - OnErrorTestInlineFreeformAdditionalProperties(ref suppressDefaultLog, exception, pathFormat, path, testInlineFreeformAdditionalPropertiesRequest); - if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while sending the request to the server."); + bool suppressDefaultLogLocalVar = false; + OnErrorTestInlineFreeformAdditionalProperties(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, testInlineFreeformAdditionalPropertiesRequest); + if (!suppressDefaultLogLocalVar) + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling /// - /// - /// - /// - /// + /// + /// + /// + /// /// - partial void OnErrorTestInlineFreeformAdditionalProperties(ref bool suppressDefaultLog, Exception exception, string pathFormat, string path, TestInlineFreeformAdditionalPropertiesRequest testInlineFreeformAdditionalPropertiesRequest); + partial void OnErrorTestInlineFreeformAdditionalProperties(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, TestInlineFreeformAdditionalPropertiesRequest testInlineFreeformAdditionalPropertiesRequest); /// /// test inline free-form additionalProperties @@ -5056,29 +5056,29 @@ namespace Org.OpenAPITools.Api /// /// Logs exceptions that occur while retrieving the server response /// - /// - /// - /// + /// + /// + /// /// /// - private void OnErrorTestJsonFormDataDefaultImplementation(Exception exception, string pathFormat, string path, string param, string param2) + private void OnErrorTestJsonFormDataDefaultImplementation(Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, string param, string param2) { - bool suppressDefaultLog = false; - OnErrorTestJsonFormData(ref suppressDefaultLog, exception, pathFormat, path, param, param2); - if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while sending the request to the server."); + bool suppressDefaultLogLocalVar = false; + OnErrorTestJsonFormData(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, param, param2); + if (!suppressDefaultLogLocalVar) + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling /// - /// - /// - /// - /// + /// + /// + /// + /// /// /// - partial void OnErrorTestJsonFormData(ref bool suppressDefaultLog, Exception exception, string pathFormat, string path, string param, string param2); + partial void OnErrorTestJsonFormData(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, string param, string param2); /// /// test json serialization of form data @@ -5297,9 +5297,9 @@ namespace Org.OpenAPITools.Api /// /// Logs exceptions that occur while retrieving the server response /// - /// - /// - /// + /// + /// + /// /// /// /// @@ -5309,21 +5309,21 @@ namespace Org.OpenAPITools.Api /// /// /// - private void OnErrorTestQueryParameterCollectionFormatDefaultImplementation(Exception exception, string pathFormat, string path, List context, List http, List ioutil, List pipe, string requiredNotNullable, List url, Option notRequiredNotNullable, Option notRequiredNullable, string requiredNullable) + private void OnErrorTestQueryParameterCollectionFormatDefaultImplementation(Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, List context, List http, List ioutil, List pipe, string requiredNotNullable, List url, Option notRequiredNotNullable, Option notRequiredNullable, string requiredNullable) { - bool suppressDefaultLog = false; - OnErrorTestQueryParameterCollectionFormat(ref suppressDefaultLog, exception, pathFormat, path, context, http, ioutil, pipe, requiredNotNullable, url, notRequiredNotNullable, notRequiredNullable, requiredNullable); - if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while sending the request to the server."); + bool suppressDefaultLogLocalVar = false; + OnErrorTestQueryParameterCollectionFormat(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, context, http, ioutil, pipe, requiredNotNullable, url, notRequiredNotNullable, notRequiredNullable, requiredNullable); + if (!suppressDefaultLogLocalVar) + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling /// - /// - /// - /// - /// + /// + /// + /// + /// /// /// /// @@ -5333,7 +5333,7 @@ namespace Org.OpenAPITools.Api /// /// /// - partial void OnErrorTestQueryParameterCollectionFormat(ref bool suppressDefaultLog, Exception exception, string pathFormat, string path, List context, List http, List ioutil, List pipe, string requiredNotNullable, List url, Option notRequiredNotNullable, Option notRequiredNullable, string requiredNullable); + partial void OnErrorTestQueryParameterCollectionFormat(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, List context, List http, List ioutil, List pipe, string requiredNotNullable, List url, Option notRequiredNotNullable, Option notRequiredNullable, string requiredNullable); /// /// To test the collection format in query parameters @@ -5522,27 +5522,27 @@ namespace Org.OpenAPITools.Api /// /// Logs exceptions that occur while retrieving the server response /// - /// - /// - /// + /// + /// + /// /// - private void OnErrorTestStringMapReferenceDefaultImplementation(Exception exception, string pathFormat, string path, Dictionary requestBody) + private void OnErrorTestStringMapReferenceDefaultImplementation(Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, Dictionary requestBody) { - bool suppressDefaultLog = false; - OnErrorTestStringMapReference(ref suppressDefaultLog, exception, pathFormat, path, requestBody); - if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while sending the request to the server."); + bool suppressDefaultLogLocalVar = false; + OnErrorTestStringMapReference(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, requestBody); + if (!suppressDefaultLogLocalVar) + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling /// - /// - /// - /// - /// + /// + /// + /// + /// /// - partial void OnErrorTestStringMapReference(ref bool suppressDefaultLog, Exception exception, string pathFormat, string path, Dictionary requestBody); + partial void OnErrorTestStringMapReference(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, Dictionary requestBody); /// /// test referenced string map diff --git a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Api/FakeClassnameTags123Api.cs b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Api/FakeClassnameTags123Api.cs index ff66cc2a209..010a227c8b2 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Api/FakeClassnameTags123Api.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Api/FakeClassnameTags123Api.cs @@ -207,27 +207,27 @@ namespace Org.OpenAPITools.Api /// /// Logs exceptions that occur while retrieving the server response /// - /// - /// - /// + /// + /// + /// /// - private void OnErrorTestClassnameDefaultImplementation(Exception exception, string pathFormat, string path, ModelClient modelClient) + private void OnErrorTestClassnameDefaultImplementation(Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, ModelClient modelClient) { - bool suppressDefaultLog = false; - OnErrorTestClassname(ref suppressDefaultLog, exception, pathFormat, path, modelClient); - if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while sending the request to the server."); + bool suppressDefaultLogLocalVar = false; + OnErrorTestClassname(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, modelClient); + if (!suppressDefaultLogLocalVar) + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling /// - /// - /// - /// - /// + /// + /// + /// + /// /// - partial void OnErrorTestClassname(ref bool suppressDefaultLog, Exception exception, string pathFormat, string path, ModelClient modelClient); + partial void OnErrorTestClassname(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, ModelClient modelClient); /// /// To test class name in snake case To test class name in snake case diff --git a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Api/PetApi.cs b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Api/PetApi.cs index f558e4f790e..e86b5564713 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Api/PetApi.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Api/PetApi.cs @@ -711,27 +711,27 @@ namespace Org.OpenAPITools.Api /// /// Logs exceptions that occur while retrieving the server response /// - /// - /// - /// + /// + /// + /// /// - private void OnErrorAddPetDefaultImplementation(Exception exception, string pathFormat, string path, Pet pet) + private void OnErrorAddPetDefaultImplementation(Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, Pet pet) { - bool suppressDefaultLog = false; - OnErrorAddPet(ref suppressDefaultLog, exception, pathFormat, path, pet); - if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while sending the request to the server."); + bool suppressDefaultLogLocalVar = false; + OnErrorAddPet(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, pet); + if (!suppressDefaultLogLocalVar) + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling /// - /// - /// - /// - /// + /// + /// + /// + /// /// - partial void OnErrorAddPet(ref bool suppressDefaultLog, Exception exception, string pathFormat, string path, Pet pet); + partial void OnErrorAddPet(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, Pet pet); /// /// Add a new pet to the store @@ -924,29 +924,29 @@ namespace Org.OpenAPITools.Api /// /// Logs exceptions that occur while retrieving the server response /// - /// - /// - /// + /// + /// + /// /// /// - private void OnErrorDeletePetDefaultImplementation(Exception exception, string pathFormat, string path, long petId, Option apiKey) + private void OnErrorDeletePetDefaultImplementation(Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, long petId, Option apiKey) { - bool suppressDefaultLog = false; - OnErrorDeletePet(ref suppressDefaultLog, exception, pathFormat, path, petId, apiKey); - if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while sending the request to the server."); + bool suppressDefaultLogLocalVar = false; + OnErrorDeletePet(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, petId, apiKey); + if (!suppressDefaultLogLocalVar) + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling /// - /// - /// - /// - /// + /// + /// + /// + /// /// /// - partial void OnErrorDeletePet(ref bool suppressDefaultLog, Exception exception, string pathFormat, string path, long petId, Option apiKey); + partial void OnErrorDeletePet(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, long petId, Option apiKey); /// /// Deletes a pet @@ -1118,27 +1118,27 @@ namespace Org.OpenAPITools.Api /// /// Logs exceptions that occur while retrieving the server response /// - /// - /// - /// + /// + /// + /// /// - private void OnErrorFindPetsByStatusDefaultImplementation(Exception exception, string pathFormat, string path, List status) + private void OnErrorFindPetsByStatusDefaultImplementation(Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, List status) { - bool suppressDefaultLog = false; - OnErrorFindPetsByStatus(ref suppressDefaultLog, exception, pathFormat, path, status); - if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while sending the request to the server."); + bool suppressDefaultLogLocalVar = false; + OnErrorFindPetsByStatus(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, status); + if (!suppressDefaultLogLocalVar) + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling /// - /// - /// - /// - /// + /// + /// + /// + /// /// - partial void OnErrorFindPetsByStatus(ref bool suppressDefaultLog, Exception exception, string pathFormat, string path, List status); + partial void OnErrorFindPetsByStatus(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, List status); /// /// Finds Pets by status Multiple status values can be provided with comma separated strings @@ -1394,27 +1394,27 @@ namespace Org.OpenAPITools.Api /// /// Logs exceptions that occur while retrieving the server response /// - /// - /// - /// + /// + /// + /// /// - private void OnErrorFindPetsByTagsDefaultImplementation(Exception exception, string pathFormat, string path, List tags) + private void OnErrorFindPetsByTagsDefaultImplementation(Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, List tags) { - bool suppressDefaultLog = false; - OnErrorFindPetsByTags(ref suppressDefaultLog, exception, pathFormat, path, tags); - if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while sending the request to the server."); + bool suppressDefaultLogLocalVar = false; + OnErrorFindPetsByTags(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, tags); + if (!suppressDefaultLogLocalVar) + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling /// - /// - /// - /// - /// + /// + /// + /// + /// /// - partial void OnErrorFindPetsByTags(ref bool suppressDefaultLog, Exception exception, string pathFormat, string path, List tags); + partial void OnErrorFindPetsByTags(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, List tags); /// /// Finds Pets by tags Multiple tags can be provided with comma separated strings. Use tag1, tag2, tag3 for testing. @@ -1633,27 +1633,27 @@ namespace Org.OpenAPITools.Api /// /// Logs exceptions that occur while retrieving the server response /// - /// - /// - /// + /// + /// + /// /// - private void OnErrorGetPetByIdDefaultImplementation(Exception exception, string pathFormat, string path, long petId) + private void OnErrorGetPetByIdDefaultImplementation(Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, long petId) { - bool suppressDefaultLog = false; - OnErrorGetPetById(ref suppressDefaultLog, exception, pathFormat, path, petId); - if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while sending the request to the server."); + bool suppressDefaultLogLocalVar = false; + OnErrorGetPetById(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, petId); + if (!suppressDefaultLogLocalVar) + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling /// - /// - /// - /// - /// + /// + /// + /// + /// /// - partial void OnErrorGetPetById(ref bool suppressDefaultLog, Exception exception, string pathFormat, string path, long petId); + partial void OnErrorGetPetById(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, long petId); /// /// Find pet by ID Returns a single pet @@ -1878,27 +1878,27 @@ namespace Org.OpenAPITools.Api /// /// Logs exceptions that occur while retrieving the server response /// - /// - /// - /// + /// + /// + /// /// - private void OnErrorUpdatePetDefaultImplementation(Exception exception, string pathFormat, string path, Pet pet) + private void OnErrorUpdatePetDefaultImplementation(Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, Pet pet) { - bool suppressDefaultLog = false; - OnErrorUpdatePet(ref suppressDefaultLog, exception, pathFormat, path, pet); - if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while sending the request to the server."); + bool suppressDefaultLogLocalVar = false; + OnErrorUpdatePet(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, pet); + if (!suppressDefaultLogLocalVar) + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling /// - /// - /// - /// - /// + /// + /// + /// + /// /// - partial void OnErrorUpdatePet(ref bool suppressDefaultLog, Exception exception, string pathFormat, string path, Pet pet); + partial void OnErrorUpdatePet(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, Pet pet); /// /// Update an existing pet @@ -2109,31 +2109,31 @@ namespace Org.OpenAPITools.Api /// /// Logs exceptions that occur while retrieving the server response /// - /// - /// - /// + /// + /// + /// /// /// /// - private void OnErrorUpdatePetWithFormDefaultImplementation(Exception exception, string pathFormat, string path, long petId, Option name, Option status) + private void OnErrorUpdatePetWithFormDefaultImplementation(Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, long petId, Option name, Option status) { - bool suppressDefaultLog = false; - OnErrorUpdatePetWithForm(ref suppressDefaultLog, exception, pathFormat, path, petId, name, status); - if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while sending the request to the server."); + bool suppressDefaultLogLocalVar = false; + OnErrorUpdatePetWithForm(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, petId, name, status); + if (!suppressDefaultLogLocalVar) + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling /// - /// - /// - /// - /// + /// + /// + /// + /// /// /// /// - partial void OnErrorUpdatePetWithForm(ref bool suppressDefaultLog, Exception exception, string pathFormat, string path, long petId, Option name, Option status); + partial void OnErrorUpdatePetWithForm(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, long petId, Option name, Option status); /// /// Updates a pet in the store with form data @@ -2334,31 +2334,31 @@ namespace Org.OpenAPITools.Api /// /// Logs exceptions that occur while retrieving the server response /// - /// - /// - /// + /// + /// + /// /// /// /// - private void OnErrorUploadFileDefaultImplementation(Exception exception, string pathFormat, string path, long petId, Option additionalMetadata, Option file) + private void OnErrorUploadFileDefaultImplementation(Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, long petId, Option additionalMetadata, Option file) { - bool suppressDefaultLog = false; - OnErrorUploadFile(ref suppressDefaultLog, exception, pathFormat, path, petId, additionalMetadata, file); - if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while sending the request to the server."); + bool suppressDefaultLogLocalVar = false; + OnErrorUploadFile(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, petId, additionalMetadata, file); + if (!suppressDefaultLogLocalVar) + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling /// - /// - /// - /// - /// + /// + /// + /// + /// /// /// /// - partial void OnErrorUploadFile(ref bool suppressDefaultLog, Exception exception, string pathFormat, string path, long petId, Option additionalMetadata, Option file); + partial void OnErrorUploadFile(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, long petId, Option additionalMetadata, Option file); /// /// uploads an image @@ -2599,31 +2599,31 @@ namespace Org.OpenAPITools.Api /// /// Logs exceptions that occur while retrieving the server response /// - /// - /// - /// + /// + /// + /// /// /// /// - private void OnErrorUploadFileWithRequiredFileDefaultImplementation(Exception exception, string pathFormat, string path, long petId, System.IO.Stream requiredFile, Option additionalMetadata) + private void OnErrorUploadFileWithRequiredFileDefaultImplementation(Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, long petId, System.IO.Stream requiredFile, Option additionalMetadata) { - bool suppressDefaultLog = false; - OnErrorUploadFileWithRequiredFile(ref suppressDefaultLog, exception, pathFormat, path, petId, requiredFile, additionalMetadata); - if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while sending the request to the server."); + bool suppressDefaultLogLocalVar = false; + OnErrorUploadFileWithRequiredFile(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, petId, requiredFile, additionalMetadata); + if (!suppressDefaultLogLocalVar) + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling /// - /// - /// - /// - /// + /// + /// + /// + /// /// /// /// - partial void OnErrorUploadFileWithRequiredFile(ref bool suppressDefaultLog, Exception exception, string pathFormat, string path, long petId, System.IO.Stream requiredFile, Option additionalMetadata); + partial void OnErrorUploadFileWithRequiredFile(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, long petId, System.IO.Stream requiredFile, Option additionalMetadata); /// /// uploads an image (required) diff --git a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Api/StoreApi.cs b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Api/StoreApi.cs index f8d73a608a3..2cb0523731c 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Api/StoreApi.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Api/StoreApi.cs @@ -394,27 +394,27 @@ namespace Org.OpenAPITools.Api /// /// Logs exceptions that occur while retrieving the server response /// - /// - /// - /// + /// + /// + /// /// - private void OnErrorDeleteOrderDefaultImplementation(Exception exception, string pathFormat, string path, string orderId) + private void OnErrorDeleteOrderDefaultImplementation(Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, string orderId) { - bool suppressDefaultLog = false; - OnErrorDeleteOrder(ref suppressDefaultLog, exception, pathFormat, path, orderId); - if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while sending the request to the server."); + bool suppressDefaultLogLocalVar = false; + OnErrorDeleteOrder(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, orderId); + if (!suppressDefaultLogLocalVar) + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling /// - /// - /// - /// - /// + /// + /// + /// + /// /// - partial void OnErrorDeleteOrder(ref bool suppressDefaultLog, Exception exception, string pathFormat, string path, string orderId); + partial void OnErrorDeleteOrder(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, string orderId); /// /// Delete purchase order by ID For valid response try integer IDs with value < 1000. Anything above 1000 or nonintegers will generate API errors @@ -561,25 +561,25 @@ namespace Org.OpenAPITools.Api /// /// Logs exceptions that occur while retrieving the server response /// - /// - /// - /// - private void OnErrorGetInventoryDefaultImplementation(Exception exception, string pathFormat, string path) + /// + /// + /// + private void OnErrorGetInventoryDefaultImplementation(Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar) { - bool suppressDefaultLog = false; - OnErrorGetInventory(ref suppressDefaultLog, exception, pathFormat, path); - if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while sending the request to the server."); + bool suppressDefaultLogLocalVar = false; + OnErrorGetInventory(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar); + if (!suppressDefaultLogLocalVar) + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling /// - /// - /// - /// - /// - partial void OnErrorGetInventory(ref bool suppressDefaultLog, Exception exception, string pathFormat, string path); + /// + /// + /// + /// + partial void OnErrorGetInventory(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar); /// /// Returns pet inventories by status Returns a map of status codes to quantities @@ -767,27 +767,27 @@ namespace Org.OpenAPITools.Api /// /// Logs exceptions that occur while retrieving the server response /// - /// - /// - /// + /// + /// + /// /// - private void OnErrorGetOrderByIdDefaultImplementation(Exception exception, string pathFormat, string path, long orderId) + private void OnErrorGetOrderByIdDefaultImplementation(Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, long orderId) { - bool suppressDefaultLog = false; - OnErrorGetOrderById(ref suppressDefaultLog, exception, pathFormat, path, orderId); - if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while sending the request to the server."); + bool suppressDefaultLogLocalVar = false; + OnErrorGetOrderById(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, orderId); + if (!suppressDefaultLogLocalVar) + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling /// - /// - /// - /// - /// + /// + /// + /// + /// /// - partial void OnErrorGetOrderById(ref bool suppressDefaultLog, Exception exception, string pathFormat, string path, long orderId); + partial void OnErrorGetOrderById(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, long orderId); /// /// Find purchase order by ID For valid response try integer IDs with value <= 5 or > 10. Other values will generate exceptions @@ -995,27 +995,27 @@ namespace Org.OpenAPITools.Api /// /// Logs exceptions that occur while retrieving the server response /// - /// - /// - /// + /// + /// + /// /// - private void OnErrorPlaceOrderDefaultImplementation(Exception exception, string pathFormat, string path, Order order) + private void OnErrorPlaceOrderDefaultImplementation(Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, Order order) { - bool suppressDefaultLog = false; - OnErrorPlaceOrder(ref suppressDefaultLog, exception, pathFormat, path, order); - if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while sending the request to the server."); + bool suppressDefaultLogLocalVar = false; + OnErrorPlaceOrder(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, order); + if (!suppressDefaultLogLocalVar) + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling /// - /// - /// - /// - /// + /// + /// + /// + /// /// - partial void OnErrorPlaceOrder(ref bool suppressDefaultLog, Exception exception, string pathFormat, string path, Order order); + partial void OnErrorPlaceOrder(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, Order order); /// /// Place an order for a pet diff --git a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Api/UserApi.cs b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Api/UserApi.cs index 25824cb3dca..46a87aed2c0 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Api/UserApi.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Api/UserApi.cs @@ -636,27 +636,27 @@ namespace Org.OpenAPITools.Api /// /// Logs exceptions that occur while retrieving the server response /// - /// - /// - /// + /// + /// + /// /// - private void OnErrorCreateUserDefaultImplementation(Exception exception, string pathFormat, string path, User user) + private void OnErrorCreateUserDefaultImplementation(Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, User user) { - bool suppressDefaultLog = false; - OnErrorCreateUser(ref suppressDefaultLog, exception, pathFormat, path, user); - if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while sending the request to the server."); + bool suppressDefaultLogLocalVar = false; + OnErrorCreateUser(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, user); + if (!suppressDefaultLogLocalVar) + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling /// - /// - /// - /// - /// + /// + /// + /// + /// /// - partial void OnErrorCreateUser(ref bool suppressDefaultLog, Exception exception, string pathFormat, string path, User user); + partial void OnErrorCreateUser(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, User user); /// /// Create user This can only be done by the logged in user. @@ -825,27 +825,27 @@ namespace Org.OpenAPITools.Api /// /// Logs exceptions that occur while retrieving the server response /// - /// - /// - /// + /// + /// + /// /// - private void OnErrorCreateUsersWithArrayInputDefaultImplementation(Exception exception, string pathFormat, string path, List user) + private void OnErrorCreateUsersWithArrayInputDefaultImplementation(Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, List user) { - bool suppressDefaultLog = false; - OnErrorCreateUsersWithArrayInput(ref suppressDefaultLog, exception, pathFormat, path, user); - if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while sending the request to the server."); + bool suppressDefaultLogLocalVar = false; + OnErrorCreateUsersWithArrayInput(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, user); + if (!suppressDefaultLogLocalVar) + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling /// - /// - /// - /// - /// + /// + /// + /// + /// /// - partial void OnErrorCreateUsersWithArrayInput(ref bool suppressDefaultLog, Exception exception, string pathFormat, string path, List user); + partial void OnErrorCreateUsersWithArrayInput(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, List user); /// /// Creates list of users with given input array @@ -1014,27 +1014,27 @@ namespace Org.OpenAPITools.Api /// /// Logs exceptions that occur while retrieving the server response /// - /// - /// - /// + /// + /// + /// /// - private void OnErrorCreateUsersWithListInputDefaultImplementation(Exception exception, string pathFormat, string path, List user) + private void OnErrorCreateUsersWithListInputDefaultImplementation(Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, List user) { - bool suppressDefaultLog = false; - OnErrorCreateUsersWithListInput(ref suppressDefaultLog, exception, pathFormat, path, user); - if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while sending the request to the server."); + bool suppressDefaultLogLocalVar = false; + OnErrorCreateUsersWithListInput(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, user); + if (!suppressDefaultLogLocalVar) + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling /// - /// - /// - /// - /// + /// + /// + /// + /// /// - partial void OnErrorCreateUsersWithListInput(ref bool suppressDefaultLog, Exception exception, string pathFormat, string path, List user); + partial void OnErrorCreateUsersWithListInput(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, List user); /// /// Creates list of users with given input array @@ -1203,27 +1203,27 @@ namespace Org.OpenAPITools.Api /// /// Logs exceptions that occur while retrieving the server response /// - /// - /// - /// + /// + /// + /// /// - private void OnErrorDeleteUserDefaultImplementation(Exception exception, string pathFormat, string path, string username) + private void OnErrorDeleteUserDefaultImplementation(Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, string username) { - bool suppressDefaultLog = false; - OnErrorDeleteUser(ref suppressDefaultLog, exception, pathFormat, path, username); - if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while sending the request to the server."); + bool suppressDefaultLogLocalVar = false; + OnErrorDeleteUser(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, username); + if (!suppressDefaultLogLocalVar) + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling /// - /// - /// - /// - /// + /// + /// + /// + /// /// - partial void OnErrorDeleteUser(ref bool suppressDefaultLog, Exception exception, string pathFormat, string path, string username); + partial void OnErrorDeleteUser(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, string username); /// /// Delete user This can only be done by the logged in user. @@ -1385,27 +1385,27 @@ namespace Org.OpenAPITools.Api /// /// Logs exceptions that occur while retrieving the server response /// - /// - /// - /// + /// + /// + /// /// - private void OnErrorGetUserByNameDefaultImplementation(Exception exception, string pathFormat, string path, string username) + private void OnErrorGetUserByNameDefaultImplementation(Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, string username) { - bool suppressDefaultLog = false; - OnErrorGetUserByName(ref suppressDefaultLog, exception, pathFormat, path, username); - if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while sending the request to the server."); + bool suppressDefaultLogLocalVar = false; + OnErrorGetUserByName(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, username); + if (!suppressDefaultLogLocalVar) + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling /// - /// - /// - /// - /// + /// + /// + /// + /// /// - partial void OnErrorGetUserByName(ref bool suppressDefaultLog, Exception exception, string pathFormat, string path, string username); + partial void OnErrorGetUserByName(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, string username); /// /// Get user by user name @@ -1665,29 +1665,29 @@ namespace Org.OpenAPITools.Api /// /// Logs exceptions that occur while retrieving the server response /// - /// - /// - /// + /// + /// + /// /// /// - private void OnErrorLoginUserDefaultImplementation(Exception exception, string pathFormat, string path, string password, string username) + private void OnErrorLoginUserDefaultImplementation(Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, string password, string username) { - bool suppressDefaultLog = false; - OnErrorLoginUser(ref suppressDefaultLog, exception, pathFormat, path, password, username); - if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while sending the request to the server."); + bool suppressDefaultLogLocalVar = false; + OnErrorLoginUser(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, password, username); + if (!suppressDefaultLogLocalVar) + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling /// - /// - /// - /// - /// + /// + /// + /// + /// /// /// - partial void OnErrorLoginUser(ref bool suppressDefaultLog, Exception exception, string pathFormat, string path, string password, string username); + partial void OnErrorLoginUser(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, string password, string username); /// /// Logs user into the system @@ -1884,25 +1884,25 @@ namespace Org.OpenAPITools.Api /// /// Logs exceptions that occur while retrieving the server response /// - /// - /// - /// - private void OnErrorLogoutUserDefaultImplementation(Exception exception, string pathFormat, string path) + /// + /// + /// + private void OnErrorLogoutUserDefaultImplementation(Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar) { - bool suppressDefaultLog = false; - OnErrorLogoutUser(ref suppressDefaultLog, exception, pathFormat, path); - if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while sending the request to the server."); + bool suppressDefaultLogLocalVar = false; + OnErrorLogoutUser(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar); + if (!suppressDefaultLogLocalVar) + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling /// - /// - /// - /// - /// - partial void OnErrorLogoutUser(ref bool suppressDefaultLog, Exception exception, string pathFormat, string path); + /// + /// + /// + /// + partial void OnErrorLogoutUser(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar); /// /// Logs out current logged in user session @@ -2057,29 +2057,29 @@ namespace Org.OpenAPITools.Api /// /// Logs exceptions that occur while retrieving the server response /// - /// - /// - /// + /// + /// + /// /// /// - private void OnErrorUpdateUserDefaultImplementation(Exception exception, string pathFormat, string path, User user, string username) + private void OnErrorUpdateUserDefaultImplementation(Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, User user, string username) { - bool suppressDefaultLog = false; - OnErrorUpdateUser(ref suppressDefaultLog, exception, pathFormat, path, user, username); - if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while sending the request to the server."); + bool suppressDefaultLogLocalVar = false; + OnErrorUpdateUser(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, user, username); + if (!suppressDefaultLogLocalVar) + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling /// - /// - /// - /// - /// + /// + /// + /// + /// /// /// - partial void OnErrorUpdateUser(ref bool suppressDefaultLog, Exception exception, string pathFormat, string path, User user, string username); + partial void OnErrorUpdateUser(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, User user, string username); /// /// Updated user This can only be done by the logged in user. diff --git a/samples/client/petstore/csharp/generichost/net4.7/UseDateTimeForDate/src/Org.OpenAPITools/Api/DefaultApi.cs b/samples/client/petstore/csharp/generichost/net4.7/UseDateTimeForDate/src/Org.OpenAPITools/Api/DefaultApi.cs index bf0983e3e33..1662385fe8f 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/UseDateTimeForDate/src/Org.OpenAPITools/Api/DefaultApi.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/UseDateTimeForDate/src/Org.OpenAPITools/Api/DefaultApi.cs @@ -155,25 +155,25 @@ namespace Org.OpenAPITools.Api /// /// Logs exceptions that occur while retrieving the server response /// - /// - /// - /// - private void OnErrorNowGetDefaultImplementation(Exception exception, string pathFormat, string path) + /// + /// + /// + private void OnErrorNowGetDefaultImplementation(Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar) { - bool suppressDefaultLog = false; - OnErrorNowGet(ref suppressDefaultLog, exception, pathFormat, path); - if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while sending the request to the server."); + bool suppressDefaultLogLocalVar = false; + OnErrorNowGet(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar); + if (!suppressDefaultLogLocalVar) + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling /// - /// - /// - /// - /// - partial void OnErrorNowGet(ref bool suppressDefaultLog, Exception exception, string pathFormat, string path); + /// + /// + /// + /// + partial void OnErrorNowGet(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar); /// /// diff --git a/samples/client/petstore/csharp/generichost/net4.8/AllOf/src/Org.OpenAPITools/Api/DefaultApi.cs b/samples/client/petstore/csharp/generichost/net4.8/AllOf/src/Org.OpenAPITools/Api/DefaultApi.cs index f65336b2c81..4e25fbff573 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/AllOf/src/Org.OpenAPITools/Api/DefaultApi.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/AllOf/src/Org.OpenAPITools/Api/DefaultApi.cs @@ -172,27 +172,27 @@ namespace Org.OpenAPITools.Api /// /// Logs exceptions that occur while retrieving the server response /// - /// - /// - /// + /// + /// + /// /// - private void OnErrorListDefaultImplementation(Exception exception, string pathFormat, string path, string personId) + private void OnErrorListDefaultImplementation(Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, string personId) { - bool suppressDefaultLog = false; - OnErrorList(ref suppressDefaultLog, exception, pathFormat, path, personId); - if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while sending the request to the server."); + bool suppressDefaultLogLocalVar = false; + OnErrorList(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, personId); + if (!suppressDefaultLogLocalVar) + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling /// - /// - /// - /// - /// + /// + /// + /// + /// /// - partial void OnErrorList(ref bool suppressDefaultLog, Exception exception, string pathFormat, string path, string personId); + partial void OnErrorList(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, string personId); /// /// diff --git a/samples/client/petstore/csharp/generichost/net4.8/AnyOf/src/Org.OpenAPITools/Api/DefaultApi.cs b/samples/client/petstore/csharp/generichost/net4.8/AnyOf/src/Org.OpenAPITools/Api/DefaultApi.cs index 9fb9257ced6..c2a2d862a62 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/AnyOf/src/Org.OpenAPITools/Api/DefaultApi.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/AnyOf/src/Org.OpenAPITools/Api/DefaultApi.cs @@ -155,25 +155,25 @@ namespace Org.OpenAPITools.Api /// /// Logs exceptions that occur while retrieving the server response /// - /// - /// - /// - private void OnErrorRootGetDefaultImplementation(Exception exception, string pathFormat, string path) + /// + /// + /// + private void OnErrorRootGetDefaultImplementation(Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar) { - bool suppressDefaultLog = false; - OnErrorRootGet(ref suppressDefaultLog, exception, pathFormat, path); - if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while sending the request to the server."); + bool suppressDefaultLogLocalVar = false; + OnErrorRootGet(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar); + if (!suppressDefaultLogLocalVar) + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling /// - /// - /// - /// - /// - partial void OnErrorRootGet(ref bool suppressDefaultLog, Exception exception, string pathFormat, string path); + /// + /// + /// + /// + partial void OnErrorRootGet(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar); /// /// diff --git a/samples/client/petstore/csharp/generichost/net4.8/AnyOfNoCompare/src/Org.OpenAPITools/Api/DefaultApi.cs b/samples/client/petstore/csharp/generichost/net4.8/AnyOfNoCompare/src/Org.OpenAPITools/Api/DefaultApi.cs index 9fb9257ced6..c2a2d862a62 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/AnyOfNoCompare/src/Org.OpenAPITools/Api/DefaultApi.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/AnyOfNoCompare/src/Org.OpenAPITools/Api/DefaultApi.cs @@ -155,25 +155,25 @@ namespace Org.OpenAPITools.Api /// /// Logs exceptions that occur while retrieving the server response /// - /// - /// - /// - private void OnErrorRootGetDefaultImplementation(Exception exception, string pathFormat, string path) + /// + /// + /// + private void OnErrorRootGetDefaultImplementation(Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar) { - bool suppressDefaultLog = false; - OnErrorRootGet(ref suppressDefaultLog, exception, pathFormat, path); - if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while sending the request to the server."); + bool suppressDefaultLogLocalVar = false; + OnErrorRootGet(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar); + if (!suppressDefaultLogLocalVar) + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling /// - /// - /// - /// - /// - partial void OnErrorRootGet(ref bool suppressDefaultLog, Exception exception, string pathFormat, string path); + /// + /// + /// + /// + partial void OnErrorRootGet(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar); /// /// diff --git a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Api/AnotherFakeApi.cs b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Api/AnotherFakeApi.cs index eef2a62a180..1fd1ffef4fe 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Api/AnotherFakeApi.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Api/AnotherFakeApi.cs @@ -207,27 +207,27 @@ namespace Org.OpenAPITools.Api /// /// Logs exceptions that occur while retrieving the server response /// - /// - /// - /// + /// + /// + /// /// - private void OnErrorCall123TestSpecialTagsDefaultImplementation(Exception exception, string pathFormat, string path, ModelClient modelClient) + private void OnErrorCall123TestSpecialTagsDefaultImplementation(Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, ModelClient modelClient) { - bool suppressDefaultLog = false; - OnErrorCall123TestSpecialTags(ref suppressDefaultLog, exception, pathFormat, path, modelClient); - if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while sending the request to the server."); + bool suppressDefaultLogLocalVar = false; + OnErrorCall123TestSpecialTags(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, modelClient); + if (!suppressDefaultLogLocalVar) + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling /// - /// - /// - /// - /// + /// + /// + /// + /// /// - partial void OnErrorCall123TestSpecialTags(ref bool suppressDefaultLog, Exception exception, string pathFormat, string path, ModelClient modelClient); + partial void OnErrorCall123TestSpecialTags(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, ModelClient modelClient); /// /// To test special tags To test special tags and operation ID starting with number diff --git a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Api/DefaultApi.cs b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Api/DefaultApi.cs index 5151d6053e5..879c3ecdb9a 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Api/DefaultApi.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Api/DefaultApi.cs @@ -404,25 +404,25 @@ namespace Org.OpenAPITools.Api /// /// Logs exceptions that occur while retrieving the server response /// - /// - /// - /// - private void OnErrorFooGetDefaultImplementation(Exception exception, string pathFormat, string path) + /// + /// + /// + private void OnErrorFooGetDefaultImplementation(Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar) { - bool suppressDefaultLog = false; - OnErrorFooGet(ref suppressDefaultLog, exception, pathFormat, path); - if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while sending the request to the server."); + bool suppressDefaultLogLocalVar = false; + OnErrorFooGet(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar); + if (!suppressDefaultLogLocalVar) + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling /// - /// - /// - /// - /// - partial void OnErrorFooGet(ref bool suppressDefaultLog, Exception exception, string pathFormat, string path); + /// + /// + /// + /// + partial void OnErrorFooGet(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar); /// /// @@ -612,27 +612,27 @@ namespace Org.OpenAPITools.Api /// /// Logs exceptions that occur while retrieving the server response /// - /// - /// - /// + /// + /// + /// /// - private void OnErrorGetCountryDefaultImplementation(Exception exception, string pathFormat, string path, string country) + private void OnErrorGetCountryDefaultImplementation(Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, string country) { - bool suppressDefaultLog = false; - OnErrorGetCountry(ref suppressDefaultLog, exception, pathFormat, path, country); - if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while sending the request to the server."); + bool suppressDefaultLogLocalVar = false; + OnErrorGetCountry(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, country); + if (!suppressDefaultLogLocalVar) + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling /// - /// - /// - /// - /// + /// + /// + /// + /// /// - partial void OnErrorGetCountry(ref bool suppressDefaultLog, Exception exception, string pathFormat, string path, string country); + partial void OnErrorGetCountry(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, string country); /// /// @@ -792,25 +792,25 @@ namespace Org.OpenAPITools.Api /// /// Logs exceptions that occur while retrieving the server response /// - /// - /// - /// - private void OnErrorHelloDefaultImplementation(Exception exception, string pathFormat, string path) + /// + /// + /// + private void OnErrorHelloDefaultImplementation(Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar) { - bool suppressDefaultLog = false; - OnErrorHello(ref suppressDefaultLog, exception, pathFormat, path); - if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while sending the request to the server."); + bool suppressDefaultLogLocalVar = false; + OnErrorHello(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar); + if (!suppressDefaultLogLocalVar) + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling /// - /// - /// - /// - /// - partial void OnErrorHello(ref bool suppressDefaultLog, Exception exception, string pathFormat, string path); + /// + /// + /// + /// + partial void OnErrorHello(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar); /// /// Hello Hello @@ -985,25 +985,25 @@ namespace Org.OpenAPITools.Api /// /// Logs exceptions that occur while retrieving the server response /// - /// - /// - /// - private void OnErrorRolesReportGetDefaultImplementation(Exception exception, string pathFormat, string path) + /// + /// + /// + private void OnErrorRolesReportGetDefaultImplementation(Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar) { - bool suppressDefaultLog = false; - OnErrorRolesReportGet(ref suppressDefaultLog, exception, pathFormat, path); - if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while sending the request to the server."); + bool suppressDefaultLogLocalVar = false; + OnErrorRolesReportGet(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar); + if (!suppressDefaultLogLocalVar) + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling /// - /// - /// - /// - /// - partial void OnErrorRolesReportGet(ref bool suppressDefaultLog, Exception exception, string pathFormat, string path); + /// + /// + /// + /// + partial void OnErrorRolesReportGet(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar); /// /// @@ -1178,25 +1178,25 @@ namespace Org.OpenAPITools.Api /// /// Logs exceptions that occur while retrieving the server response /// - /// - /// - /// - private void OnErrorTestDefaultImplementation(Exception exception, string pathFormat, string path) + /// + /// + /// + private void OnErrorTestDefaultImplementation(Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar) { - bool suppressDefaultLog = false; - OnErrorTest(ref suppressDefaultLog, exception, pathFormat, path); - if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while sending the request to the server."); + bool suppressDefaultLogLocalVar = false; + OnErrorTest(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar); + if (!suppressDefaultLogLocalVar) + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling /// - /// - /// - /// - /// - partial void OnErrorTest(ref bool suppressDefaultLog, Exception exception, string pathFormat, string path); + /// + /// + /// + /// + partial void OnErrorTest(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar); /// /// Retrieve an existing Notificationtest's Elements diff --git a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Api/FakeApi.cs b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Api/FakeApi.cs index 89f28095bda..38f93620766 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Api/FakeApi.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Api/FakeApi.cs @@ -1313,25 +1313,25 @@ namespace Org.OpenAPITools.Api /// /// Logs exceptions that occur while retrieving the server response /// - /// - /// - /// - private void OnErrorFakeHealthGetDefaultImplementation(Exception exception, string pathFormat, string path) + /// + /// + /// + private void OnErrorFakeHealthGetDefaultImplementation(Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar) { - bool suppressDefaultLog = false; - OnErrorFakeHealthGet(ref suppressDefaultLog, exception, pathFormat, path); - if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while sending the request to the server."); + bool suppressDefaultLogLocalVar = false; + OnErrorFakeHealthGet(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar); + if (!suppressDefaultLogLocalVar) + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling /// - /// - /// - /// - /// - partial void OnErrorFakeHealthGet(ref bool suppressDefaultLog, Exception exception, string pathFormat, string path); + /// + /// + /// + /// + partial void OnErrorFakeHealthGet(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar); /// /// Health check endpoint @@ -1510,27 +1510,27 @@ namespace Org.OpenAPITools.Api /// /// Logs exceptions that occur while retrieving the server response /// - /// - /// - /// + /// + /// + /// /// - private void OnErrorFakeOuterBooleanSerializeDefaultImplementation(Exception exception, string pathFormat, string path, Option body) + private void OnErrorFakeOuterBooleanSerializeDefaultImplementation(Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, Option body) { - bool suppressDefaultLog = false; - OnErrorFakeOuterBooleanSerialize(ref suppressDefaultLog, exception, pathFormat, path, body); - if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while sending the request to the server."); + bool suppressDefaultLogLocalVar = false; + OnErrorFakeOuterBooleanSerialize(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, body); + if (!suppressDefaultLogLocalVar) + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling /// - /// - /// - /// - /// + /// + /// + /// + /// /// - partial void OnErrorFakeOuterBooleanSerialize(ref bool suppressDefaultLog, Exception exception, string pathFormat, string path, Option body); + partial void OnErrorFakeOuterBooleanSerialize(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, Option body); /// /// Test serialization of outer boolean types @@ -1738,27 +1738,27 @@ namespace Org.OpenAPITools.Api /// /// Logs exceptions that occur while retrieving the server response /// - /// - /// - /// + /// + /// + /// /// - private void OnErrorFakeOuterCompositeSerializeDefaultImplementation(Exception exception, string pathFormat, string path, Option outerComposite) + private void OnErrorFakeOuterCompositeSerializeDefaultImplementation(Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, Option outerComposite) { - bool suppressDefaultLog = false; - OnErrorFakeOuterCompositeSerialize(ref suppressDefaultLog, exception, pathFormat, path, outerComposite); - if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while sending the request to the server."); + bool suppressDefaultLogLocalVar = false; + OnErrorFakeOuterCompositeSerialize(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, outerComposite); + if (!suppressDefaultLogLocalVar) + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling /// - /// - /// - /// - /// + /// + /// + /// + /// /// - partial void OnErrorFakeOuterCompositeSerialize(ref bool suppressDefaultLog, Exception exception, string pathFormat, string path, Option outerComposite); + partial void OnErrorFakeOuterCompositeSerialize(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, Option outerComposite); /// /// Test serialization of object with outer number type @@ -1957,27 +1957,27 @@ namespace Org.OpenAPITools.Api /// /// Logs exceptions that occur while retrieving the server response /// - /// - /// - /// + /// + /// + /// /// - private void OnErrorFakeOuterNumberSerializeDefaultImplementation(Exception exception, string pathFormat, string path, Option body) + private void OnErrorFakeOuterNumberSerializeDefaultImplementation(Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, Option body) { - bool suppressDefaultLog = false; - OnErrorFakeOuterNumberSerialize(ref suppressDefaultLog, exception, pathFormat, path, body); - if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while sending the request to the server."); + bool suppressDefaultLogLocalVar = false; + OnErrorFakeOuterNumberSerialize(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, body); + if (!suppressDefaultLogLocalVar) + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling /// - /// - /// - /// - /// + /// + /// + /// + /// /// - partial void OnErrorFakeOuterNumberSerialize(ref bool suppressDefaultLog, Exception exception, string pathFormat, string path, Option body); + partial void OnErrorFakeOuterNumberSerialize(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, Option body); /// /// Test serialization of outer number types @@ -2187,29 +2187,29 @@ namespace Org.OpenAPITools.Api /// /// Logs exceptions that occur while retrieving the server response /// - /// - /// - /// + /// + /// + /// /// /// - private void OnErrorFakeOuterStringSerializeDefaultImplementation(Exception exception, string pathFormat, string path, Guid requiredStringUuid, Option body) + private void OnErrorFakeOuterStringSerializeDefaultImplementation(Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, Guid requiredStringUuid, Option body) { - bool suppressDefaultLog = false; - OnErrorFakeOuterStringSerialize(ref suppressDefaultLog, exception, pathFormat, path, requiredStringUuid, body); - if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while sending the request to the server."); + bool suppressDefaultLogLocalVar = false; + OnErrorFakeOuterStringSerialize(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, requiredStringUuid, body); + if (!suppressDefaultLogLocalVar) + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling /// - /// - /// - /// - /// + /// + /// + /// + /// /// /// - partial void OnErrorFakeOuterStringSerialize(ref bool suppressDefaultLog, Exception exception, string pathFormat, string path, Guid requiredStringUuid, Option body); + partial void OnErrorFakeOuterStringSerialize(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, Guid requiredStringUuid, Option body); /// /// Test serialization of outer string types @@ -2412,25 +2412,25 @@ namespace Org.OpenAPITools.Api /// /// Logs exceptions that occur while retrieving the server response /// - /// - /// - /// - private void OnErrorGetArrayOfEnumsDefaultImplementation(Exception exception, string pathFormat, string path) + /// + /// + /// + private void OnErrorGetArrayOfEnumsDefaultImplementation(Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar) { - bool suppressDefaultLog = false; - OnErrorGetArrayOfEnums(ref suppressDefaultLog, exception, pathFormat, path); - if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while sending the request to the server."); + bool suppressDefaultLogLocalVar = false; + OnErrorGetArrayOfEnums(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar); + if (!suppressDefaultLogLocalVar) + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling /// - /// - /// - /// - /// - partial void OnErrorGetArrayOfEnums(ref bool suppressDefaultLog, Exception exception, string pathFormat, string path); + /// + /// + /// + /// + partial void OnErrorGetArrayOfEnums(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar); /// /// Array of Enums @@ -2605,25 +2605,25 @@ namespace Org.OpenAPITools.Api /// /// Logs exceptions that occur while retrieving the server response /// - /// - /// - /// - private void OnErrorGetMixedAnyOfDefaultImplementation(Exception exception, string pathFormat, string path) + /// + /// + /// + private void OnErrorGetMixedAnyOfDefaultImplementation(Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar) { - bool suppressDefaultLog = false; - OnErrorGetMixedAnyOf(ref suppressDefaultLog, exception, pathFormat, path); - if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while sending the request to the server."); + bool suppressDefaultLogLocalVar = false; + OnErrorGetMixedAnyOf(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar); + if (!suppressDefaultLogLocalVar) + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling /// - /// - /// - /// - /// - partial void OnErrorGetMixedAnyOf(ref bool suppressDefaultLog, Exception exception, string pathFormat, string path); + /// + /// + /// + /// + partial void OnErrorGetMixedAnyOf(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar); /// /// Test mixed type anyOf deserialization @@ -2798,25 +2798,25 @@ namespace Org.OpenAPITools.Api /// /// Logs exceptions that occur while retrieving the server response /// - /// - /// - /// - private void OnErrorGetMixedOneOfDefaultImplementation(Exception exception, string pathFormat, string path) + /// + /// + /// + private void OnErrorGetMixedOneOfDefaultImplementation(Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar) { - bool suppressDefaultLog = false; - OnErrorGetMixedOneOf(ref suppressDefaultLog, exception, pathFormat, path); - if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while sending the request to the server."); + bool suppressDefaultLogLocalVar = false; + OnErrorGetMixedOneOf(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar); + if (!suppressDefaultLogLocalVar) + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling /// - /// - /// - /// - /// - partial void OnErrorGetMixedOneOf(ref bool suppressDefaultLog, Exception exception, string pathFormat, string path); + /// + /// + /// + /// + partial void OnErrorGetMixedOneOf(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar); /// /// Test mixed type oneOf deserialization @@ -3006,27 +3006,27 @@ namespace Org.OpenAPITools.Api /// /// Logs exceptions that occur while retrieving the server response /// - /// - /// - /// + /// + /// + /// /// - private void OnErrorTestAdditionalPropertiesReferenceDefaultImplementation(Exception exception, string pathFormat, string path, Dictionary requestBody) + private void OnErrorTestAdditionalPropertiesReferenceDefaultImplementation(Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, Dictionary requestBody) { - bool suppressDefaultLog = false; - OnErrorTestAdditionalPropertiesReference(ref suppressDefaultLog, exception, pathFormat, path, requestBody); - if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while sending the request to the server."); + bool suppressDefaultLogLocalVar = false; + OnErrorTestAdditionalPropertiesReference(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, requestBody); + if (!suppressDefaultLogLocalVar) + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling /// - /// - /// - /// - /// + /// + /// + /// + /// /// - partial void OnErrorTestAdditionalPropertiesReference(ref bool suppressDefaultLog, Exception exception, string pathFormat, string path, Dictionary requestBody); + partial void OnErrorTestAdditionalPropertiesReference(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, Dictionary requestBody); /// /// test referenced additionalProperties @@ -3195,27 +3195,27 @@ namespace Org.OpenAPITools.Api /// /// Logs exceptions that occur while retrieving the server response /// - /// - /// - /// + /// + /// + /// /// - private void OnErrorTestBodyWithFileSchemaDefaultImplementation(Exception exception, string pathFormat, string path, FileSchemaTestClass fileSchemaTestClass) + private void OnErrorTestBodyWithFileSchemaDefaultImplementation(Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, FileSchemaTestClass fileSchemaTestClass) { - bool suppressDefaultLog = false; - OnErrorTestBodyWithFileSchema(ref suppressDefaultLog, exception, pathFormat, path, fileSchemaTestClass); - if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while sending the request to the server."); + bool suppressDefaultLogLocalVar = false; + OnErrorTestBodyWithFileSchema(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, fileSchemaTestClass); + if (!suppressDefaultLogLocalVar) + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling /// - /// - /// - /// - /// + /// + /// + /// + /// /// - partial void OnErrorTestBodyWithFileSchema(ref bool suppressDefaultLog, Exception exception, string pathFormat, string path, FileSchemaTestClass fileSchemaTestClass); + partial void OnErrorTestBodyWithFileSchema(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, FileSchemaTestClass fileSchemaTestClass); /// /// For this test, the body for this request much reference a schema named `File`. @@ -3390,29 +3390,29 @@ namespace Org.OpenAPITools.Api /// /// Logs exceptions that occur while retrieving the server response /// - /// - /// - /// + /// + /// + /// /// /// - private void OnErrorTestBodyWithQueryParamsDefaultImplementation(Exception exception, string pathFormat, string path, string query, User user) + private void OnErrorTestBodyWithQueryParamsDefaultImplementation(Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, string query, User user) { - bool suppressDefaultLog = false; - OnErrorTestBodyWithQueryParams(ref suppressDefaultLog, exception, pathFormat, path, query, user); - if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while sending the request to the server."); + bool suppressDefaultLogLocalVar = false; + OnErrorTestBodyWithQueryParams(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, query, user); + if (!suppressDefaultLogLocalVar) + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling /// - /// - /// - /// - /// + /// + /// + /// + /// /// /// - partial void OnErrorTestBodyWithQueryParams(ref bool suppressDefaultLog, Exception exception, string pathFormat, string path, string query, User user); + partial void OnErrorTestBodyWithQueryParams(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, string query, User user); /// /// @@ -3589,27 +3589,27 @@ namespace Org.OpenAPITools.Api /// /// Logs exceptions that occur while retrieving the server response /// - /// - /// - /// + /// + /// + /// /// - private void OnErrorTestClientModelDefaultImplementation(Exception exception, string pathFormat, string path, ModelClient modelClient) + private void OnErrorTestClientModelDefaultImplementation(Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, ModelClient modelClient) { - bool suppressDefaultLog = false; - OnErrorTestClientModel(ref suppressDefaultLog, exception, pathFormat, path, modelClient); - if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while sending the request to the server."); + bool suppressDefaultLogLocalVar = false; + OnErrorTestClientModel(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, modelClient); + if (!suppressDefaultLogLocalVar) + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling /// - /// - /// - /// - /// + /// + /// + /// + /// /// - partial void OnErrorTestClientModel(ref bool suppressDefaultLog, Exception exception, string pathFormat, string path, ModelClient modelClient); + partial void OnErrorTestClientModel(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, ModelClient modelClient); /// /// To test \"client\" model To test \"client\" model @@ -3864,9 +3864,9 @@ namespace Org.OpenAPITools.Api /// /// Logs exceptions that occur while retrieving the server response /// - /// - /// - /// + /// + /// + /// /// /// /// @@ -3881,21 +3881,21 @@ namespace Org.OpenAPITools.Api /// /// /// - private void OnErrorTestEndpointParametersDefaultImplementation(Exception exception, string pathFormat, string path, decimal number, string patternWithoutDelimiter, byte[] varByte, double varDouble, Option binary, Option callback, Option date, Option dateTime, Option int32, Option int64, Option integer, Option password, Option varFloat, Option varString) + private void OnErrorTestEndpointParametersDefaultImplementation(Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, decimal number, string patternWithoutDelimiter, byte[] varByte, double varDouble, Option binary, Option callback, Option date, Option dateTime, Option int32, Option int64, Option integer, Option password, Option varFloat, Option varString) { - bool suppressDefaultLog = false; - OnErrorTestEndpointParameters(ref suppressDefaultLog, exception, pathFormat, path, number, patternWithoutDelimiter, varByte, varDouble, binary, callback, date, dateTime, int32, int64, integer, password, varFloat, varString); - if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while sending the request to the server."); + bool suppressDefaultLogLocalVar = false; + OnErrorTestEndpointParameters(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, number, patternWithoutDelimiter, varByte, varDouble, binary, callback, date, dateTime, int32, int64, integer, password, varFloat, varString); + if (!suppressDefaultLogLocalVar) + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling /// - /// - /// - /// - /// + /// + /// + /// + /// /// /// /// @@ -3910,7 +3910,7 @@ namespace Org.OpenAPITools.Api /// /// /// - partial void OnErrorTestEndpointParameters(ref bool suppressDefaultLog, Exception exception, string pathFormat, string path, decimal number, string patternWithoutDelimiter, byte[] varByte, double varDouble, Option binary, Option callback, Option date, Option dateTime, Option int32, Option int64, Option integer, Option password, Option varFloat, Option varString); + partial void OnErrorTestEndpointParameters(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, decimal number, string patternWithoutDelimiter, byte[] varByte, double varDouble, Option binary, Option callback, Option date, Option dateTime, Option int32, Option int64, Option integer, Option password, Option varFloat, Option varString); /// /// Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트 Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트 @@ -4186,9 +4186,9 @@ namespace Org.OpenAPITools.Api /// /// Logs exceptions that occur while retrieving the server response /// - /// - /// - /// + /// + /// + /// /// /// /// @@ -4197,21 +4197,21 @@ namespace Org.OpenAPITools.Api /// /// /// - private void OnErrorTestEnumParametersDefaultImplementation(Exception exception, string pathFormat, string path, Option enumFormString, Option> enumFormStringArray, Option enumHeaderString, Option> enumHeaderStringArray, Option enumQueryDouble, Option enumQueryInteger, Option enumQueryString, Option> enumQueryStringArray) + private void OnErrorTestEnumParametersDefaultImplementation(Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, Option enumFormString, Option> enumFormStringArray, Option enumHeaderString, Option> enumHeaderStringArray, Option enumQueryDouble, Option enumQueryInteger, Option enumQueryString, Option> enumQueryStringArray) { - bool suppressDefaultLog = false; - OnErrorTestEnumParameters(ref suppressDefaultLog, exception, pathFormat, path, enumFormString, enumFormStringArray, enumHeaderString, enumHeaderStringArray, enumQueryDouble, enumQueryInteger, enumQueryString, enumQueryStringArray); - if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while sending the request to the server."); + bool suppressDefaultLogLocalVar = false; + OnErrorTestEnumParameters(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, enumFormString, enumFormStringArray, enumHeaderString, enumHeaderStringArray, enumQueryDouble, enumQueryInteger, enumQueryString, enumQueryStringArray); + if (!suppressDefaultLogLocalVar) + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling /// - /// - /// - /// - /// + /// + /// + /// + /// /// /// /// @@ -4220,7 +4220,7 @@ namespace Org.OpenAPITools.Api /// /// /// - partial void OnErrorTestEnumParameters(ref bool suppressDefaultLog, Exception exception, string pathFormat, string path, Option enumFormString, Option> enumFormStringArray, Option enumHeaderString, Option> enumHeaderStringArray, Option enumQueryDouble, Option enumQueryInteger, Option enumQueryString, Option> enumQueryStringArray); + partial void OnErrorTestEnumParameters(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, Option enumFormString, Option> enumFormStringArray, Option enumHeaderString, Option> enumHeaderStringArray, Option enumQueryDouble, Option enumQueryInteger, Option enumQueryString, Option> enumQueryStringArray); /// /// To test enum parameters To test enum parameters @@ -4438,37 +4438,37 @@ namespace Org.OpenAPITools.Api /// /// Logs exceptions that occur while retrieving the server response /// - /// - /// - /// + /// + /// + /// /// /// /// /// /// /// - private void OnErrorTestGroupParametersDefaultImplementation(Exception exception, string pathFormat, string path, bool requiredBooleanGroup, long requiredInt64Group, int requiredStringGroup, Option booleanGroup, Option int64Group, Option stringGroup) + private void OnErrorTestGroupParametersDefaultImplementation(Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, bool requiredBooleanGroup, long requiredInt64Group, int requiredStringGroup, Option booleanGroup, Option int64Group, Option stringGroup) { - bool suppressDefaultLog = false; - OnErrorTestGroupParameters(ref suppressDefaultLog, exception, pathFormat, path, requiredBooleanGroup, requiredInt64Group, requiredStringGroup, booleanGroup, int64Group, stringGroup); - if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while sending the request to the server."); + bool suppressDefaultLogLocalVar = false; + OnErrorTestGroupParameters(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, requiredBooleanGroup, requiredInt64Group, requiredStringGroup, booleanGroup, int64Group, stringGroup); + if (!suppressDefaultLogLocalVar) + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling /// - /// - /// - /// - /// + /// + /// + /// + /// /// /// /// /// /// /// - partial void OnErrorTestGroupParameters(ref bool suppressDefaultLog, Exception exception, string pathFormat, string path, bool requiredBooleanGroup, long requiredInt64Group, int requiredStringGroup, Option booleanGroup, Option int64Group, Option stringGroup); + partial void OnErrorTestGroupParameters(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, bool requiredBooleanGroup, long requiredInt64Group, int requiredStringGroup, Option booleanGroup, Option int64Group, Option stringGroup); /// /// Fake endpoint to test group parameters (optional) Fake endpoint to test group parameters (optional) @@ -4660,27 +4660,27 @@ namespace Org.OpenAPITools.Api /// /// Logs exceptions that occur while retrieving the server response /// - /// - /// - /// + /// + /// + /// /// - private void OnErrorTestInlineAdditionalPropertiesDefaultImplementation(Exception exception, string pathFormat, string path, Dictionary requestBody) + private void OnErrorTestInlineAdditionalPropertiesDefaultImplementation(Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, Dictionary requestBody) { - bool suppressDefaultLog = false; - OnErrorTestInlineAdditionalProperties(ref suppressDefaultLog, exception, pathFormat, path, requestBody); - if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while sending the request to the server."); + bool suppressDefaultLogLocalVar = false; + OnErrorTestInlineAdditionalProperties(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, requestBody); + if (!suppressDefaultLogLocalVar) + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling /// - /// - /// - /// - /// + /// + /// + /// + /// /// - partial void OnErrorTestInlineAdditionalProperties(ref bool suppressDefaultLog, Exception exception, string pathFormat, string path, Dictionary requestBody); + partial void OnErrorTestInlineAdditionalProperties(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, Dictionary requestBody); /// /// test inline additionalProperties @@ -4849,27 +4849,27 @@ namespace Org.OpenAPITools.Api /// /// Logs exceptions that occur while retrieving the server response /// - /// - /// - /// + /// + /// + /// /// - private void OnErrorTestInlineFreeformAdditionalPropertiesDefaultImplementation(Exception exception, string pathFormat, string path, TestInlineFreeformAdditionalPropertiesRequest testInlineFreeformAdditionalPropertiesRequest) + private void OnErrorTestInlineFreeformAdditionalPropertiesDefaultImplementation(Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, TestInlineFreeformAdditionalPropertiesRequest testInlineFreeformAdditionalPropertiesRequest) { - bool suppressDefaultLog = false; - OnErrorTestInlineFreeformAdditionalProperties(ref suppressDefaultLog, exception, pathFormat, path, testInlineFreeformAdditionalPropertiesRequest); - if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while sending the request to the server."); + bool suppressDefaultLogLocalVar = false; + OnErrorTestInlineFreeformAdditionalProperties(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, testInlineFreeformAdditionalPropertiesRequest); + if (!suppressDefaultLogLocalVar) + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling /// - /// - /// - /// - /// + /// + /// + /// + /// /// - partial void OnErrorTestInlineFreeformAdditionalProperties(ref bool suppressDefaultLog, Exception exception, string pathFormat, string path, TestInlineFreeformAdditionalPropertiesRequest testInlineFreeformAdditionalPropertiesRequest); + partial void OnErrorTestInlineFreeformAdditionalProperties(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, TestInlineFreeformAdditionalPropertiesRequest testInlineFreeformAdditionalPropertiesRequest); /// /// test inline free-form additionalProperties @@ -5044,29 +5044,29 @@ namespace Org.OpenAPITools.Api /// /// Logs exceptions that occur while retrieving the server response /// - /// - /// - /// + /// + /// + /// /// /// - private void OnErrorTestJsonFormDataDefaultImplementation(Exception exception, string pathFormat, string path, string param, string param2) + private void OnErrorTestJsonFormDataDefaultImplementation(Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, string param, string param2) { - bool suppressDefaultLog = false; - OnErrorTestJsonFormData(ref suppressDefaultLog, exception, pathFormat, path, param, param2); - if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while sending the request to the server."); + bool suppressDefaultLogLocalVar = false; + OnErrorTestJsonFormData(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, param, param2); + if (!suppressDefaultLogLocalVar) + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling /// - /// - /// - /// - /// + /// + /// + /// + /// /// /// - partial void OnErrorTestJsonFormData(ref bool suppressDefaultLog, Exception exception, string pathFormat, string path, string param, string param2); + partial void OnErrorTestJsonFormData(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, string param, string param2); /// /// test json serialization of form data @@ -5285,9 +5285,9 @@ namespace Org.OpenAPITools.Api /// /// Logs exceptions that occur while retrieving the server response /// - /// - /// - /// + /// + /// + /// /// /// /// @@ -5297,21 +5297,21 @@ namespace Org.OpenAPITools.Api /// /// /// - private void OnErrorTestQueryParameterCollectionFormatDefaultImplementation(Exception exception, string pathFormat, string path, List context, List http, List ioutil, List pipe, string requiredNotNullable, List url, Option notRequiredNotNullable, Option notRequiredNullable, string requiredNullable) + private void OnErrorTestQueryParameterCollectionFormatDefaultImplementation(Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, List context, List http, List ioutil, List pipe, string requiredNotNullable, List url, Option notRequiredNotNullable, Option notRequiredNullable, string requiredNullable) { - bool suppressDefaultLog = false; - OnErrorTestQueryParameterCollectionFormat(ref suppressDefaultLog, exception, pathFormat, path, context, http, ioutil, pipe, requiredNotNullable, url, notRequiredNotNullable, notRequiredNullable, requiredNullable); - if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while sending the request to the server."); + bool suppressDefaultLogLocalVar = false; + OnErrorTestQueryParameterCollectionFormat(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, context, http, ioutil, pipe, requiredNotNullable, url, notRequiredNotNullable, notRequiredNullable, requiredNullable); + if (!suppressDefaultLogLocalVar) + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling /// - /// - /// - /// - /// + /// + /// + /// + /// /// /// /// @@ -5321,7 +5321,7 @@ namespace Org.OpenAPITools.Api /// /// /// - partial void OnErrorTestQueryParameterCollectionFormat(ref bool suppressDefaultLog, Exception exception, string pathFormat, string path, List context, List http, List ioutil, List pipe, string requiredNotNullable, List url, Option notRequiredNotNullable, Option notRequiredNullable, string requiredNullable); + partial void OnErrorTestQueryParameterCollectionFormat(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, List context, List http, List ioutil, List pipe, string requiredNotNullable, List url, Option notRequiredNotNullable, Option notRequiredNullable, string requiredNullable); /// /// To test the collection format in query parameters @@ -5510,27 +5510,27 @@ namespace Org.OpenAPITools.Api /// /// Logs exceptions that occur while retrieving the server response /// - /// - /// - /// + /// + /// + /// /// - private void OnErrorTestStringMapReferenceDefaultImplementation(Exception exception, string pathFormat, string path, Dictionary requestBody) + private void OnErrorTestStringMapReferenceDefaultImplementation(Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, Dictionary requestBody) { - bool suppressDefaultLog = false; - OnErrorTestStringMapReference(ref suppressDefaultLog, exception, pathFormat, path, requestBody); - if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while sending the request to the server."); + bool suppressDefaultLogLocalVar = false; + OnErrorTestStringMapReference(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, requestBody); + if (!suppressDefaultLogLocalVar) + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling /// - /// - /// - /// - /// + /// + /// + /// + /// /// - partial void OnErrorTestStringMapReference(ref bool suppressDefaultLog, Exception exception, string pathFormat, string path, Dictionary requestBody); + partial void OnErrorTestStringMapReference(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, Dictionary requestBody); /// /// test referenced string map diff --git a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Api/FakeClassnameTags123Api.cs b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Api/FakeClassnameTags123Api.cs index ff66cc2a209..010a227c8b2 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Api/FakeClassnameTags123Api.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Api/FakeClassnameTags123Api.cs @@ -207,27 +207,27 @@ namespace Org.OpenAPITools.Api /// /// Logs exceptions that occur while retrieving the server response /// - /// - /// - /// + /// + /// + /// /// - private void OnErrorTestClassnameDefaultImplementation(Exception exception, string pathFormat, string path, ModelClient modelClient) + private void OnErrorTestClassnameDefaultImplementation(Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, ModelClient modelClient) { - bool suppressDefaultLog = false; - OnErrorTestClassname(ref suppressDefaultLog, exception, pathFormat, path, modelClient); - if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while sending the request to the server."); + bool suppressDefaultLogLocalVar = false; + OnErrorTestClassname(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, modelClient); + if (!suppressDefaultLogLocalVar) + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling /// - /// - /// - /// - /// + /// + /// + /// + /// /// - partial void OnErrorTestClassname(ref bool suppressDefaultLog, Exception exception, string pathFormat, string path, ModelClient modelClient); + partial void OnErrorTestClassname(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, ModelClient modelClient); /// /// To test class name in snake case To test class name in snake case diff --git a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Api/PetApi.cs b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Api/PetApi.cs index d4a6816894f..6f1add61539 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Api/PetApi.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Api/PetApi.cs @@ -711,27 +711,27 @@ namespace Org.OpenAPITools.Api /// /// Logs exceptions that occur while retrieving the server response /// - /// - /// - /// + /// + /// + /// /// - private void OnErrorAddPetDefaultImplementation(Exception exception, string pathFormat, string path, Pet pet) + private void OnErrorAddPetDefaultImplementation(Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, Pet pet) { - bool suppressDefaultLog = false; - OnErrorAddPet(ref suppressDefaultLog, exception, pathFormat, path, pet); - if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while sending the request to the server."); + bool suppressDefaultLogLocalVar = false; + OnErrorAddPet(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, pet); + if (!suppressDefaultLogLocalVar) + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling /// - /// - /// - /// - /// + /// + /// + /// + /// /// - partial void OnErrorAddPet(ref bool suppressDefaultLog, Exception exception, string pathFormat, string path, Pet pet); + partial void OnErrorAddPet(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, Pet pet); /// /// Add a new pet to the store @@ -924,29 +924,29 @@ namespace Org.OpenAPITools.Api /// /// Logs exceptions that occur while retrieving the server response /// - /// - /// - /// + /// + /// + /// /// /// - private void OnErrorDeletePetDefaultImplementation(Exception exception, string pathFormat, string path, long petId, Option apiKey) + private void OnErrorDeletePetDefaultImplementation(Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, long petId, Option apiKey) { - bool suppressDefaultLog = false; - OnErrorDeletePet(ref suppressDefaultLog, exception, pathFormat, path, petId, apiKey); - if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while sending the request to the server."); + bool suppressDefaultLogLocalVar = false; + OnErrorDeletePet(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, petId, apiKey); + if (!suppressDefaultLogLocalVar) + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling /// - /// - /// - /// - /// + /// + /// + /// + /// /// /// - partial void OnErrorDeletePet(ref bool suppressDefaultLog, Exception exception, string pathFormat, string path, long petId, Option apiKey); + partial void OnErrorDeletePet(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, long petId, Option apiKey); /// /// Deletes a pet @@ -1118,27 +1118,27 @@ namespace Org.OpenAPITools.Api /// /// Logs exceptions that occur while retrieving the server response /// - /// - /// - /// + /// + /// + /// /// - private void OnErrorFindPetsByStatusDefaultImplementation(Exception exception, string pathFormat, string path, List status) + private void OnErrorFindPetsByStatusDefaultImplementation(Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, List status) { - bool suppressDefaultLog = false; - OnErrorFindPetsByStatus(ref suppressDefaultLog, exception, pathFormat, path, status); - if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while sending the request to the server."); + bool suppressDefaultLogLocalVar = false; + OnErrorFindPetsByStatus(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, status); + if (!suppressDefaultLogLocalVar) + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling /// - /// - /// - /// - /// + /// + /// + /// + /// /// - partial void OnErrorFindPetsByStatus(ref bool suppressDefaultLog, Exception exception, string pathFormat, string path, List status); + partial void OnErrorFindPetsByStatus(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, List status); /// /// Finds Pets by status Multiple status values can be provided with comma separated strings @@ -1394,27 +1394,27 @@ namespace Org.OpenAPITools.Api /// /// Logs exceptions that occur while retrieving the server response /// - /// - /// - /// + /// + /// + /// /// - private void OnErrorFindPetsByTagsDefaultImplementation(Exception exception, string pathFormat, string path, List tags) + private void OnErrorFindPetsByTagsDefaultImplementation(Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, List tags) { - bool suppressDefaultLog = false; - OnErrorFindPetsByTags(ref suppressDefaultLog, exception, pathFormat, path, tags); - if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while sending the request to the server."); + bool suppressDefaultLogLocalVar = false; + OnErrorFindPetsByTags(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, tags); + if (!suppressDefaultLogLocalVar) + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling /// - /// - /// - /// - /// + /// + /// + /// + /// /// - partial void OnErrorFindPetsByTags(ref bool suppressDefaultLog, Exception exception, string pathFormat, string path, List tags); + partial void OnErrorFindPetsByTags(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, List tags); /// /// Finds Pets by tags Multiple tags can be provided with comma separated strings. Use tag1, tag2, tag3 for testing. @@ -1633,27 +1633,27 @@ namespace Org.OpenAPITools.Api /// /// Logs exceptions that occur while retrieving the server response /// - /// - /// - /// + /// + /// + /// /// - private void OnErrorGetPetByIdDefaultImplementation(Exception exception, string pathFormat, string path, long petId) + private void OnErrorGetPetByIdDefaultImplementation(Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, long petId) { - bool suppressDefaultLog = false; - OnErrorGetPetById(ref suppressDefaultLog, exception, pathFormat, path, petId); - if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while sending the request to the server."); + bool suppressDefaultLogLocalVar = false; + OnErrorGetPetById(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, petId); + if (!suppressDefaultLogLocalVar) + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling /// - /// - /// - /// - /// + /// + /// + /// + /// /// - partial void OnErrorGetPetById(ref bool suppressDefaultLog, Exception exception, string pathFormat, string path, long petId); + partial void OnErrorGetPetById(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, long petId); /// /// Find pet by ID Returns a single pet @@ -1878,27 +1878,27 @@ namespace Org.OpenAPITools.Api /// /// Logs exceptions that occur while retrieving the server response /// - /// - /// - /// + /// + /// + /// /// - private void OnErrorUpdatePetDefaultImplementation(Exception exception, string pathFormat, string path, Pet pet) + private void OnErrorUpdatePetDefaultImplementation(Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, Pet pet) { - bool suppressDefaultLog = false; - OnErrorUpdatePet(ref suppressDefaultLog, exception, pathFormat, path, pet); - if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while sending the request to the server."); + bool suppressDefaultLogLocalVar = false; + OnErrorUpdatePet(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, pet); + if (!suppressDefaultLogLocalVar) + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling /// - /// - /// - /// - /// + /// + /// + /// + /// /// - partial void OnErrorUpdatePet(ref bool suppressDefaultLog, Exception exception, string pathFormat, string path, Pet pet); + partial void OnErrorUpdatePet(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, Pet pet); /// /// Update an existing pet @@ -2109,31 +2109,31 @@ namespace Org.OpenAPITools.Api /// /// Logs exceptions that occur while retrieving the server response /// - /// - /// - /// + /// + /// + /// /// /// /// - private void OnErrorUpdatePetWithFormDefaultImplementation(Exception exception, string pathFormat, string path, long petId, Option name, Option status) + private void OnErrorUpdatePetWithFormDefaultImplementation(Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, long petId, Option name, Option status) { - bool suppressDefaultLog = false; - OnErrorUpdatePetWithForm(ref suppressDefaultLog, exception, pathFormat, path, petId, name, status); - if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while sending the request to the server."); + bool suppressDefaultLogLocalVar = false; + OnErrorUpdatePetWithForm(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, petId, name, status); + if (!suppressDefaultLogLocalVar) + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling /// - /// - /// - /// - /// + /// + /// + /// + /// /// /// /// - partial void OnErrorUpdatePetWithForm(ref bool suppressDefaultLog, Exception exception, string pathFormat, string path, long petId, Option name, Option status); + partial void OnErrorUpdatePetWithForm(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, long petId, Option name, Option status); /// /// Updates a pet in the store with form data @@ -2334,31 +2334,31 @@ namespace Org.OpenAPITools.Api /// /// Logs exceptions that occur while retrieving the server response /// - /// - /// - /// + /// + /// + /// /// /// /// - private void OnErrorUploadFileDefaultImplementation(Exception exception, string pathFormat, string path, long petId, Option additionalMetadata, Option file) + private void OnErrorUploadFileDefaultImplementation(Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, long petId, Option additionalMetadata, Option file) { - bool suppressDefaultLog = false; - OnErrorUploadFile(ref suppressDefaultLog, exception, pathFormat, path, petId, additionalMetadata, file); - if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while sending the request to the server."); + bool suppressDefaultLogLocalVar = false; + OnErrorUploadFile(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, petId, additionalMetadata, file); + if (!suppressDefaultLogLocalVar) + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling /// - /// - /// - /// - /// + /// + /// + /// + /// /// /// /// - partial void OnErrorUploadFile(ref bool suppressDefaultLog, Exception exception, string pathFormat, string path, long petId, Option additionalMetadata, Option file); + partial void OnErrorUploadFile(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, long petId, Option additionalMetadata, Option file); /// /// uploads an image @@ -2599,31 +2599,31 @@ namespace Org.OpenAPITools.Api /// /// Logs exceptions that occur while retrieving the server response /// - /// - /// - /// + /// + /// + /// /// /// /// - private void OnErrorUploadFileWithRequiredFileDefaultImplementation(Exception exception, string pathFormat, string path, long petId, System.IO.Stream requiredFile, Option additionalMetadata) + private void OnErrorUploadFileWithRequiredFileDefaultImplementation(Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, long petId, System.IO.Stream requiredFile, Option additionalMetadata) { - bool suppressDefaultLog = false; - OnErrorUploadFileWithRequiredFile(ref suppressDefaultLog, exception, pathFormat, path, petId, requiredFile, additionalMetadata); - if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while sending the request to the server."); + bool suppressDefaultLogLocalVar = false; + OnErrorUploadFileWithRequiredFile(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, petId, requiredFile, additionalMetadata); + if (!suppressDefaultLogLocalVar) + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling /// - /// - /// - /// - /// + /// + /// + /// + /// /// /// /// - partial void OnErrorUploadFileWithRequiredFile(ref bool suppressDefaultLog, Exception exception, string pathFormat, string path, long petId, System.IO.Stream requiredFile, Option additionalMetadata); + partial void OnErrorUploadFileWithRequiredFile(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, long petId, System.IO.Stream requiredFile, Option additionalMetadata); /// /// uploads an image (required) diff --git a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Api/StoreApi.cs b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Api/StoreApi.cs index f8d73a608a3..2cb0523731c 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Api/StoreApi.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Api/StoreApi.cs @@ -394,27 +394,27 @@ namespace Org.OpenAPITools.Api /// /// Logs exceptions that occur while retrieving the server response /// - /// - /// - /// + /// + /// + /// /// - private void OnErrorDeleteOrderDefaultImplementation(Exception exception, string pathFormat, string path, string orderId) + private void OnErrorDeleteOrderDefaultImplementation(Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, string orderId) { - bool suppressDefaultLog = false; - OnErrorDeleteOrder(ref suppressDefaultLog, exception, pathFormat, path, orderId); - if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while sending the request to the server."); + bool suppressDefaultLogLocalVar = false; + OnErrorDeleteOrder(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, orderId); + if (!suppressDefaultLogLocalVar) + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling /// - /// - /// - /// - /// + /// + /// + /// + /// /// - partial void OnErrorDeleteOrder(ref bool suppressDefaultLog, Exception exception, string pathFormat, string path, string orderId); + partial void OnErrorDeleteOrder(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, string orderId); /// /// Delete purchase order by ID For valid response try integer IDs with value < 1000. Anything above 1000 or nonintegers will generate API errors @@ -561,25 +561,25 @@ namespace Org.OpenAPITools.Api /// /// Logs exceptions that occur while retrieving the server response /// - /// - /// - /// - private void OnErrorGetInventoryDefaultImplementation(Exception exception, string pathFormat, string path) + /// + /// + /// + private void OnErrorGetInventoryDefaultImplementation(Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar) { - bool suppressDefaultLog = false; - OnErrorGetInventory(ref suppressDefaultLog, exception, pathFormat, path); - if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while sending the request to the server."); + bool suppressDefaultLogLocalVar = false; + OnErrorGetInventory(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar); + if (!suppressDefaultLogLocalVar) + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling /// - /// - /// - /// - /// - partial void OnErrorGetInventory(ref bool suppressDefaultLog, Exception exception, string pathFormat, string path); + /// + /// + /// + /// + partial void OnErrorGetInventory(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar); /// /// Returns pet inventories by status Returns a map of status codes to quantities @@ -767,27 +767,27 @@ namespace Org.OpenAPITools.Api /// /// Logs exceptions that occur while retrieving the server response /// - /// - /// - /// + /// + /// + /// /// - private void OnErrorGetOrderByIdDefaultImplementation(Exception exception, string pathFormat, string path, long orderId) + private void OnErrorGetOrderByIdDefaultImplementation(Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, long orderId) { - bool suppressDefaultLog = false; - OnErrorGetOrderById(ref suppressDefaultLog, exception, pathFormat, path, orderId); - if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while sending the request to the server."); + bool suppressDefaultLogLocalVar = false; + OnErrorGetOrderById(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, orderId); + if (!suppressDefaultLogLocalVar) + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling /// - /// - /// - /// - /// + /// + /// + /// + /// /// - partial void OnErrorGetOrderById(ref bool suppressDefaultLog, Exception exception, string pathFormat, string path, long orderId); + partial void OnErrorGetOrderById(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, long orderId); /// /// Find purchase order by ID For valid response try integer IDs with value <= 5 or > 10. Other values will generate exceptions @@ -995,27 +995,27 @@ namespace Org.OpenAPITools.Api /// /// Logs exceptions that occur while retrieving the server response /// - /// - /// - /// + /// + /// + /// /// - private void OnErrorPlaceOrderDefaultImplementation(Exception exception, string pathFormat, string path, Order order) + private void OnErrorPlaceOrderDefaultImplementation(Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, Order order) { - bool suppressDefaultLog = false; - OnErrorPlaceOrder(ref suppressDefaultLog, exception, pathFormat, path, order); - if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while sending the request to the server."); + bool suppressDefaultLogLocalVar = false; + OnErrorPlaceOrder(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, order); + if (!suppressDefaultLogLocalVar) + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling /// - /// - /// - /// - /// + /// + /// + /// + /// /// - partial void OnErrorPlaceOrder(ref bool suppressDefaultLog, Exception exception, string pathFormat, string path, Order order); + partial void OnErrorPlaceOrder(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, Order order); /// /// Place an order for a pet diff --git a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Api/UserApi.cs b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Api/UserApi.cs index 25824cb3dca..46a87aed2c0 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Api/UserApi.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Api/UserApi.cs @@ -636,27 +636,27 @@ namespace Org.OpenAPITools.Api /// /// Logs exceptions that occur while retrieving the server response /// - /// - /// - /// + /// + /// + /// /// - private void OnErrorCreateUserDefaultImplementation(Exception exception, string pathFormat, string path, User user) + private void OnErrorCreateUserDefaultImplementation(Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, User user) { - bool suppressDefaultLog = false; - OnErrorCreateUser(ref suppressDefaultLog, exception, pathFormat, path, user); - if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while sending the request to the server."); + bool suppressDefaultLogLocalVar = false; + OnErrorCreateUser(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, user); + if (!suppressDefaultLogLocalVar) + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling /// - /// - /// - /// - /// + /// + /// + /// + /// /// - partial void OnErrorCreateUser(ref bool suppressDefaultLog, Exception exception, string pathFormat, string path, User user); + partial void OnErrorCreateUser(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, User user); /// /// Create user This can only be done by the logged in user. @@ -825,27 +825,27 @@ namespace Org.OpenAPITools.Api /// /// Logs exceptions that occur while retrieving the server response /// - /// - /// - /// + /// + /// + /// /// - private void OnErrorCreateUsersWithArrayInputDefaultImplementation(Exception exception, string pathFormat, string path, List user) + private void OnErrorCreateUsersWithArrayInputDefaultImplementation(Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, List user) { - bool suppressDefaultLog = false; - OnErrorCreateUsersWithArrayInput(ref suppressDefaultLog, exception, pathFormat, path, user); - if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while sending the request to the server."); + bool suppressDefaultLogLocalVar = false; + OnErrorCreateUsersWithArrayInput(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, user); + if (!suppressDefaultLogLocalVar) + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling /// - /// - /// - /// - /// + /// + /// + /// + /// /// - partial void OnErrorCreateUsersWithArrayInput(ref bool suppressDefaultLog, Exception exception, string pathFormat, string path, List user); + partial void OnErrorCreateUsersWithArrayInput(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, List user); /// /// Creates list of users with given input array @@ -1014,27 +1014,27 @@ namespace Org.OpenAPITools.Api /// /// Logs exceptions that occur while retrieving the server response /// - /// - /// - /// + /// + /// + /// /// - private void OnErrorCreateUsersWithListInputDefaultImplementation(Exception exception, string pathFormat, string path, List user) + private void OnErrorCreateUsersWithListInputDefaultImplementation(Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, List user) { - bool suppressDefaultLog = false; - OnErrorCreateUsersWithListInput(ref suppressDefaultLog, exception, pathFormat, path, user); - if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while sending the request to the server."); + bool suppressDefaultLogLocalVar = false; + OnErrorCreateUsersWithListInput(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, user); + if (!suppressDefaultLogLocalVar) + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling /// - /// - /// - /// - /// + /// + /// + /// + /// /// - partial void OnErrorCreateUsersWithListInput(ref bool suppressDefaultLog, Exception exception, string pathFormat, string path, List user); + partial void OnErrorCreateUsersWithListInput(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, List user); /// /// Creates list of users with given input array @@ -1203,27 +1203,27 @@ namespace Org.OpenAPITools.Api /// /// Logs exceptions that occur while retrieving the server response /// - /// - /// - /// + /// + /// + /// /// - private void OnErrorDeleteUserDefaultImplementation(Exception exception, string pathFormat, string path, string username) + private void OnErrorDeleteUserDefaultImplementation(Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, string username) { - bool suppressDefaultLog = false; - OnErrorDeleteUser(ref suppressDefaultLog, exception, pathFormat, path, username); - if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while sending the request to the server."); + bool suppressDefaultLogLocalVar = false; + OnErrorDeleteUser(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, username); + if (!suppressDefaultLogLocalVar) + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling /// - /// - /// - /// - /// + /// + /// + /// + /// /// - partial void OnErrorDeleteUser(ref bool suppressDefaultLog, Exception exception, string pathFormat, string path, string username); + partial void OnErrorDeleteUser(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, string username); /// /// Delete user This can only be done by the logged in user. @@ -1385,27 +1385,27 @@ namespace Org.OpenAPITools.Api /// /// Logs exceptions that occur while retrieving the server response /// - /// - /// - /// + /// + /// + /// /// - private void OnErrorGetUserByNameDefaultImplementation(Exception exception, string pathFormat, string path, string username) + private void OnErrorGetUserByNameDefaultImplementation(Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, string username) { - bool suppressDefaultLog = false; - OnErrorGetUserByName(ref suppressDefaultLog, exception, pathFormat, path, username); - if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while sending the request to the server."); + bool suppressDefaultLogLocalVar = false; + OnErrorGetUserByName(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, username); + if (!suppressDefaultLogLocalVar) + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling /// - /// - /// - /// - /// + /// + /// + /// + /// /// - partial void OnErrorGetUserByName(ref bool suppressDefaultLog, Exception exception, string pathFormat, string path, string username); + partial void OnErrorGetUserByName(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, string username); /// /// Get user by user name @@ -1665,29 +1665,29 @@ namespace Org.OpenAPITools.Api /// /// Logs exceptions that occur while retrieving the server response /// - /// - /// - /// + /// + /// + /// /// /// - private void OnErrorLoginUserDefaultImplementation(Exception exception, string pathFormat, string path, string password, string username) + private void OnErrorLoginUserDefaultImplementation(Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, string password, string username) { - bool suppressDefaultLog = false; - OnErrorLoginUser(ref suppressDefaultLog, exception, pathFormat, path, password, username); - if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while sending the request to the server."); + bool suppressDefaultLogLocalVar = false; + OnErrorLoginUser(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, password, username); + if (!suppressDefaultLogLocalVar) + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling /// - /// - /// - /// - /// + /// + /// + /// + /// /// /// - partial void OnErrorLoginUser(ref bool suppressDefaultLog, Exception exception, string pathFormat, string path, string password, string username); + partial void OnErrorLoginUser(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, string password, string username); /// /// Logs user into the system @@ -1884,25 +1884,25 @@ namespace Org.OpenAPITools.Api /// /// Logs exceptions that occur while retrieving the server response /// - /// - /// - /// - private void OnErrorLogoutUserDefaultImplementation(Exception exception, string pathFormat, string path) + /// + /// + /// + private void OnErrorLogoutUserDefaultImplementation(Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar) { - bool suppressDefaultLog = false; - OnErrorLogoutUser(ref suppressDefaultLog, exception, pathFormat, path); - if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while sending the request to the server."); + bool suppressDefaultLogLocalVar = false; + OnErrorLogoutUser(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar); + if (!suppressDefaultLogLocalVar) + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling /// - /// - /// - /// - /// - partial void OnErrorLogoutUser(ref bool suppressDefaultLog, Exception exception, string pathFormat, string path); + /// + /// + /// + /// + partial void OnErrorLogoutUser(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar); /// /// Logs out current logged in user session @@ -2057,29 +2057,29 @@ namespace Org.OpenAPITools.Api /// /// Logs exceptions that occur while retrieving the server response /// - /// - /// - /// + /// + /// + /// /// /// - private void OnErrorUpdateUserDefaultImplementation(Exception exception, string pathFormat, string path, User user, string username) + private void OnErrorUpdateUserDefaultImplementation(Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, User user, string username) { - bool suppressDefaultLog = false; - OnErrorUpdateUser(ref suppressDefaultLog, exception, pathFormat, path, user, username); - if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while sending the request to the server."); + bool suppressDefaultLogLocalVar = false; + OnErrorUpdateUser(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, user, username); + if (!suppressDefaultLogLocalVar) + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling /// - /// - /// - /// - /// + /// + /// + /// + /// /// /// - partial void OnErrorUpdateUser(ref bool suppressDefaultLog, Exception exception, string pathFormat, string path, User user, string username); + partial void OnErrorUpdateUser(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, User user, string username); /// /// Updated user This can only be done by the logged in user. diff --git a/samples/client/petstore/csharp/generichost/net4.8/OneOf/src/Org.OpenAPITools/Api/DefaultApi.cs b/samples/client/petstore/csharp/generichost/net4.8/OneOf/src/Org.OpenAPITools/Api/DefaultApi.cs index 9fb9257ced6..c2a2d862a62 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/OneOf/src/Org.OpenAPITools/Api/DefaultApi.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/OneOf/src/Org.OpenAPITools/Api/DefaultApi.cs @@ -155,25 +155,25 @@ namespace Org.OpenAPITools.Api /// /// Logs exceptions that occur while retrieving the server response /// - /// - /// - /// - private void OnErrorRootGetDefaultImplementation(Exception exception, string pathFormat, string path) + /// + /// + /// + private void OnErrorRootGetDefaultImplementation(Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar) { - bool suppressDefaultLog = false; - OnErrorRootGet(ref suppressDefaultLog, exception, pathFormat, path); - if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while sending the request to the server."); + bool suppressDefaultLogLocalVar = false; + OnErrorRootGet(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar); + if (!suppressDefaultLogLocalVar) + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling /// - /// - /// - /// - /// - partial void OnErrorRootGet(ref bool suppressDefaultLog, Exception exception, string pathFormat, string path); + /// + /// + /// + /// + partial void OnErrorRootGet(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar); /// /// diff --git a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Api/AnotherFakeApi.cs b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Api/AnotherFakeApi.cs index eef2a62a180..1fd1ffef4fe 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Api/AnotherFakeApi.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Api/AnotherFakeApi.cs @@ -207,27 +207,27 @@ namespace Org.OpenAPITools.Api /// /// Logs exceptions that occur while retrieving the server response /// - /// - /// - /// + /// + /// + /// /// - private void OnErrorCall123TestSpecialTagsDefaultImplementation(Exception exception, string pathFormat, string path, ModelClient modelClient) + private void OnErrorCall123TestSpecialTagsDefaultImplementation(Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, ModelClient modelClient) { - bool suppressDefaultLog = false; - OnErrorCall123TestSpecialTags(ref suppressDefaultLog, exception, pathFormat, path, modelClient); - if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while sending the request to the server."); + bool suppressDefaultLogLocalVar = false; + OnErrorCall123TestSpecialTags(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, modelClient); + if (!suppressDefaultLogLocalVar) + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling /// - /// - /// - /// - /// + /// + /// + /// + /// /// - partial void OnErrorCall123TestSpecialTags(ref bool suppressDefaultLog, Exception exception, string pathFormat, string path, ModelClient modelClient); + partial void OnErrorCall123TestSpecialTags(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, ModelClient modelClient); /// /// To test special tags To test special tags and operation ID starting with number diff --git a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Api/DefaultApi.cs b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Api/DefaultApi.cs index 5151d6053e5..879c3ecdb9a 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Api/DefaultApi.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Api/DefaultApi.cs @@ -404,25 +404,25 @@ namespace Org.OpenAPITools.Api /// /// Logs exceptions that occur while retrieving the server response /// - /// - /// - /// - private void OnErrorFooGetDefaultImplementation(Exception exception, string pathFormat, string path) + /// + /// + /// + private void OnErrorFooGetDefaultImplementation(Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar) { - bool suppressDefaultLog = false; - OnErrorFooGet(ref suppressDefaultLog, exception, pathFormat, path); - if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while sending the request to the server."); + bool suppressDefaultLogLocalVar = false; + OnErrorFooGet(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar); + if (!suppressDefaultLogLocalVar) + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling /// - /// - /// - /// - /// - partial void OnErrorFooGet(ref bool suppressDefaultLog, Exception exception, string pathFormat, string path); + /// + /// + /// + /// + partial void OnErrorFooGet(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar); /// /// @@ -612,27 +612,27 @@ namespace Org.OpenAPITools.Api /// /// Logs exceptions that occur while retrieving the server response /// - /// - /// - /// + /// + /// + /// /// - private void OnErrorGetCountryDefaultImplementation(Exception exception, string pathFormat, string path, string country) + private void OnErrorGetCountryDefaultImplementation(Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, string country) { - bool suppressDefaultLog = false; - OnErrorGetCountry(ref suppressDefaultLog, exception, pathFormat, path, country); - if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while sending the request to the server."); + bool suppressDefaultLogLocalVar = false; + OnErrorGetCountry(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, country); + if (!suppressDefaultLogLocalVar) + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling /// - /// - /// - /// - /// + /// + /// + /// + /// /// - partial void OnErrorGetCountry(ref bool suppressDefaultLog, Exception exception, string pathFormat, string path, string country); + partial void OnErrorGetCountry(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, string country); /// /// @@ -792,25 +792,25 @@ namespace Org.OpenAPITools.Api /// /// Logs exceptions that occur while retrieving the server response /// - /// - /// - /// - private void OnErrorHelloDefaultImplementation(Exception exception, string pathFormat, string path) + /// + /// + /// + private void OnErrorHelloDefaultImplementation(Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar) { - bool suppressDefaultLog = false; - OnErrorHello(ref suppressDefaultLog, exception, pathFormat, path); - if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while sending the request to the server."); + bool suppressDefaultLogLocalVar = false; + OnErrorHello(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar); + if (!suppressDefaultLogLocalVar) + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling /// - /// - /// - /// - /// - partial void OnErrorHello(ref bool suppressDefaultLog, Exception exception, string pathFormat, string path); + /// + /// + /// + /// + partial void OnErrorHello(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar); /// /// Hello Hello @@ -985,25 +985,25 @@ namespace Org.OpenAPITools.Api /// /// Logs exceptions that occur while retrieving the server response /// - /// - /// - /// - private void OnErrorRolesReportGetDefaultImplementation(Exception exception, string pathFormat, string path) + /// + /// + /// + private void OnErrorRolesReportGetDefaultImplementation(Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar) { - bool suppressDefaultLog = false; - OnErrorRolesReportGet(ref suppressDefaultLog, exception, pathFormat, path); - if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while sending the request to the server."); + bool suppressDefaultLogLocalVar = false; + OnErrorRolesReportGet(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar); + if (!suppressDefaultLogLocalVar) + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling /// - /// - /// - /// - /// - partial void OnErrorRolesReportGet(ref bool suppressDefaultLog, Exception exception, string pathFormat, string path); + /// + /// + /// + /// + partial void OnErrorRolesReportGet(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar); /// /// @@ -1178,25 +1178,25 @@ namespace Org.OpenAPITools.Api /// /// Logs exceptions that occur while retrieving the server response /// - /// - /// - /// - private void OnErrorTestDefaultImplementation(Exception exception, string pathFormat, string path) + /// + /// + /// + private void OnErrorTestDefaultImplementation(Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar) { - bool suppressDefaultLog = false; - OnErrorTest(ref suppressDefaultLog, exception, pathFormat, path); - if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while sending the request to the server."); + bool suppressDefaultLogLocalVar = false; + OnErrorTest(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar); + if (!suppressDefaultLogLocalVar) + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling /// - /// - /// - /// - /// - partial void OnErrorTest(ref bool suppressDefaultLog, Exception exception, string pathFormat, string path); + /// + /// + /// + /// + partial void OnErrorTest(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar); /// /// Retrieve an existing Notificationtest's Elements diff --git a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Api/FakeApi.cs b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Api/FakeApi.cs index 402f72e32af..b3b0cf5352f 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Api/FakeApi.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Api/FakeApi.cs @@ -1313,25 +1313,25 @@ namespace Org.OpenAPITools.Api /// /// Logs exceptions that occur while retrieving the server response /// - /// - /// - /// - private void OnErrorFakeHealthGetDefaultImplementation(Exception exception, string pathFormat, string path) + /// + /// + /// + private void OnErrorFakeHealthGetDefaultImplementation(Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar) { - bool suppressDefaultLog = false; - OnErrorFakeHealthGet(ref suppressDefaultLog, exception, pathFormat, path); - if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while sending the request to the server."); + bool suppressDefaultLogLocalVar = false; + OnErrorFakeHealthGet(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar); + if (!suppressDefaultLogLocalVar) + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling /// - /// - /// - /// - /// - partial void OnErrorFakeHealthGet(ref bool suppressDefaultLog, Exception exception, string pathFormat, string path); + /// + /// + /// + /// + partial void OnErrorFakeHealthGet(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar); /// /// Health check endpoint @@ -1510,27 +1510,27 @@ namespace Org.OpenAPITools.Api /// /// Logs exceptions that occur while retrieving the server response /// - /// - /// - /// + /// + /// + /// /// - private void OnErrorFakeOuterBooleanSerializeDefaultImplementation(Exception exception, string pathFormat, string path, Option body) + private void OnErrorFakeOuterBooleanSerializeDefaultImplementation(Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, Option body) { - bool suppressDefaultLog = false; - OnErrorFakeOuterBooleanSerialize(ref suppressDefaultLog, exception, pathFormat, path, body); - if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while sending the request to the server."); + bool suppressDefaultLogLocalVar = false; + OnErrorFakeOuterBooleanSerialize(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, body); + if (!suppressDefaultLogLocalVar) + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling /// - /// - /// - /// - /// + /// + /// + /// + /// /// - partial void OnErrorFakeOuterBooleanSerialize(ref bool suppressDefaultLog, Exception exception, string pathFormat, string path, Option body); + partial void OnErrorFakeOuterBooleanSerialize(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, Option body); /// /// Test serialization of outer boolean types @@ -1738,27 +1738,27 @@ namespace Org.OpenAPITools.Api /// /// Logs exceptions that occur while retrieving the server response /// - /// - /// - /// + /// + /// + /// /// - private void OnErrorFakeOuterCompositeSerializeDefaultImplementation(Exception exception, string pathFormat, string path, Option outerComposite) + private void OnErrorFakeOuterCompositeSerializeDefaultImplementation(Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, Option outerComposite) { - bool suppressDefaultLog = false; - OnErrorFakeOuterCompositeSerialize(ref suppressDefaultLog, exception, pathFormat, path, outerComposite); - if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while sending the request to the server."); + bool suppressDefaultLogLocalVar = false; + OnErrorFakeOuterCompositeSerialize(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, outerComposite); + if (!suppressDefaultLogLocalVar) + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling /// - /// - /// - /// - /// + /// + /// + /// + /// /// - partial void OnErrorFakeOuterCompositeSerialize(ref bool suppressDefaultLog, Exception exception, string pathFormat, string path, Option outerComposite); + partial void OnErrorFakeOuterCompositeSerialize(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, Option outerComposite); /// /// Test serialization of object with outer number type @@ -1957,27 +1957,27 @@ namespace Org.OpenAPITools.Api /// /// Logs exceptions that occur while retrieving the server response /// - /// - /// - /// + /// + /// + /// /// - private void OnErrorFakeOuterNumberSerializeDefaultImplementation(Exception exception, string pathFormat, string path, Option body) + private void OnErrorFakeOuterNumberSerializeDefaultImplementation(Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, Option body) { - bool suppressDefaultLog = false; - OnErrorFakeOuterNumberSerialize(ref suppressDefaultLog, exception, pathFormat, path, body); - if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while sending the request to the server."); + bool suppressDefaultLogLocalVar = false; + OnErrorFakeOuterNumberSerialize(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, body); + if (!suppressDefaultLogLocalVar) + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling /// - /// - /// - /// - /// + /// + /// + /// + /// /// - partial void OnErrorFakeOuterNumberSerialize(ref bool suppressDefaultLog, Exception exception, string pathFormat, string path, Option body); + partial void OnErrorFakeOuterNumberSerialize(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, Option body); /// /// Test serialization of outer number types @@ -2187,29 +2187,29 @@ namespace Org.OpenAPITools.Api /// /// Logs exceptions that occur while retrieving the server response /// - /// - /// - /// + /// + /// + /// /// /// - private void OnErrorFakeOuterStringSerializeDefaultImplementation(Exception exception, string pathFormat, string path, Guid requiredStringUuid, Option body) + private void OnErrorFakeOuterStringSerializeDefaultImplementation(Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, Guid requiredStringUuid, Option body) { - bool suppressDefaultLog = false; - OnErrorFakeOuterStringSerialize(ref suppressDefaultLog, exception, pathFormat, path, requiredStringUuid, body); - if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while sending the request to the server."); + bool suppressDefaultLogLocalVar = false; + OnErrorFakeOuterStringSerialize(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, requiredStringUuid, body); + if (!suppressDefaultLogLocalVar) + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling /// - /// - /// - /// - /// + /// + /// + /// + /// /// /// - partial void OnErrorFakeOuterStringSerialize(ref bool suppressDefaultLog, Exception exception, string pathFormat, string path, Guid requiredStringUuid, Option body); + partial void OnErrorFakeOuterStringSerialize(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, Guid requiredStringUuid, Option body); /// /// Test serialization of outer string types @@ -2412,25 +2412,25 @@ namespace Org.OpenAPITools.Api /// /// Logs exceptions that occur while retrieving the server response /// - /// - /// - /// - private void OnErrorGetArrayOfEnumsDefaultImplementation(Exception exception, string pathFormat, string path) + /// + /// + /// + private void OnErrorGetArrayOfEnumsDefaultImplementation(Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar) { - bool suppressDefaultLog = false; - OnErrorGetArrayOfEnums(ref suppressDefaultLog, exception, pathFormat, path); - if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while sending the request to the server."); + bool suppressDefaultLogLocalVar = false; + OnErrorGetArrayOfEnums(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar); + if (!suppressDefaultLogLocalVar) + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling /// - /// - /// - /// - /// - partial void OnErrorGetArrayOfEnums(ref bool suppressDefaultLog, Exception exception, string pathFormat, string path); + /// + /// + /// + /// + partial void OnErrorGetArrayOfEnums(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar); /// /// Array of Enums @@ -2605,25 +2605,25 @@ namespace Org.OpenAPITools.Api /// /// Logs exceptions that occur while retrieving the server response /// - /// - /// - /// - private void OnErrorGetMixedAnyOfDefaultImplementation(Exception exception, string pathFormat, string path) + /// + /// + /// + private void OnErrorGetMixedAnyOfDefaultImplementation(Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar) { - bool suppressDefaultLog = false; - OnErrorGetMixedAnyOf(ref suppressDefaultLog, exception, pathFormat, path); - if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while sending the request to the server."); + bool suppressDefaultLogLocalVar = false; + OnErrorGetMixedAnyOf(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar); + if (!suppressDefaultLogLocalVar) + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling /// - /// - /// - /// - /// - partial void OnErrorGetMixedAnyOf(ref bool suppressDefaultLog, Exception exception, string pathFormat, string path); + /// + /// + /// + /// + partial void OnErrorGetMixedAnyOf(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar); /// /// Test mixed type anyOf deserialization @@ -2798,25 +2798,25 @@ namespace Org.OpenAPITools.Api /// /// Logs exceptions that occur while retrieving the server response /// - /// - /// - /// - private void OnErrorGetMixedOneOfDefaultImplementation(Exception exception, string pathFormat, string path) + /// + /// + /// + private void OnErrorGetMixedOneOfDefaultImplementation(Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar) { - bool suppressDefaultLog = false; - OnErrorGetMixedOneOf(ref suppressDefaultLog, exception, pathFormat, path); - if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while sending the request to the server."); + bool suppressDefaultLogLocalVar = false; + OnErrorGetMixedOneOf(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar); + if (!suppressDefaultLogLocalVar) + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling /// - /// - /// - /// - /// - partial void OnErrorGetMixedOneOf(ref bool suppressDefaultLog, Exception exception, string pathFormat, string path); + /// + /// + /// + /// + partial void OnErrorGetMixedOneOf(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar); /// /// Test mixed type oneOf deserialization @@ -3006,27 +3006,27 @@ namespace Org.OpenAPITools.Api /// /// Logs exceptions that occur while retrieving the server response /// - /// - /// - /// + /// + /// + /// /// - private void OnErrorTestAdditionalPropertiesReferenceDefaultImplementation(Exception exception, string pathFormat, string path, Dictionary requestBody) + private void OnErrorTestAdditionalPropertiesReferenceDefaultImplementation(Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, Dictionary requestBody) { - bool suppressDefaultLog = false; - OnErrorTestAdditionalPropertiesReference(ref suppressDefaultLog, exception, pathFormat, path, requestBody); - if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while sending the request to the server."); + bool suppressDefaultLogLocalVar = false; + OnErrorTestAdditionalPropertiesReference(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, requestBody); + if (!suppressDefaultLogLocalVar) + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling /// - /// - /// - /// - /// + /// + /// + /// + /// /// - partial void OnErrorTestAdditionalPropertiesReference(ref bool suppressDefaultLog, Exception exception, string pathFormat, string path, Dictionary requestBody); + partial void OnErrorTestAdditionalPropertiesReference(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, Dictionary requestBody); /// /// test referenced additionalProperties @@ -3195,27 +3195,27 @@ namespace Org.OpenAPITools.Api /// /// Logs exceptions that occur while retrieving the server response /// - /// - /// - /// + /// + /// + /// /// - private void OnErrorTestBodyWithFileSchemaDefaultImplementation(Exception exception, string pathFormat, string path, FileSchemaTestClass fileSchemaTestClass) + private void OnErrorTestBodyWithFileSchemaDefaultImplementation(Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, FileSchemaTestClass fileSchemaTestClass) { - bool suppressDefaultLog = false; - OnErrorTestBodyWithFileSchema(ref suppressDefaultLog, exception, pathFormat, path, fileSchemaTestClass); - if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while sending the request to the server."); + bool suppressDefaultLogLocalVar = false; + OnErrorTestBodyWithFileSchema(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, fileSchemaTestClass); + if (!suppressDefaultLogLocalVar) + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling /// - /// - /// - /// - /// + /// + /// + /// + /// /// - partial void OnErrorTestBodyWithFileSchema(ref bool suppressDefaultLog, Exception exception, string pathFormat, string path, FileSchemaTestClass fileSchemaTestClass); + partial void OnErrorTestBodyWithFileSchema(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, FileSchemaTestClass fileSchemaTestClass); /// /// For this test, the body for this request much reference a schema named `File`. @@ -3390,29 +3390,29 @@ namespace Org.OpenAPITools.Api /// /// Logs exceptions that occur while retrieving the server response /// - /// - /// - /// + /// + /// + /// /// /// - private void OnErrorTestBodyWithQueryParamsDefaultImplementation(Exception exception, string pathFormat, string path, string query, User user) + private void OnErrorTestBodyWithQueryParamsDefaultImplementation(Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, string query, User user) { - bool suppressDefaultLog = false; - OnErrorTestBodyWithQueryParams(ref suppressDefaultLog, exception, pathFormat, path, query, user); - if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while sending the request to the server."); + bool suppressDefaultLogLocalVar = false; + OnErrorTestBodyWithQueryParams(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, query, user); + if (!suppressDefaultLogLocalVar) + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling /// - /// - /// - /// - /// + /// + /// + /// + /// /// /// - partial void OnErrorTestBodyWithQueryParams(ref bool suppressDefaultLog, Exception exception, string pathFormat, string path, string query, User user); + partial void OnErrorTestBodyWithQueryParams(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, string query, User user); /// /// @@ -3589,27 +3589,27 @@ namespace Org.OpenAPITools.Api /// /// Logs exceptions that occur while retrieving the server response /// - /// - /// - /// + /// + /// + /// /// - private void OnErrorTestClientModelDefaultImplementation(Exception exception, string pathFormat, string path, ModelClient modelClient) + private void OnErrorTestClientModelDefaultImplementation(Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, ModelClient modelClient) { - bool suppressDefaultLog = false; - OnErrorTestClientModel(ref suppressDefaultLog, exception, pathFormat, path, modelClient); - if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while sending the request to the server."); + bool suppressDefaultLogLocalVar = false; + OnErrorTestClientModel(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, modelClient); + if (!suppressDefaultLogLocalVar) + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling /// - /// - /// - /// - /// + /// + /// + /// + /// /// - partial void OnErrorTestClientModel(ref bool suppressDefaultLog, Exception exception, string pathFormat, string path, ModelClient modelClient); + partial void OnErrorTestClientModel(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, ModelClient modelClient); /// /// To test \"client\" model To test \"client\" model @@ -3864,9 +3864,9 @@ namespace Org.OpenAPITools.Api /// /// Logs exceptions that occur while retrieving the server response /// - /// - /// - /// + /// + /// + /// /// /// /// @@ -3881,21 +3881,21 @@ namespace Org.OpenAPITools.Api /// /// /// - private void OnErrorTestEndpointParametersDefaultImplementation(Exception exception, string pathFormat, string path, decimal number, string patternWithoutDelimiter, byte[] varByte, double varDouble, Option binary, Option callback, Option date, Option dateTime, Option int32, Option int64, Option integer, Option password, Option varFloat, Option varString) + private void OnErrorTestEndpointParametersDefaultImplementation(Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, decimal number, string patternWithoutDelimiter, byte[] varByte, double varDouble, Option binary, Option callback, Option date, Option dateTime, Option int32, Option int64, Option integer, Option password, Option varFloat, Option varString) { - bool suppressDefaultLog = false; - OnErrorTestEndpointParameters(ref suppressDefaultLog, exception, pathFormat, path, number, patternWithoutDelimiter, varByte, varDouble, binary, callback, date, dateTime, int32, int64, integer, password, varFloat, varString); - if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while sending the request to the server."); + bool suppressDefaultLogLocalVar = false; + OnErrorTestEndpointParameters(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, number, patternWithoutDelimiter, varByte, varDouble, binary, callback, date, dateTime, int32, int64, integer, password, varFloat, varString); + if (!suppressDefaultLogLocalVar) + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling /// - /// - /// - /// - /// + /// + /// + /// + /// /// /// /// @@ -3910,7 +3910,7 @@ namespace Org.OpenAPITools.Api /// /// /// - partial void OnErrorTestEndpointParameters(ref bool suppressDefaultLog, Exception exception, string pathFormat, string path, decimal number, string patternWithoutDelimiter, byte[] varByte, double varDouble, Option binary, Option callback, Option date, Option dateTime, Option int32, Option int64, Option integer, Option password, Option varFloat, Option varString); + partial void OnErrorTestEndpointParameters(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, decimal number, string patternWithoutDelimiter, byte[] varByte, double varDouble, Option binary, Option callback, Option date, Option dateTime, Option int32, Option int64, Option integer, Option password, Option varFloat, Option varString); /// /// Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트 Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트 @@ -4198,9 +4198,9 @@ namespace Org.OpenAPITools.Api /// /// Logs exceptions that occur while retrieving the server response /// - /// - /// - /// + /// + /// + /// /// /// /// @@ -4209,21 +4209,21 @@ namespace Org.OpenAPITools.Api /// /// /// - private void OnErrorTestEnumParametersDefaultImplementation(Exception exception, string pathFormat, string path, Option enumFormString, Option> enumFormStringArray, Option enumHeaderString, Option> enumHeaderStringArray, Option enumQueryDouble, Option enumQueryInteger, Option enumQueryString, Option> enumQueryStringArray) + private void OnErrorTestEnumParametersDefaultImplementation(Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, Option enumFormString, Option> enumFormStringArray, Option enumHeaderString, Option> enumHeaderStringArray, Option enumQueryDouble, Option enumQueryInteger, Option enumQueryString, Option> enumQueryStringArray) { - bool suppressDefaultLog = false; - OnErrorTestEnumParameters(ref suppressDefaultLog, exception, pathFormat, path, enumFormString, enumFormStringArray, enumHeaderString, enumHeaderStringArray, enumQueryDouble, enumQueryInteger, enumQueryString, enumQueryStringArray); - if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while sending the request to the server."); + bool suppressDefaultLogLocalVar = false; + OnErrorTestEnumParameters(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, enumFormString, enumFormStringArray, enumHeaderString, enumHeaderStringArray, enumQueryDouble, enumQueryInteger, enumQueryString, enumQueryStringArray); + if (!suppressDefaultLogLocalVar) + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling /// - /// - /// - /// - /// + /// + /// + /// + /// /// /// /// @@ -4232,7 +4232,7 @@ namespace Org.OpenAPITools.Api /// /// /// - partial void OnErrorTestEnumParameters(ref bool suppressDefaultLog, Exception exception, string pathFormat, string path, Option enumFormString, Option> enumFormStringArray, Option enumHeaderString, Option> enumHeaderStringArray, Option enumQueryDouble, Option enumQueryInteger, Option enumQueryString, Option> enumQueryStringArray); + partial void OnErrorTestEnumParameters(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, Option enumFormString, Option> enumFormStringArray, Option enumHeaderString, Option> enumHeaderStringArray, Option enumQueryDouble, Option enumQueryInteger, Option enumQueryString, Option> enumQueryStringArray); /// /// To test enum parameters To test enum parameters @@ -4450,37 +4450,37 @@ namespace Org.OpenAPITools.Api /// /// Logs exceptions that occur while retrieving the server response /// - /// - /// - /// + /// + /// + /// /// /// /// /// /// /// - private void OnErrorTestGroupParametersDefaultImplementation(Exception exception, string pathFormat, string path, bool requiredBooleanGroup, long requiredInt64Group, int requiredStringGroup, Option booleanGroup, Option int64Group, Option stringGroup) + private void OnErrorTestGroupParametersDefaultImplementation(Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, bool requiredBooleanGroup, long requiredInt64Group, int requiredStringGroup, Option booleanGroup, Option int64Group, Option stringGroup) { - bool suppressDefaultLog = false; - OnErrorTestGroupParameters(ref suppressDefaultLog, exception, pathFormat, path, requiredBooleanGroup, requiredInt64Group, requiredStringGroup, booleanGroup, int64Group, stringGroup); - if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while sending the request to the server."); + bool suppressDefaultLogLocalVar = false; + OnErrorTestGroupParameters(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, requiredBooleanGroup, requiredInt64Group, requiredStringGroup, booleanGroup, int64Group, stringGroup); + if (!suppressDefaultLogLocalVar) + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling /// - /// - /// - /// - /// + /// + /// + /// + /// /// /// /// /// /// /// - partial void OnErrorTestGroupParameters(ref bool suppressDefaultLog, Exception exception, string pathFormat, string path, bool requiredBooleanGroup, long requiredInt64Group, int requiredStringGroup, Option booleanGroup, Option int64Group, Option stringGroup); + partial void OnErrorTestGroupParameters(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, bool requiredBooleanGroup, long requiredInt64Group, int requiredStringGroup, Option booleanGroup, Option int64Group, Option stringGroup); /// /// Fake endpoint to test group parameters (optional) Fake endpoint to test group parameters (optional) @@ -4672,27 +4672,27 @@ namespace Org.OpenAPITools.Api /// /// Logs exceptions that occur while retrieving the server response /// - /// - /// - /// + /// + /// + /// /// - private void OnErrorTestInlineAdditionalPropertiesDefaultImplementation(Exception exception, string pathFormat, string path, Dictionary requestBody) + private void OnErrorTestInlineAdditionalPropertiesDefaultImplementation(Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, Dictionary requestBody) { - bool suppressDefaultLog = false; - OnErrorTestInlineAdditionalProperties(ref suppressDefaultLog, exception, pathFormat, path, requestBody); - if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while sending the request to the server."); + bool suppressDefaultLogLocalVar = false; + OnErrorTestInlineAdditionalProperties(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, requestBody); + if (!suppressDefaultLogLocalVar) + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling /// - /// - /// - /// - /// + /// + /// + /// + /// /// - partial void OnErrorTestInlineAdditionalProperties(ref bool suppressDefaultLog, Exception exception, string pathFormat, string path, Dictionary requestBody); + partial void OnErrorTestInlineAdditionalProperties(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, Dictionary requestBody); /// /// test inline additionalProperties @@ -4861,27 +4861,27 @@ namespace Org.OpenAPITools.Api /// /// Logs exceptions that occur while retrieving the server response /// - /// - /// - /// + /// + /// + /// /// - private void OnErrorTestInlineFreeformAdditionalPropertiesDefaultImplementation(Exception exception, string pathFormat, string path, TestInlineFreeformAdditionalPropertiesRequest testInlineFreeformAdditionalPropertiesRequest) + private void OnErrorTestInlineFreeformAdditionalPropertiesDefaultImplementation(Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, TestInlineFreeformAdditionalPropertiesRequest testInlineFreeformAdditionalPropertiesRequest) { - bool suppressDefaultLog = false; - OnErrorTestInlineFreeformAdditionalProperties(ref suppressDefaultLog, exception, pathFormat, path, testInlineFreeformAdditionalPropertiesRequest); - if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while sending the request to the server."); + bool suppressDefaultLogLocalVar = false; + OnErrorTestInlineFreeformAdditionalProperties(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, testInlineFreeformAdditionalPropertiesRequest); + if (!suppressDefaultLogLocalVar) + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling /// - /// - /// - /// - /// + /// + /// + /// + /// /// - partial void OnErrorTestInlineFreeformAdditionalProperties(ref bool suppressDefaultLog, Exception exception, string pathFormat, string path, TestInlineFreeformAdditionalPropertiesRequest testInlineFreeformAdditionalPropertiesRequest); + partial void OnErrorTestInlineFreeformAdditionalProperties(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, TestInlineFreeformAdditionalPropertiesRequest testInlineFreeformAdditionalPropertiesRequest); /// /// test inline free-form additionalProperties @@ -5056,29 +5056,29 @@ namespace Org.OpenAPITools.Api /// /// Logs exceptions that occur while retrieving the server response /// - /// - /// - /// + /// + /// + /// /// /// - private void OnErrorTestJsonFormDataDefaultImplementation(Exception exception, string pathFormat, string path, string param, string param2) + private void OnErrorTestJsonFormDataDefaultImplementation(Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, string param, string param2) { - bool suppressDefaultLog = false; - OnErrorTestJsonFormData(ref suppressDefaultLog, exception, pathFormat, path, param, param2); - if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while sending the request to the server."); + bool suppressDefaultLogLocalVar = false; + OnErrorTestJsonFormData(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, param, param2); + if (!suppressDefaultLogLocalVar) + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling /// - /// - /// - /// - /// + /// + /// + /// + /// /// /// - partial void OnErrorTestJsonFormData(ref bool suppressDefaultLog, Exception exception, string pathFormat, string path, string param, string param2); + partial void OnErrorTestJsonFormData(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, string param, string param2); /// /// test json serialization of form data @@ -5297,9 +5297,9 @@ namespace Org.OpenAPITools.Api /// /// Logs exceptions that occur while retrieving the server response /// - /// - /// - /// + /// + /// + /// /// /// /// @@ -5309,21 +5309,21 @@ namespace Org.OpenAPITools.Api /// /// /// - private void OnErrorTestQueryParameterCollectionFormatDefaultImplementation(Exception exception, string pathFormat, string path, List context, List http, List ioutil, List pipe, string requiredNotNullable, List url, Option notRequiredNotNullable, Option notRequiredNullable, string requiredNullable) + private void OnErrorTestQueryParameterCollectionFormatDefaultImplementation(Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, List context, List http, List ioutil, List pipe, string requiredNotNullable, List url, Option notRequiredNotNullable, Option notRequiredNullable, string requiredNullable) { - bool suppressDefaultLog = false; - OnErrorTestQueryParameterCollectionFormat(ref suppressDefaultLog, exception, pathFormat, path, context, http, ioutil, pipe, requiredNotNullable, url, notRequiredNotNullable, notRequiredNullable, requiredNullable); - if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while sending the request to the server."); + bool suppressDefaultLogLocalVar = false; + OnErrorTestQueryParameterCollectionFormat(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, context, http, ioutil, pipe, requiredNotNullable, url, notRequiredNotNullable, notRequiredNullable, requiredNullable); + if (!suppressDefaultLogLocalVar) + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling /// - /// - /// - /// - /// + /// + /// + /// + /// /// /// /// @@ -5333,7 +5333,7 @@ namespace Org.OpenAPITools.Api /// /// /// - partial void OnErrorTestQueryParameterCollectionFormat(ref bool suppressDefaultLog, Exception exception, string pathFormat, string path, List context, List http, List ioutil, List pipe, string requiredNotNullable, List url, Option notRequiredNotNullable, Option notRequiredNullable, string requiredNullable); + partial void OnErrorTestQueryParameterCollectionFormat(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, List context, List http, List ioutil, List pipe, string requiredNotNullable, List url, Option notRequiredNotNullable, Option notRequiredNullable, string requiredNullable); /// /// To test the collection format in query parameters @@ -5522,27 +5522,27 @@ namespace Org.OpenAPITools.Api /// /// Logs exceptions that occur while retrieving the server response /// - /// - /// - /// + /// + /// + /// /// - private void OnErrorTestStringMapReferenceDefaultImplementation(Exception exception, string pathFormat, string path, Dictionary requestBody) + private void OnErrorTestStringMapReferenceDefaultImplementation(Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, Dictionary requestBody) { - bool suppressDefaultLog = false; - OnErrorTestStringMapReference(ref suppressDefaultLog, exception, pathFormat, path, requestBody); - if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while sending the request to the server."); + bool suppressDefaultLogLocalVar = false; + OnErrorTestStringMapReference(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, requestBody); + if (!suppressDefaultLogLocalVar) + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling /// - /// - /// - /// - /// + /// + /// + /// + /// /// - partial void OnErrorTestStringMapReference(ref bool suppressDefaultLog, Exception exception, string pathFormat, string path, Dictionary requestBody); + partial void OnErrorTestStringMapReference(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, Dictionary requestBody); /// /// test referenced string map diff --git a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Api/FakeClassnameTags123Api.cs b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Api/FakeClassnameTags123Api.cs index ff66cc2a209..010a227c8b2 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Api/FakeClassnameTags123Api.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Api/FakeClassnameTags123Api.cs @@ -207,27 +207,27 @@ namespace Org.OpenAPITools.Api /// /// Logs exceptions that occur while retrieving the server response /// - /// - /// - /// + /// + /// + /// /// - private void OnErrorTestClassnameDefaultImplementation(Exception exception, string pathFormat, string path, ModelClient modelClient) + private void OnErrorTestClassnameDefaultImplementation(Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, ModelClient modelClient) { - bool suppressDefaultLog = false; - OnErrorTestClassname(ref suppressDefaultLog, exception, pathFormat, path, modelClient); - if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while sending the request to the server."); + bool suppressDefaultLogLocalVar = false; + OnErrorTestClassname(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, modelClient); + if (!suppressDefaultLogLocalVar) + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling /// - /// - /// - /// - /// + /// + /// + /// + /// /// - partial void OnErrorTestClassname(ref bool suppressDefaultLog, Exception exception, string pathFormat, string path, ModelClient modelClient); + partial void OnErrorTestClassname(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, ModelClient modelClient); /// /// To test class name in snake case To test class name in snake case diff --git a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Api/PetApi.cs b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Api/PetApi.cs index f558e4f790e..e86b5564713 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Api/PetApi.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Api/PetApi.cs @@ -711,27 +711,27 @@ namespace Org.OpenAPITools.Api /// /// Logs exceptions that occur while retrieving the server response /// - /// - /// - /// + /// + /// + /// /// - private void OnErrorAddPetDefaultImplementation(Exception exception, string pathFormat, string path, Pet pet) + private void OnErrorAddPetDefaultImplementation(Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, Pet pet) { - bool suppressDefaultLog = false; - OnErrorAddPet(ref suppressDefaultLog, exception, pathFormat, path, pet); - if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while sending the request to the server."); + bool suppressDefaultLogLocalVar = false; + OnErrorAddPet(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, pet); + if (!suppressDefaultLogLocalVar) + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling /// - /// - /// - /// - /// + /// + /// + /// + /// /// - partial void OnErrorAddPet(ref bool suppressDefaultLog, Exception exception, string pathFormat, string path, Pet pet); + partial void OnErrorAddPet(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, Pet pet); /// /// Add a new pet to the store @@ -924,29 +924,29 @@ namespace Org.OpenAPITools.Api /// /// Logs exceptions that occur while retrieving the server response /// - /// - /// - /// + /// + /// + /// /// /// - private void OnErrorDeletePetDefaultImplementation(Exception exception, string pathFormat, string path, long petId, Option apiKey) + private void OnErrorDeletePetDefaultImplementation(Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, long petId, Option apiKey) { - bool suppressDefaultLog = false; - OnErrorDeletePet(ref suppressDefaultLog, exception, pathFormat, path, petId, apiKey); - if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while sending the request to the server."); + bool suppressDefaultLogLocalVar = false; + OnErrorDeletePet(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, petId, apiKey); + if (!suppressDefaultLogLocalVar) + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling /// - /// - /// - /// - /// + /// + /// + /// + /// /// /// - partial void OnErrorDeletePet(ref bool suppressDefaultLog, Exception exception, string pathFormat, string path, long petId, Option apiKey); + partial void OnErrorDeletePet(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, long petId, Option apiKey); /// /// Deletes a pet @@ -1118,27 +1118,27 @@ namespace Org.OpenAPITools.Api /// /// Logs exceptions that occur while retrieving the server response /// - /// - /// - /// + /// + /// + /// /// - private void OnErrorFindPetsByStatusDefaultImplementation(Exception exception, string pathFormat, string path, List status) + private void OnErrorFindPetsByStatusDefaultImplementation(Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, List status) { - bool suppressDefaultLog = false; - OnErrorFindPetsByStatus(ref suppressDefaultLog, exception, pathFormat, path, status); - if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while sending the request to the server."); + bool suppressDefaultLogLocalVar = false; + OnErrorFindPetsByStatus(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, status); + if (!suppressDefaultLogLocalVar) + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling /// - /// - /// - /// - /// + /// + /// + /// + /// /// - partial void OnErrorFindPetsByStatus(ref bool suppressDefaultLog, Exception exception, string pathFormat, string path, List status); + partial void OnErrorFindPetsByStatus(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, List status); /// /// Finds Pets by status Multiple status values can be provided with comma separated strings @@ -1394,27 +1394,27 @@ namespace Org.OpenAPITools.Api /// /// Logs exceptions that occur while retrieving the server response /// - /// - /// - /// + /// + /// + /// /// - private void OnErrorFindPetsByTagsDefaultImplementation(Exception exception, string pathFormat, string path, List tags) + private void OnErrorFindPetsByTagsDefaultImplementation(Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, List tags) { - bool suppressDefaultLog = false; - OnErrorFindPetsByTags(ref suppressDefaultLog, exception, pathFormat, path, tags); - if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while sending the request to the server."); + bool suppressDefaultLogLocalVar = false; + OnErrorFindPetsByTags(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, tags); + if (!suppressDefaultLogLocalVar) + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling /// - /// - /// - /// - /// + /// + /// + /// + /// /// - partial void OnErrorFindPetsByTags(ref bool suppressDefaultLog, Exception exception, string pathFormat, string path, List tags); + partial void OnErrorFindPetsByTags(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, List tags); /// /// Finds Pets by tags Multiple tags can be provided with comma separated strings. Use tag1, tag2, tag3 for testing. @@ -1633,27 +1633,27 @@ namespace Org.OpenAPITools.Api /// /// Logs exceptions that occur while retrieving the server response /// - /// - /// - /// + /// + /// + /// /// - private void OnErrorGetPetByIdDefaultImplementation(Exception exception, string pathFormat, string path, long petId) + private void OnErrorGetPetByIdDefaultImplementation(Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, long petId) { - bool suppressDefaultLog = false; - OnErrorGetPetById(ref suppressDefaultLog, exception, pathFormat, path, petId); - if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while sending the request to the server."); + bool suppressDefaultLogLocalVar = false; + OnErrorGetPetById(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, petId); + if (!suppressDefaultLogLocalVar) + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling /// - /// - /// - /// - /// + /// + /// + /// + /// /// - partial void OnErrorGetPetById(ref bool suppressDefaultLog, Exception exception, string pathFormat, string path, long petId); + partial void OnErrorGetPetById(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, long petId); /// /// Find pet by ID Returns a single pet @@ -1878,27 +1878,27 @@ namespace Org.OpenAPITools.Api /// /// Logs exceptions that occur while retrieving the server response /// - /// - /// - /// + /// + /// + /// /// - private void OnErrorUpdatePetDefaultImplementation(Exception exception, string pathFormat, string path, Pet pet) + private void OnErrorUpdatePetDefaultImplementation(Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, Pet pet) { - bool suppressDefaultLog = false; - OnErrorUpdatePet(ref suppressDefaultLog, exception, pathFormat, path, pet); - if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while sending the request to the server."); + bool suppressDefaultLogLocalVar = false; + OnErrorUpdatePet(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, pet); + if (!suppressDefaultLogLocalVar) + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling /// - /// - /// - /// - /// + /// + /// + /// + /// /// - partial void OnErrorUpdatePet(ref bool suppressDefaultLog, Exception exception, string pathFormat, string path, Pet pet); + partial void OnErrorUpdatePet(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, Pet pet); /// /// Update an existing pet @@ -2109,31 +2109,31 @@ namespace Org.OpenAPITools.Api /// /// Logs exceptions that occur while retrieving the server response /// - /// - /// - /// + /// + /// + /// /// /// /// - private void OnErrorUpdatePetWithFormDefaultImplementation(Exception exception, string pathFormat, string path, long petId, Option name, Option status) + private void OnErrorUpdatePetWithFormDefaultImplementation(Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, long petId, Option name, Option status) { - bool suppressDefaultLog = false; - OnErrorUpdatePetWithForm(ref suppressDefaultLog, exception, pathFormat, path, petId, name, status); - if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while sending the request to the server."); + bool suppressDefaultLogLocalVar = false; + OnErrorUpdatePetWithForm(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, petId, name, status); + if (!suppressDefaultLogLocalVar) + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling /// - /// - /// - /// - /// + /// + /// + /// + /// /// /// /// - partial void OnErrorUpdatePetWithForm(ref bool suppressDefaultLog, Exception exception, string pathFormat, string path, long petId, Option name, Option status); + partial void OnErrorUpdatePetWithForm(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, long petId, Option name, Option status); /// /// Updates a pet in the store with form data @@ -2334,31 +2334,31 @@ namespace Org.OpenAPITools.Api /// /// Logs exceptions that occur while retrieving the server response /// - /// - /// - /// + /// + /// + /// /// /// /// - private void OnErrorUploadFileDefaultImplementation(Exception exception, string pathFormat, string path, long petId, Option additionalMetadata, Option file) + private void OnErrorUploadFileDefaultImplementation(Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, long petId, Option additionalMetadata, Option file) { - bool suppressDefaultLog = false; - OnErrorUploadFile(ref suppressDefaultLog, exception, pathFormat, path, petId, additionalMetadata, file); - if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while sending the request to the server."); + bool suppressDefaultLogLocalVar = false; + OnErrorUploadFile(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, petId, additionalMetadata, file); + if (!suppressDefaultLogLocalVar) + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling /// - /// - /// - /// - /// + /// + /// + /// + /// /// /// /// - partial void OnErrorUploadFile(ref bool suppressDefaultLog, Exception exception, string pathFormat, string path, long petId, Option additionalMetadata, Option file); + partial void OnErrorUploadFile(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, long petId, Option additionalMetadata, Option file); /// /// uploads an image @@ -2599,31 +2599,31 @@ namespace Org.OpenAPITools.Api /// /// Logs exceptions that occur while retrieving the server response /// - /// - /// - /// + /// + /// + /// /// /// /// - private void OnErrorUploadFileWithRequiredFileDefaultImplementation(Exception exception, string pathFormat, string path, long petId, System.IO.Stream requiredFile, Option additionalMetadata) + private void OnErrorUploadFileWithRequiredFileDefaultImplementation(Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, long petId, System.IO.Stream requiredFile, Option additionalMetadata) { - bool suppressDefaultLog = false; - OnErrorUploadFileWithRequiredFile(ref suppressDefaultLog, exception, pathFormat, path, petId, requiredFile, additionalMetadata); - if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while sending the request to the server."); + bool suppressDefaultLogLocalVar = false; + OnErrorUploadFileWithRequiredFile(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, petId, requiredFile, additionalMetadata); + if (!suppressDefaultLogLocalVar) + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling /// - /// - /// - /// - /// + /// + /// + /// + /// /// /// /// - partial void OnErrorUploadFileWithRequiredFile(ref bool suppressDefaultLog, Exception exception, string pathFormat, string path, long petId, System.IO.Stream requiredFile, Option additionalMetadata); + partial void OnErrorUploadFileWithRequiredFile(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, long petId, System.IO.Stream requiredFile, Option additionalMetadata); /// /// uploads an image (required) diff --git a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Api/StoreApi.cs b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Api/StoreApi.cs index f8d73a608a3..2cb0523731c 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Api/StoreApi.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Api/StoreApi.cs @@ -394,27 +394,27 @@ namespace Org.OpenAPITools.Api /// /// Logs exceptions that occur while retrieving the server response /// - /// - /// - /// + /// + /// + /// /// - private void OnErrorDeleteOrderDefaultImplementation(Exception exception, string pathFormat, string path, string orderId) + private void OnErrorDeleteOrderDefaultImplementation(Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, string orderId) { - bool suppressDefaultLog = false; - OnErrorDeleteOrder(ref suppressDefaultLog, exception, pathFormat, path, orderId); - if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while sending the request to the server."); + bool suppressDefaultLogLocalVar = false; + OnErrorDeleteOrder(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, orderId); + if (!suppressDefaultLogLocalVar) + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling /// - /// - /// - /// - /// + /// + /// + /// + /// /// - partial void OnErrorDeleteOrder(ref bool suppressDefaultLog, Exception exception, string pathFormat, string path, string orderId); + partial void OnErrorDeleteOrder(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, string orderId); /// /// Delete purchase order by ID For valid response try integer IDs with value < 1000. Anything above 1000 or nonintegers will generate API errors @@ -561,25 +561,25 @@ namespace Org.OpenAPITools.Api /// /// Logs exceptions that occur while retrieving the server response /// - /// - /// - /// - private void OnErrorGetInventoryDefaultImplementation(Exception exception, string pathFormat, string path) + /// + /// + /// + private void OnErrorGetInventoryDefaultImplementation(Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar) { - bool suppressDefaultLog = false; - OnErrorGetInventory(ref suppressDefaultLog, exception, pathFormat, path); - if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while sending the request to the server."); + bool suppressDefaultLogLocalVar = false; + OnErrorGetInventory(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar); + if (!suppressDefaultLogLocalVar) + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling /// - /// - /// - /// - /// - partial void OnErrorGetInventory(ref bool suppressDefaultLog, Exception exception, string pathFormat, string path); + /// + /// + /// + /// + partial void OnErrorGetInventory(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar); /// /// Returns pet inventories by status Returns a map of status codes to quantities @@ -767,27 +767,27 @@ namespace Org.OpenAPITools.Api /// /// Logs exceptions that occur while retrieving the server response /// - /// - /// - /// + /// + /// + /// /// - private void OnErrorGetOrderByIdDefaultImplementation(Exception exception, string pathFormat, string path, long orderId) + private void OnErrorGetOrderByIdDefaultImplementation(Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, long orderId) { - bool suppressDefaultLog = false; - OnErrorGetOrderById(ref suppressDefaultLog, exception, pathFormat, path, orderId); - if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while sending the request to the server."); + bool suppressDefaultLogLocalVar = false; + OnErrorGetOrderById(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, orderId); + if (!suppressDefaultLogLocalVar) + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling /// - /// - /// - /// - /// + /// + /// + /// + /// /// - partial void OnErrorGetOrderById(ref bool suppressDefaultLog, Exception exception, string pathFormat, string path, long orderId); + partial void OnErrorGetOrderById(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, long orderId); /// /// Find purchase order by ID For valid response try integer IDs with value <= 5 or > 10. Other values will generate exceptions @@ -995,27 +995,27 @@ namespace Org.OpenAPITools.Api /// /// Logs exceptions that occur while retrieving the server response /// - /// - /// - /// + /// + /// + /// /// - private void OnErrorPlaceOrderDefaultImplementation(Exception exception, string pathFormat, string path, Order order) + private void OnErrorPlaceOrderDefaultImplementation(Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, Order order) { - bool suppressDefaultLog = false; - OnErrorPlaceOrder(ref suppressDefaultLog, exception, pathFormat, path, order); - if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while sending the request to the server."); + bool suppressDefaultLogLocalVar = false; + OnErrorPlaceOrder(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, order); + if (!suppressDefaultLogLocalVar) + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling /// - /// - /// - /// - /// + /// + /// + /// + /// /// - partial void OnErrorPlaceOrder(ref bool suppressDefaultLog, Exception exception, string pathFormat, string path, Order order); + partial void OnErrorPlaceOrder(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, Order order); /// /// Place an order for a pet diff --git a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Api/UserApi.cs b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Api/UserApi.cs index 25824cb3dca..46a87aed2c0 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Api/UserApi.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Api/UserApi.cs @@ -636,27 +636,27 @@ namespace Org.OpenAPITools.Api /// /// Logs exceptions that occur while retrieving the server response /// - /// - /// - /// + /// + /// + /// /// - private void OnErrorCreateUserDefaultImplementation(Exception exception, string pathFormat, string path, User user) + private void OnErrorCreateUserDefaultImplementation(Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, User user) { - bool suppressDefaultLog = false; - OnErrorCreateUser(ref suppressDefaultLog, exception, pathFormat, path, user); - if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while sending the request to the server."); + bool suppressDefaultLogLocalVar = false; + OnErrorCreateUser(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, user); + if (!suppressDefaultLogLocalVar) + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling /// - /// - /// - /// - /// + /// + /// + /// + /// /// - partial void OnErrorCreateUser(ref bool suppressDefaultLog, Exception exception, string pathFormat, string path, User user); + partial void OnErrorCreateUser(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, User user); /// /// Create user This can only be done by the logged in user. @@ -825,27 +825,27 @@ namespace Org.OpenAPITools.Api /// /// Logs exceptions that occur while retrieving the server response /// - /// - /// - /// + /// + /// + /// /// - private void OnErrorCreateUsersWithArrayInputDefaultImplementation(Exception exception, string pathFormat, string path, List user) + private void OnErrorCreateUsersWithArrayInputDefaultImplementation(Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, List user) { - bool suppressDefaultLog = false; - OnErrorCreateUsersWithArrayInput(ref suppressDefaultLog, exception, pathFormat, path, user); - if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while sending the request to the server."); + bool suppressDefaultLogLocalVar = false; + OnErrorCreateUsersWithArrayInput(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, user); + if (!suppressDefaultLogLocalVar) + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling /// - /// - /// - /// - /// + /// + /// + /// + /// /// - partial void OnErrorCreateUsersWithArrayInput(ref bool suppressDefaultLog, Exception exception, string pathFormat, string path, List user); + partial void OnErrorCreateUsersWithArrayInput(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, List user); /// /// Creates list of users with given input array @@ -1014,27 +1014,27 @@ namespace Org.OpenAPITools.Api /// /// Logs exceptions that occur while retrieving the server response /// - /// - /// - /// + /// + /// + /// /// - private void OnErrorCreateUsersWithListInputDefaultImplementation(Exception exception, string pathFormat, string path, List user) + private void OnErrorCreateUsersWithListInputDefaultImplementation(Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, List user) { - bool suppressDefaultLog = false; - OnErrorCreateUsersWithListInput(ref suppressDefaultLog, exception, pathFormat, path, user); - if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while sending the request to the server."); + bool suppressDefaultLogLocalVar = false; + OnErrorCreateUsersWithListInput(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, user); + if (!suppressDefaultLogLocalVar) + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling /// - /// - /// - /// - /// + /// + /// + /// + /// /// - partial void OnErrorCreateUsersWithListInput(ref bool suppressDefaultLog, Exception exception, string pathFormat, string path, List user); + partial void OnErrorCreateUsersWithListInput(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, List user); /// /// Creates list of users with given input array @@ -1203,27 +1203,27 @@ namespace Org.OpenAPITools.Api /// /// Logs exceptions that occur while retrieving the server response /// - /// - /// - /// + /// + /// + /// /// - private void OnErrorDeleteUserDefaultImplementation(Exception exception, string pathFormat, string path, string username) + private void OnErrorDeleteUserDefaultImplementation(Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, string username) { - bool suppressDefaultLog = false; - OnErrorDeleteUser(ref suppressDefaultLog, exception, pathFormat, path, username); - if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while sending the request to the server."); + bool suppressDefaultLogLocalVar = false; + OnErrorDeleteUser(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, username); + if (!suppressDefaultLogLocalVar) + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling /// - /// - /// - /// - /// + /// + /// + /// + /// /// - partial void OnErrorDeleteUser(ref bool suppressDefaultLog, Exception exception, string pathFormat, string path, string username); + partial void OnErrorDeleteUser(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, string username); /// /// Delete user This can only be done by the logged in user. @@ -1385,27 +1385,27 @@ namespace Org.OpenAPITools.Api /// /// Logs exceptions that occur while retrieving the server response /// - /// - /// - /// + /// + /// + /// /// - private void OnErrorGetUserByNameDefaultImplementation(Exception exception, string pathFormat, string path, string username) + private void OnErrorGetUserByNameDefaultImplementation(Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, string username) { - bool suppressDefaultLog = false; - OnErrorGetUserByName(ref suppressDefaultLog, exception, pathFormat, path, username); - if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while sending the request to the server."); + bool suppressDefaultLogLocalVar = false; + OnErrorGetUserByName(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, username); + if (!suppressDefaultLogLocalVar) + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling /// - /// - /// - /// - /// + /// + /// + /// + /// /// - partial void OnErrorGetUserByName(ref bool suppressDefaultLog, Exception exception, string pathFormat, string path, string username); + partial void OnErrorGetUserByName(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, string username); /// /// Get user by user name @@ -1665,29 +1665,29 @@ namespace Org.OpenAPITools.Api /// /// Logs exceptions that occur while retrieving the server response /// - /// - /// - /// + /// + /// + /// /// /// - private void OnErrorLoginUserDefaultImplementation(Exception exception, string pathFormat, string path, string password, string username) + private void OnErrorLoginUserDefaultImplementation(Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, string password, string username) { - bool suppressDefaultLog = false; - OnErrorLoginUser(ref suppressDefaultLog, exception, pathFormat, path, password, username); - if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while sending the request to the server."); + bool suppressDefaultLogLocalVar = false; + OnErrorLoginUser(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, password, username); + if (!suppressDefaultLogLocalVar) + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling /// - /// - /// - /// - /// + /// + /// + /// + /// /// /// - partial void OnErrorLoginUser(ref bool suppressDefaultLog, Exception exception, string pathFormat, string path, string password, string username); + partial void OnErrorLoginUser(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, string password, string username); /// /// Logs user into the system @@ -1884,25 +1884,25 @@ namespace Org.OpenAPITools.Api /// /// Logs exceptions that occur while retrieving the server response /// - /// - /// - /// - private void OnErrorLogoutUserDefaultImplementation(Exception exception, string pathFormat, string path) + /// + /// + /// + private void OnErrorLogoutUserDefaultImplementation(Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar) { - bool suppressDefaultLog = false; - OnErrorLogoutUser(ref suppressDefaultLog, exception, pathFormat, path); - if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while sending the request to the server."); + bool suppressDefaultLogLocalVar = false; + OnErrorLogoutUser(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar); + if (!suppressDefaultLogLocalVar) + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling /// - /// - /// - /// - /// - partial void OnErrorLogoutUser(ref bool suppressDefaultLog, Exception exception, string pathFormat, string path); + /// + /// + /// + /// + partial void OnErrorLogoutUser(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar); /// /// Logs out current logged in user session @@ -2057,29 +2057,29 @@ namespace Org.OpenAPITools.Api /// /// Logs exceptions that occur while retrieving the server response /// - /// - /// - /// + /// + /// + /// /// /// - private void OnErrorUpdateUserDefaultImplementation(Exception exception, string pathFormat, string path, User user, string username) + private void OnErrorUpdateUserDefaultImplementation(Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, User user, string username) { - bool suppressDefaultLog = false; - OnErrorUpdateUser(ref suppressDefaultLog, exception, pathFormat, path, user, username); - if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while sending the request to the server."); + bool suppressDefaultLogLocalVar = false; + OnErrorUpdateUser(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, user, username); + if (!suppressDefaultLogLocalVar) + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling /// - /// - /// - /// - /// + /// + /// + /// + /// /// /// - partial void OnErrorUpdateUser(ref bool suppressDefaultLog, Exception exception, string pathFormat, string path, User user, string username); + partial void OnErrorUpdateUser(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, User user, string username); /// /// Updated user This can only be done by the logged in user. diff --git a/samples/client/petstore/csharp/generichost/net4.8/UseDateTimeForDate/src/Org.OpenAPITools/Api/DefaultApi.cs b/samples/client/petstore/csharp/generichost/net4.8/UseDateTimeForDate/src/Org.OpenAPITools/Api/DefaultApi.cs index bf0983e3e33..1662385fe8f 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/UseDateTimeForDate/src/Org.OpenAPITools/Api/DefaultApi.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/UseDateTimeForDate/src/Org.OpenAPITools/Api/DefaultApi.cs @@ -155,25 +155,25 @@ namespace Org.OpenAPITools.Api /// /// Logs exceptions that occur while retrieving the server response /// - /// - /// - /// - private void OnErrorNowGetDefaultImplementation(Exception exception, string pathFormat, string path) + /// + /// + /// + private void OnErrorNowGetDefaultImplementation(Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar) { - bool suppressDefaultLog = false; - OnErrorNowGet(ref suppressDefaultLog, exception, pathFormat, path); - if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while sending the request to the server."); + bool suppressDefaultLogLocalVar = false; + OnErrorNowGet(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar); + if (!suppressDefaultLogLocalVar) + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling /// - /// - /// - /// - /// - partial void OnErrorNowGet(ref bool suppressDefaultLog, Exception exception, string pathFormat, string path); + /// + /// + /// + /// + partial void OnErrorNowGet(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar); /// /// diff --git a/samples/client/petstore/csharp/generichost/net8/AllOf/src/Org.OpenAPITools/Api/DefaultApi.cs b/samples/client/petstore/csharp/generichost/net8/AllOf/src/Org.OpenAPITools/Api/DefaultApi.cs index 13fd3112aa2..910c5c211fb 100644 --- a/samples/client/petstore/csharp/generichost/net8/AllOf/src/Org.OpenAPITools/Api/DefaultApi.cs +++ b/samples/client/petstore/csharp/generichost/net8/AllOf/src/Org.OpenAPITools/Api/DefaultApi.cs @@ -174,27 +174,27 @@ namespace Org.OpenAPITools.Api /// /// Logs exceptions that occur while retrieving the server response /// - /// - /// - /// + /// + /// + /// /// - private void OnErrorListDefaultImplementation(Exception exception, string pathFormat, string path, string personId) + private void OnErrorListDefaultImplementation(Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, string personId) { - bool suppressDefaultLog = false; - OnErrorList(ref suppressDefaultLog, exception, pathFormat, path, personId); - if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while sending the request to the server."); + bool suppressDefaultLogLocalVar = false; + OnErrorList(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, personId); + if (!suppressDefaultLogLocalVar) + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling /// - /// - /// - /// - /// + /// + /// + /// + /// /// - partial void OnErrorList(ref bool suppressDefaultLog, Exception exception, string pathFormat, string path, string personId); + partial void OnErrorList(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, string personId); /// /// diff --git a/samples/client/petstore/csharp/generichost/net8/AnyOf/src/Org.OpenAPITools/Api/DefaultApi.cs b/samples/client/petstore/csharp/generichost/net8/AnyOf/src/Org.OpenAPITools/Api/DefaultApi.cs index 2337327fdc7..030cc3bf12e 100644 --- a/samples/client/petstore/csharp/generichost/net8/AnyOf/src/Org.OpenAPITools/Api/DefaultApi.cs +++ b/samples/client/petstore/csharp/generichost/net8/AnyOf/src/Org.OpenAPITools/Api/DefaultApi.cs @@ -157,25 +157,25 @@ namespace Org.OpenAPITools.Api /// /// Logs exceptions that occur while retrieving the server response /// - /// - /// - /// - private void OnErrorRootGetDefaultImplementation(Exception exception, string pathFormat, string path) + /// + /// + /// + private void OnErrorRootGetDefaultImplementation(Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar) { - bool suppressDefaultLog = false; - OnErrorRootGet(ref suppressDefaultLog, exception, pathFormat, path); - if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while sending the request to the server."); + bool suppressDefaultLogLocalVar = false; + OnErrorRootGet(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar); + if (!suppressDefaultLogLocalVar) + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling /// - /// - /// - /// - /// - partial void OnErrorRootGet(ref bool suppressDefaultLog, Exception exception, string pathFormat, string path); + /// + /// + /// + /// + partial void OnErrorRootGet(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar); /// /// diff --git a/samples/client/petstore/csharp/generichost/net8/AnyOfNoCompare/src/Org.OpenAPITools/Api/DefaultApi.cs b/samples/client/petstore/csharp/generichost/net8/AnyOfNoCompare/src/Org.OpenAPITools/Api/DefaultApi.cs index 2337327fdc7..030cc3bf12e 100644 --- a/samples/client/petstore/csharp/generichost/net8/AnyOfNoCompare/src/Org.OpenAPITools/Api/DefaultApi.cs +++ b/samples/client/petstore/csharp/generichost/net8/AnyOfNoCompare/src/Org.OpenAPITools/Api/DefaultApi.cs @@ -157,25 +157,25 @@ namespace Org.OpenAPITools.Api /// /// Logs exceptions that occur while retrieving the server response /// - /// - /// - /// - private void OnErrorRootGetDefaultImplementation(Exception exception, string pathFormat, string path) + /// + /// + /// + private void OnErrorRootGetDefaultImplementation(Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar) { - bool suppressDefaultLog = false; - OnErrorRootGet(ref suppressDefaultLog, exception, pathFormat, path); - if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while sending the request to the server."); + bool suppressDefaultLogLocalVar = false; + OnErrorRootGet(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar); + if (!suppressDefaultLogLocalVar) + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling /// - /// - /// - /// - /// - partial void OnErrorRootGet(ref bool suppressDefaultLog, Exception exception, string pathFormat, string path); + /// + /// + /// + /// + partial void OnErrorRootGet(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar); /// /// diff --git a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Api/AnotherFakeApi.cs b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Api/AnotherFakeApi.cs index 346fbdf8565..3d7d0c48233 100644 --- a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Api/AnotherFakeApi.cs +++ b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Api/AnotherFakeApi.cs @@ -207,27 +207,27 @@ namespace Org.OpenAPITools.Api /// /// Logs exceptions that occur while retrieving the server response /// - /// - /// - /// + /// + /// + /// /// - private void OnErrorCall123TestSpecialTagsDefaultImplementation(Exception exception, string pathFormat, string path, ModelClient modelClient) + private void OnErrorCall123TestSpecialTagsDefaultImplementation(Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, ModelClient modelClient) { - bool suppressDefaultLog = false; - OnErrorCall123TestSpecialTags(ref suppressDefaultLog, exception, pathFormat, path, modelClient); - if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while sending the request to the server."); + bool suppressDefaultLogLocalVar = false; + OnErrorCall123TestSpecialTags(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, modelClient); + if (!suppressDefaultLogLocalVar) + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling /// - /// - /// - /// - /// + /// + /// + /// + /// /// - partial void OnErrorCall123TestSpecialTags(ref bool suppressDefaultLog, Exception exception, string pathFormat, string path, ModelClient modelClient); + partial void OnErrorCall123TestSpecialTags(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, ModelClient modelClient); /// /// To test special tags To test special tags and operation ID starting with number diff --git a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Api/DefaultApi.cs b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Api/DefaultApi.cs index c996a3fc0fa..84ec2eff6bf 100644 --- a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Api/DefaultApi.cs +++ b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Api/DefaultApi.cs @@ -404,25 +404,25 @@ namespace Org.OpenAPITools.Api /// /// Logs exceptions that occur while retrieving the server response /// - /// - /// - /// - private void OnErrorFooGetDefaultImplementation(Exception exception, string pathFormat, string path) + /// + /// + /// + private void OnErrorFooGetDefaultImplementation(Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar) { - bool suppressDefaultLog = false; - OnErrorFooGet(ref suppressDefaultLog, exception, pathFormat, path); - if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while sending the request to the server."); + bool suppressDefaultLogLocalVar = false; + OnErrorFooGet(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar); + if (!suppressDefaultLogLocalVar) + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling /// - /// - /// - /// - /// - partial void OnErrorFooGet(ref bool suppressDefaultLog, Exception exception, string pathFormat, string path); + /// + /// + /// + /// + partial void OnErrorFooGet(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar); /// /// @@ -613,27 +613,27 @@ namespace Org.OpenAPITools.Api /// /// Logs exceptions that occur while retrieving the server response /// - /// - /// - /// + /// + /// + /// /// - private void OnErrorGetCountryDefaultImplementation(Exception exception, string pathFormat, string path, string country) + private void OnErrorGetCountryDefaultImplementation(Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, string country) { - bool suppressDefaultLog = false; - OnErrorGetCountry(ref suppressDefaultLog, exception, pathFormat, path, country); - if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while sending the request to the server."); + bool suppressDefaultLogLocalVar = false; + OnErrorGetCountry(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, country); + if (!suppressDefaultLogLocalVar) + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling /// - /// - /// - /// - /// + /// + /// + /// + /// /// - partial void OnErrorGetCountry(ref bool suppressDefaultLog, Exception exception, string pathFormat, string path, string country); + partial void OnErrorGetCountry(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, string country); /// /// @@ -793,25 +793,25 @@ namespace Org.OpenAPITools.Api /// /// Logs exceptions that occur while retrieving the server response /// - /// - /// - /// - private void OnErrorHelloDefaultImplementation(Exception exception, string pathFormat, string path) + /// + /// + /// + private void OnErrorHelloDefaultImplementation(Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar) { - bool suppressDefaultLog = false; - OnErrorHello(ref suppressDefaultLog, exception, pathFormat, path); - if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while sending the request to the server."); + bool suppressDefaultLogLocalVar = false; + OnErrorHello(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar); + if (!suppressDefaultLogLocalVar) + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling /// - /// - /// - /// - /// - partial void OnErrorHello(ref bool suppressDefaultLog, Exception exception, string pathFormat, string path); + /// + /// + /// + /// + partial void OnErrorHello(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar); /// /// Hello Hello @@ -987,25 +987,25 @@ namespace Org.OpenAPITools.Api /// /// Logs exceptions that occur while retrieving the server response /// - /// - /// - /// - private void OnErrorRolesReportGetDefaultImplementation(Exception exception, string pathFormat, string path) + /// + /// + /// + private void OnErrorRolesReportGetDefaultImplementation(Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar) { - bool suppressDefaultLog = false; - OnErrorRolesReportGet(ref suppressDefaultLog, exception, pathFormat, path); - if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while sending the request to the server."); + bool suppressDefaultLogLocalVar = false; + OnErrorRolesReportGet(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar); + if (!suppressDefaultLogLocalVar) + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling /// - /// - /// - /// - /// - partial void OnErrorRolesReportGet(ref bool suppressDefaultLog, Exception exception, string pathFormat, string path); + /// + /// + /// + /// + partial void OnErrorRolesReportGet(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar); /// /// @@ -1181,25 +1181,25 @@ namespace Org.OpenAPITools.Api /// /// Logs exceptions that occur while retrieving the server response /// - /// - /// - /// - private void OnErrorTestDefaultImplementation(Exception exception, string pathFormat, string path) + /// + /// + /// + private void OnErrorTestDefaultImplementation(Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar) { - bool suppressDefaultLog = false; - OnErrorTest(ref suppressDefaultLog, exception, pathFormat, path); - if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while sending the request to the server."); + bool suppressDefaultLogLocalVar = false; + OnErrorTest(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar); + if (!suppressDefaultLogLocalVar) + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling /// - /// - /// - /// - /// - partial void OnErrorTest(ref bool suppressDefaultLog, Exception exception, string pathFormat, string path); + /// + /// + /// + /// + partial void OnErrorTest(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar); /// /// Retrieve an existing Notificationtest's Elements diff --git a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Api/FakeApi.cs b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Api/FakeApi.cs index fd357fdbec8..567ffe1fa4d 100644 --- a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Api/FakeApi.cs +++ b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Api/FakeApi.cs @@ -1313,25 +1313,25 @@ namespace Org.OpenAPITools.Api /// /// Logs exceptions that occur while retrieving the server response /// - /// - /// - /// - private void OnErrorFakeHealthGetDefaultImplementation(Exception exception, string pathFormat, string path) + /// + /// + /// + private void OnErrorFakeHealthGetDefaultImplementation(Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar) { - bool suppressDefaultLog = false; - OnErrorFakeHealthGet(ref suppressDefaultLog, exception, pathFormat, path); - if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while sending the request to the server."); + bool suppressDefaultLogLocalVar = false; + OnErrorFakeHealthGet(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar); + if (!suppressDefaultLogLocalVar) + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling /// - /// - /// - /// - /// - partial void OnErrorFakeHealthGet(ref bool suppressDefaultLog, Exception exception, string pathFormat, string path); + /// + /// + /// + /// + partial void OnErrorFakeHealthGet(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar); /// /// Health check endpoint @@ -1511,27 +1511,27 @@ namespace Org.OpenAPITools.Api /// /// Logs exceptions that occur while retrieving the server response /// - /// - /// - /// + /// + /// + /// /// - private void OnErrorFakeOuterBooleanSerializeDefaultImplementation(Exception exception, string pathFormat, string path, Option body) + private void OnErrorFakeOuterBooleanSerializeDefaultImplementation(Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, Option body) { - bool suppressDefaultLog = false; - OnErrorFakeOuterBooleanSerialize(ref suppressDefaultLog, exception, pathFormat, path, body); - if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while sending the request to the server."); + bool suppressDefaultLogLocalVar = false; + OnErrorFakeOuterBooleanSerialize(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, body); + if (!suppressDefaultLogLocalVar) + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling /// - /// - /// - /// - /// + /// + /// + /// + /// /// - partial void OnErrorFakeOuterBooleanSerialize(ref bool suppressDefaultLog, Exception exception, string pathFormat, string path, Option body); + partial void OnErrorFakeOuterBooleanSerialize(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, Option body); /// /// Test serialization of outer boolean types @@ -1740,27 +1740,27 @@ namespace Org.OpenAPITools.Api /// /// Logs exceptions that occur while retrieving the server response /// - /// - /// - /// + /// + /// + /// /// - private void OnErrorFakeOuterCompositeSerializeDefaultImplementation(Exception exception, string pathFormat, string path, Option outerComposite) + private void OnErrorFakeOuterCompositeSerializeDefaultImplementation(Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, Option outerComposite) { - bool suppressDefaultLog = false; - OnErrorFakeOuterCompositeSerialize(ref suppressDefaultLog, exception, pathFormat, path, outerComposite); - if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while sending the request to the server."); + bool suppressDefaultLogLocalVar = false; + OnErrorFakeOuterCompositeSerialize(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, outerComposite); + if (!suppressDefaultLogLocalVar) + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling /// - /// - /// - /// - /// + /// + /// + /// + /// /// - partial void OnErrorFakeOuterCompositeSerialize(ref bool suppressDefaultLog, Exception exception, string pathFormat, string path, Option outerComposite); + partial void OnErrorFakeOuterCompositeSerialize(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, Option outerComposite); /// /// Test serialization of object with outer number type @@ -1960,27 +1960,27 @@ namespace Org.OpenAPITools.Api /// /// Logs exceptions that occur while retrieving the server response /// - /// - /// - /// + /// + /// + /// /// - private void OnErrorFakeOuterNumberSerializeDefaultImplementation(Exception exception, string pathFormat, string path, Option body) + private void OnErrorFakeOuterNumberSerializeDefaultImplementation(Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, Option body) { - bool suppressDefaultLog = false; - OnErrorFakeOuterNumberSerialize(ref suppressDefaultLog, exception, pathFormat, path, body); - if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while sending the request to the server."); + bool suppressDefaultLogLocalVar = false; + OnErrorFakeOuterNumberSerialize(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, body); + if (!suppressDefaultLogLocalVar) + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling /// - /// - /// - /// - /// + /// + /// + /// + /// /// - partial void OnErrorFakeOuterNumberSerialize(ref bool suppressDefaultLog, Exception exception, string pathFormat, string path, Option body); + partial void OnErrorFakeOuterNumberSerialize(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, Option body); /// /// Test serialization of outer number types @@ -2191,29 +2191,29 @@ namespace Org.OpenAPITools.Api /// /// Logs exceptions that occur while retrieving the server response /// - /// - /// - /// + /// + /// + /// /// /// - private void OnErrorFakeOuterStringSerializeDefaultImplementation(Exception exception, string pathFormat, string path, Guid requiredStringUuid, Option body) + private void OnErrorFakeOuterStringSerializeDefaultImplementation(Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, Guid requiredStringUuid, Option body) { - bool suppressDefaultLog = false; - OnErrorFakeOuterStringSerialize(ref suppressDefaultLog, exception, pathFormat, path, requiredStringUuid, body); - if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while sending the request to the server."); + bool suppressDefaultLogLocalVar = false; + OnErrorFakeOuterStringSerialize(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, requiredStringUuid, body); + if (!suppressDefaultLogLocalVar) + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling /// - /// - /// - /// - /// + /// + /// + /// + /// /// /// - partial void OnErrorFakeOuterStringSerialize(ref bool suppressDefaultLog, Exception exception, string pathFormat, string path, Guid requiredStringUuid, Option body); + partial void OnErrorFakeOuterStringSerialize(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, Guid requiredStringUuid, Option body); /// /// Test serialization of outer string types @@ -2417,25 +2417,25 @@ namespace Org.OpenAPITools.Api /// /// Logs exceptions that occur while retrieving the server response /// - /// - /// - /// - private void OnErrorGetArrayOfEnumsDefaultImplementation(Exception exception, string pathFormat, string path) + /// + /// + /// + private void OnErrorGetArrayOfEnumsDefaultImplementation(Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar) { - bool suppressDefaultLog = false; - OnErrorGetArrayOfEnums(ref suppressDefaultLog, exception, pathFormat, path); - if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while sending the request to the server."); + bool suppressDefaultLogLocalVar = false; + OnErrorGetArrayOfEnums(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar); + if (!suppressDefaultLogLocalVar) + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling /// - /// - /// - /// - /// - partial void OnErrorGetArrayOfEnums(ref bool suppressDefaultLog, Exception exception, string pathFormat, string path); + /// + /// + /// + /// + partial void OnErrorGetArrayOfEnums(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar); /// /// Array of Enums @@ -2611,25 +2611,25 @@ namespace Org.OpenAPITools.Api /// /// Logs exceptions that occur while retrieving the server response /// - /// - /// - /// - private void OnErrorGetMixedAnyOfDefaultImplementation(Exception exception, string pathFormat, string path) + /// + /// + /// + private void OnErrorGetMixedAnyOfDefaultImplementation(Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar) { - bool suppressDefaultLog = false; - OnErrorGetMixedAnyOf(ref suppressDefaultLog, exception, pathFormat, path); - if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while sending the request to the server."); + bool suppressDefaultLogLocalVar = false; + OnErrorGetMixedAnyOf(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar); + if (!suppressDefaultLogLocalVar) + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling /// - /// - /// - /// - /// - partial void OnErrorGetMixedAnyOf(ref bool suppressDefaultLog, Exception exception, string pathFormat, string path); + /// + /// + /// + /// + partial void OnErrorGetMixedAnyOf(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar); /// /// Test mixed type anyOf deserialization @@ -2805,25 +2805,25 @@ namespace Org.OpenAPITools.Api /// /// Logs exceptions that occur while retrieving the server response /// - /// - /// - /// - private void OnErrorGetMixedOneOfDefaultImplementation(Exception exception, string pathFormat, string path) + /// + /// + /// + private void OnErrorGetMixedOneOfDefaultImplementation(Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar) { - bool suppressDefaultLog = false; - OnErrorGetMixedOneOf(ref suppressDefaultLog, exception, pathFormat, path); - if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while sending the request to the server."); + bool suppressDefaultLogLocalVar = false; + OnErrorGetMixedOneOf(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar); + if (!suppressDefaultLogLocalVar) + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling /// - /// - /// - /// - /// - partial void OnErrorGetMixedOneOf(ref bool suppressDefaultLog, Exception exception, string pathFormat, string path); + /// + /// + /// + /// + partial void OnErrorGetMixedOneOf(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar); /// /// Test mixed type oneOf deserialization @@ -3014,27 +3014,27 @@ namespace Org.OpenAPITools.Api /// /// Logs exceptions that occur while retrieving the server response /// - /// - /// - /// + /// + /// + /// /// - private void OnErrorTestAdditionalPropertiesReferenceDefaultImplementation(Exception exception, string pathFormat, string path, Dictionary requestBody) + private void OnErrorTestAdditionalPropertiesReferenceDefaultImplementation(Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, Dictionary requestBody) { - bool suppressDefaultLog = false; - OnErrorTestAdditionalPropertiesReference(ref suppressDefaultLog, exception, pathFormat, path, requestBody); - if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while sending the request to the server."); + bool suppressDefaultLogLocalVar = false; + OnErrorTestAdditionalPropertiesReference(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, requestBody); + if (!suppressDefaultLogLocalVar) + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling /// - /// - /// - /// - /// + /// + /// + /// + /// /// - partial void OnErrorTestAdditionalPropertiesReference(ref bool suppressDefaultLog, Exception exception, string pathFormat, string path, Dictionary requestBody); + partial void OnErrorTestAdditionalPropertiesReference(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, Dictionary requestBody); /// /// test referenced additionalProperties @@ -3203,27 +3203,27 @@ namespace Org.OpenAPITools.Api /// /// Logs exceptions that occur while retrieving the server response /// - /// - /// - /// + /// + /// + /// /// - private void OnErrorTestBodyWithFileSchemaDefaultImplementation(Exception exception, string pathFormat, string path, FileSchemaTestClass fileSchemaTestClass) + private void OnErrorTestBodyWithFileSchemaDefaultImplementation(Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, FileSchemaTestClass fileSchemaTestClass) { - bool suppressDefaultLog = false; - OnErrorTestBodyWithFileSchema(ref suppressDefaultLog, exception, pathFormat, path, fileSchemaTestClass); - if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while sending the request to the server."); + bool suppressDefaultLogLocalVar = false; + OnErrorTestBodyWithFileSchema(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, fileSchemaTestClass); + if (!suppressDefaultLogLocalVar) + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling /// - /// - /// - /// - /// + /// + /// + /// + /// /// - partial void OnErrorTestBodyWithFileSchema(ref bool suppressDefaultLog, Exception exception, string pathFormat, string path, FileSchemaTestClass fileSchemaTestClass); + partial void OnErrorTestBodyWithFileSchema(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, FileSchemaTestClass fileSchemaTestClass); /// /// For this test, the body for this request much reference a schema named `File`. @@ -3398,29 +3398,29 @@ namespace Org.OpenAPITools.Api /// /// Logs exceptions that occur while retrieving the server response /// - /// - /// - /// + /// + /// + /// /// /// - private void OnErrorTestBodyWithQueryParamsDefaultImplementation(Exception exception, string pathFormat, string path, string query, User user) + private void OnErrorTestBodyWithQueryParamsDefaultImplementation(Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, string query, User user) { - bool suppressDefaultLog = false; - OnErrorTestBodyWithQueryParams(ref suppressDefaultLog, exception, pathFormat, path, query, user); - if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while sending the request to the server."); + bool suppressDefaultLogLocalVar = false; + OnErrorTestBodyWithQueryParams(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, query, user); + if (!suppressDefaultLogLocalVar) + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling /// - /// - /// - /// - /// + /// + /// + /// + /// /// /// - partial void OnErrorTestBodyWithQueryParams(ref bool suppressDefaultLog, Exception exception, string pathFormat, string path, string query, User user); + partial void OnErrorTestBodyWithQueryParams(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, string query, User user); /// /// @@ -3597,27 +3597,27 @@ namespace Org.OpenAPITools.Api /// /// Logs exceptions that occur while retrieving the server response /// - /// - /// - /// + /// + /// + /// /// - private void OnErrorTestClientModelDefaultImplementation(Exception exception, string pathFormat, string path, ModelClient modelClient) + private void OnErrorTestClientModelDefaultImplementation(Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, ModelClient modelClient) { - bool suppressDefaultLog = false; - OnErrorTestClientModel(ref suppressDefaultLog, exception, pathFormat, path, modelClient); - if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while sending the request to the server."); + bool suppressDefaultLogLocalVar = false; + OnErrorTestClientModel(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, modelClient); + if (!suppressDefaultLogLocalVar) + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling /// - /// - /// - /// - /// + /// + /// + /// + /// /// - partial void OnErrorTestClientModel(ref bool suppressDefaultLog, Exception exception, string pathFormat, string path, ModelClient modelClient); + partial void OnErrorTestClientModel(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, ModelClient modelClient); /// /// To test \"client\" model To test \"client\" model @@ -3873,9 +3873,9 @@ namespace Org.OpenAPITools.Api /// /// Logs exceptions that occur while retrieving the server response /// - /// - /// - /// + /// + /// + /// /// /// /// @@ -3890,21 +3890,21 @@ namespace Org.OpenAPITools.Api /// /// /// - private void OnErrorTestEndpointParametersDefaultImplementation(Exception exception, string pathFormat, string path, decimal number, string patternWithoutDelimiter, byte[] varByte, double varDouble, Option binary, Option callback, Option date, Option dateTime, Option int32, Option int64, Option integer, Option password, Option varFloat, Option varString) + private void OnErrorTestEndpointParametersDefaultImplementation(Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, decimal number, string patternWithoutDelimiter, byte[] varByte, double varDouble, Option binary, Option callback, Option date, Option dateTime, Option int32, Option int64, Option integer, Option password, Option varFloat, Option varString) { - bool suppressDefaultLog = false; - OnErrorTestEndpointParameters(ref suppressDefaultLog, exception, pathFormat, path, number, patternWithoutDelimiter, varByte, varDouble, binary, callback, date, dateTime, int32, int64, integer, password, varFloat, varString); - if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while sending the request to the server."); + bool suppressDefaultLogLocalVar = false; + OnErrorTestEndpointParameters(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, number, patternWithoutDelimiter, varByte, varDouble, binary, callback, date, dateTime, int32, int64, integer, password, varFloat, varString); + if (!suppressDefaultLogLocalVar) + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling /// - /// - /// - /// - /// + /// + /// + /// + /// /// /// /// @@ -3919,7 +3919,7 @@ namespace Org.OpenAPITools.Api /// /// /// - partial void OnErrorTestEndpointParameters(ref bool suppressDefaultLog, Exception exception, string pathFormat, string path, decimal number, string patternWithoutDelimiter, byte[] varByte, double varDouble, Option binary, Option callback, Option date, Option dateTime, Option int32, Option int64, Option integer, Option password, Option varFloat, Option varString); + partial void OnErrorTestEndpointParameters(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, decimal number, string patternWithoutDelimiter, byte[] varByte, double varDouble, Option binary, Option callback, Option date, Option dateTime, Option int32, Option int64, Option integer, Option password, Option varFloat, Option varString); /// /// Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트 Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트 @@ -4195,9 +4195,9 @@ namespace Org.OpenAPITools.Api /// /// Logs exceptions that occur while retrieving the server response /// - /// - /// - /// + /// + /// + /// /// /// /// @@ -4206,21 +4206,21 @@ namespace Org.OpenAPITools.Api /// /// /// - private void OnErrorTestEnumParametersDefaultImplementation(Exception exception, string pathFormat, string path, Option enumFormString, Option> enumFormStringArray, Option enumHeaderString, Option> enumHeaderStringArray, Option enumQueryDouble, Option enumQueryInteger, Option enumQueryString, Option> enumQueryStringArray) + private void OnErrorTestEnumParametersDefaultImplementation(Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, Option enumFormString, Option> enumFormStringArray, Option enumHeaderString, Option> enumHeaderStringArray, Option enumQueryDouble, Option enumQueryInteger, Option enumQueryString, Option> enumQueryStringArray) { - bool suppressDefaultLog = false; - OnErrorTestEnumParameters(ref suppressDefaultLog, exception, pathFormat, path, enumFormString, enumFormStringArray, enumHeaderString, enumHeaderStringArray, enumQueryDouble, enumQueryInteger, enumQueryString, enumQueryStringArray); - if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while sending the request to the server."); + bool suppressDefaultLogLocalVar = false; + OnErrorTestEnumParameters(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, enumFormString, enumFormStringArray, enumHeaderString, enumHeaderStringArray, enumQueryDouble, enumQueryInteger, enumQueryString, enumQueryStringArray); + if (!suppressDefaultLogLocalVar) + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling /// - /// - /// - /// - /// + /// + /// + /// + /// /// /// /// @@ -4229,7 +4229,7 @@ namespace Org.OpenAPITools.Api /// /// /// - partial void OnErrorTestEnumParameters(ref bool suppressDefaultLog, Exception exception, string pathFormat, string path, Option enumFormString, Option> enumFormStringArray, Option enumHeaderString, Option> enumHeaderStringArray, Option enumQueryDouble, Option enumQueryInteger, Option enumQueryString, Option> enumQueryStringArray); + partial void OnErrorTestEnumParameters(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, Option enumFormString, Option> enumFormStringArray, Option enumHeaderString, Option> enumHeaderStringArray, Option enumQueryDouble, Option enumQueryInteger, Option enumQueryString, Option> enumQueryStringArray); /// /// To test enum parameters To test enum parameters @@ -4447,37 +4447,37 @@ namespace Org.OpenAPITools.Api /// /// Logs exceptions that occur while retrieving the server response /// - /// - /// - /// + /// + /// + /// /// /// /// /// /// /// - private void OnErrorTestGroupParametersDefaultImplementation(Exception exception, string pathFormat, string path, bool requiredBooleanGroup, long requiredInt64Group, int requiredStringGroup, Option booleanGroup, Option int64Group, Option stringGroup) + private void OnErrorTestGroupParametersDefaultImplementation(Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, bool requiredBooleanGroup, long requiredInt64Group, int requiredStringGroup, Option booleanGroup, Option int64Group, Option stringGroup) { - bool suppressDefaultLog = false; - OnErrorTestGroupParameters(ref suppressDefaultLog, exception, pathFormat, path, requiredBooleanGroup, requiredInt64Group, requiredStringGroup, booleanGroup, int64Group, stringGroup); - if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while sending the request to the server."); + bool suppressDefaultLogLocalVar = false; + OnErrorTestGroupParameters(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, requiredBooleanGroup, requiredInt64Group, requiredStringGroup, booleanGroup, int64Group, stringGroup); + if (!suppressDefaultLogLocalVar) + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling /// - /// - /// - /// - /// + /// + /// + /// + /// /// /// /// /// /// /// - partial void OnErrorTestGroupParameters(ref bool suppressDefaultLog, Exception exception, string pathFormat, string path, bool requiredBooleanGroup, long requiredInt64Group, int requiredStringGroup, Option booleanGroup, Option int64Group, Option stringGroup); + partial void OnErrorTestGroupParameters(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, bool requiredBooleanGroup, long requiredInt64Group, int requiredStringGroup, Option booleanGroup, Option int64Group, Option stringGroup); /// /// Fake endpoint to test group parameters (optional) Fake endpoint to test group parameters (optional) @@ -4670,27 +4670,27 @@ namespace Org.OpenAPITools.Api /// /// Logs exceptions that occur while retrieving the server response /// - /// - /// - /// + /// + /// + /// /// - private void OnErrorTestInlineAdditionalPropertiesDefaultImplementation(Exception exception, string pathFormat, string path, Dictionary requestBody) + private void OnErrorTestInlineAdditionalPropertiesDefaultImplementation(Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, Dictionary requestBody) { - bool suppressDefaultLog = false; - OnErrorTestInlineAdditionalProperties(ref suppressDefaultLog, exception, pathFormat, path, requestBody); - if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while sending the request to the server."); + bool suppressDefaultLogLocalVar = false; + OnErrorTestInlineAdditionalProperties(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, requestBody); + if (!suppressDefaultLogLocalVar) + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling /// - /// - /// - /// - /// + /// + /// + /// + /// /// - partial void OnErrorTestInlineAdditionalProperties(ref bool suppressDefaultLog, Exception exception, string pathFormat, string path, Dictionary requestBody); + partial void OnErrorTestInlineAdditionalProperties(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, Dictionary requestBody); /// /// test inline additionalProperties @@ -4859,27 +4859,27 @@ namespace Org.OpenAPITools.Api /// /// Logs exceptions that occur while retrieving the server response /// - /// - /// - /// + /// + /// + /// /// - private void OnErrorTestInlineFreeformAdditionalPropertiesDefaultImplementation(Exception exception, string pathFormat, string path, TestInlineFreeformAdditionalPropertiesRequest testInlineFreeformAdditionalPropertiesRequest) + private void OnErrorTestInlineFreeformAdditionalPropertiesDefaultImplementation(Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, TestInlineFreeformAdditionalPropertiesRequest testInlineFreeformAdditionalPropertiesRequest) { - bool suppressDefaultLog = false; - OnErrorTestInlineFreeformAdditionalProperties(ref suppressDefaultLog, exception, pathFormat, path, testInlineFreeformAdditionalPropertiesRequest); - if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while sending the request to the server."); + bool suppressDefaultLogLocalVar = false; + OnErrorTestInlineFreeformAdditionalProperties(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, testInlineFreeformAdditionalPropertiesRequest); + if (!suppressDefaultLogLocalVar) + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling /// - /// - /// - /// - /// + /// + /// + /// + /// /// - partial void OnErrorTestInlineFreeformAdditionalProperties(ref bool suppressDefaultLog, Exception exception, string pathFormat, string path, TestInlineFreeformAdditionalPropertiesRequest testInlineFreeformAdditionalPropertiesRequest); + partial void OnErrorTestInlineFreeformAdditionalProperties(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, TestInlineFreeformAdditionalPropertiesRequest testInlineFreeformAdditionalPropertiesRequest); /// /// test inline free-form additionalProperties @@ -5054,29 +5054,29 @@ namespace Org.OpenAPITools.Api /// /// Logs exceptions that occur while retrieving the server response /// - /// - /// - /// + /// + /// + /// /// /// - private void OnErrorTestJsonFormDataDefaultImplementation(Exception exception, string pathFormat, string path, string param, string param2) + private void OnErrorTestJsonFormDataDefaultImplementation(Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, string param, string param2) { - bool suppressDefaultLog = false; - OnErrorTestJsonFormData(ref suppressDefaultLog, exception, pathFormat, path, param, param2); - if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while sending the request to the server."); + bool suppressDefaultLogLocalVar = false; + OnErrorTestJsonFormData(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, param, param2); + if (!suppressDefaultLogLocalVar) + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling /// - /// - /// - /// - /// + /// + /// + /// + /// /// /// - partial void OnErrorTestJsonFormData(ref bool suppressDefaultLog, Exception exception, string pathFormat, string path, string param, string param2); + partial void OnErrorTestJsonFormData(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, string param, string param2); /// /// test json serialization of form data @@ -5295,9 +5295,9 @@ namespace Org.OpenAPITools.Api /// /// Logs exceptions that occur while retrieving the server response /// - /// - /// - /// + /// + /// + /// /// /// /// @@ -5307,21 +5307,21 @@ namespace Org.OpenAPITools.Api /// /// /// - private void OnErrorTestQueryParameterCollectionFormatDefaultImplementation(Exception exception, string pathFormat, string path, List context, List http, List ioutil, List pipe, string requiredNotNullable, List url, Option notRequiredNotNullable, Option notRequiredNullable, string requiredNullable) + private void OnErrorTestQueryParameterCollectionFormatDefaultImplementation(Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, List context, List http, List ioutil, List pipe, string requiredNotNullable, List url, Option notRequiredNotNullable, Option notRequiredNullable, string requiredNullable) { - bool suppressDefaultLog = false; - OnErrorTestQueryParameterCollectionFormat(ref suppressDefaultLog, exception, pathFormat, path, context, http, ioutil, pipe, requiredNotNullable, url, notRequiredNotNullable, notRequiredNullable, requiredNullable); - if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while sending the request to the server."); + bool suppressDefaultLogLocalVar = false; + OnErrorTestQueryParameterCollectionFormat(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, context, http, ioutil, pipe, requiredNotNullable, url, notRequiredNotNullable, notRequiredNullable, requiredNullable); + if (!suppressDefaultLogLocalVar) + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling /// - /// - /// - /// - /// + /// + /// + /// + /// /// /// /// @@ -5331,7 +5331,7 @@ namespace Org.OpenAPITools.Api /// /// /// - partial void OnErrorTestQueryParameterCollectionFormat(ref bool suppressDefaultLog, Exception exception, string pathFormat, string path, List context, List http, List ioutil, List pipe, string requiredNotNullable, List url, Option notRequiredNotNullable, Option notRequiredNullable, string requiredNullable); + partial void OnErrorTestQueryParameterCollectionFormat(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, List context, List http, List ioutil, List pipe, string requiredNotNullable, List url, Option notRequiredNotNullable, Option notRequiredNullable, string requiredNullable); /// /// To test the collection format in query parameters @@ -5521,27 +5521,27 @@ namespace Org.OpenAPITools.Api /// /// Logs exceptions that occur while retrieving the server response /// - /// - /// - /// + /// + /// + /// /// - private void OnErrorTestStringMapReferenceDefaultImplementation(Exception exception, string pathFormat, string path, Dictionary requestBody) + private void OnErrorTestStringMapReferenceDefaultImplementation(Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, Dictionary requestBody) { - bool suppressDefaultLog = false; - OnErrorTestStringMapReference(ref suppressDefaultLog, exception, pathFormat, path, requestBody); - if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while sending the request to the server."); + bool suppressDefaultLogLocalVar = false; + OnErrorTestStringMapReference(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, requestBody); + if (!suppressDefaultLogLocalVar) + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling /// - /// - /// - /// - /// + /// + /// + /// + /// /// - partial void OnErrorTestStringMapReference(ref bool suppressDefaultLog, Exception exception, string pathFormat, string path, Dictionary requestBody); + partial void OnErrorTestStringMapReference(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, Dictionary requestBody); /// /// test referenced string map diff --git a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Api/FakeClassnameTags123Api.cs b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Api/FakeClassnameTags123Api.cs index 7ef4632bb3b..a12284afb01 100644 --- a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Api/FakeClassnameTags123Api.cs +++ b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Api/FakeClassnameTags123Api.cs @@ -207,27 +207,27 @@ namespace Org.OpenAPITools.Api /// /// Logs exceptions that occur while retrieving the server response /// - /// - /// - /// + /// + /// + /// /// - private void OnErrorTestClassnameDefaultImplementation(Exception exception, string pathFormat, string path, ModelClient modelClient) + private void OnErrorTestClassnameDefaultImplementation(Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, ModelClient modelClient) { - bool suppressDefaultLog = false; - OnErrorTestClassname(ref suppressDefaultLog, exception, pathFormat, path, modelClient); - if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while sending the request to the server."); + bool suppressDefaultLogLocalVar = false; + OnErrorTestClassname(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, modelClient); + if (!suppressDefaultLogLocalVar) + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling /// - /// - /// - /// - /// + /// + /// + /// + /// /// - partial void OnErrorTestClassname(ref bool suppressDefaultLog, Exception exception, string pathFormat, string path, ModelClient modelClient); + partial void OnErrorTestClassname(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, ModelClient modelClient); /// /// To test class name in snake case To test class name in snake case diff --git a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Api/PetApi.cs b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Api/PetApi.cs index cf04070a014..3361c03e39b 100644 --- a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Api/PetApi.cs +++ b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Api/PetApi.cs @@ -711,27 +711,27 @@ namespace Org.OpenAPITools.Api /// /// Logs exceptions that occur while retrieving the server response /// - /// - /// - /// + /// + /// + /// /// - private void OnErrorAddPetDefaultImplementation(Exception exception, string pathFormat, string path, Pet pet) + private void OnErrorAddPetDefaultImplementation(Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, Pet pet) { - bool suppressDefaultLog = false; - OnErrorAddPet(ref suppressDefaultLog, exception, pathFormat, path, pet); - if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while sending the request to the server."); + bool suppressDefaultLogLocalVar = false; + OnErrorAddPet(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, pet); + if (!suppressDefaultLogLocalVar) + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling /// - /// - /// - /// - /// + /// + /// + /// + /// /// - partial void OnErrorAddPet(ref bool suppressDefaultLog, Exception exception, string pathFormat, string path, Pet pet); + partial void OnErrorAddPet(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, Pet pet); /// /// Add a new pet to the store @@ -924,29 +924,29 @@ namespace Org.OpenAPITools.Api /// /// Logs exceptions that occur while retrieving the server response /// - /// - /// - /// + /// + /// + /// /// /// - private void OnErrorDeletePetDefaultImplementation(Exception exception, string pathFormat, string path, long petId, Option apiKey) + private void OnErrorDeletePetDefaultImplementation(Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, long petId, Option apiKey) { - bool suppressDefaultLog = false; - OnErrorDeletePet(ref suppressDefaultLog, exception, pathFormat, path, petId, apiKey); - if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while sending the request to the server."); + bool suppressDefaultLogLocalVar = false; + OnErrorDeletePet(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, petId, apiKey); + if (!suppressDefaultLogLocalVar) + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling /// - /// - /// - /// - /// + /// + /// + /// + /// /// /// - partial void OnErrorDeletePet(ref bool suppressDefaultLog, Exception exception, string pathFormat, string path, long petId, Option apiKey); + partial void OnErrorDeletePet(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, long petId, Option apiKey); /// /// Deletes a pet @@ -1119,27 +1119,27 @@ namespace Org.OpenAPITools.Api /// /// Logs exceptions that occur while retrieving the server response /// - /// - /// - /// + /// + /// + /// /// - private void OnErrorFindPetsByStatusDefaultImplementation(Exception exception, string pathFormat, string path, List status) + private void OnErrorFindPetsByStatusDefaultImplementation(Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, List status) { - bool suppressDefaultLog = false; - OnErrorFindPetsByStatus(ref suppressDefaultLog, exception, pathFormat, path, status); - if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while sending the request to the server."); + bool suppressDefaultLogLocalVar = false; + OnErrorFindPetsByStatus(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, status); + if (!suppressDefaultLogLocalVar) + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling /// - /// - /// - /// - /// + /// + /// + /// + /// /// - partial void OnErrorFindPetsByStatus(ref bool suppressDefaultLog, Exception exception, string pathFormat, string path, List status); + partial void OnErrorFindPetsByStatus(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, List status); /// /// Finds Pets by status Multiple status values can be provided with comma separated strings @@ -1396,27 +1396,27 @@ namespace Org.OpenAPITools.Api /// /// Logs exceptions that occur while retrieving the server response /// - /// - /// - /// + /// + /// + /// /// - private void OnErrorFindPetsByTagsDefaultImplementation(Exception exception, string pathFormat, string path, List tags) + private void OnErrorFindPetsByTagsDefaultImplementation(Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, List tags) { - bool suppressDefaultLog = false; - OnErrorFindPetsByTags(ref suppressDefaultLog, exception, pathFormat, path, tags); - if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while sending the request to the server."); + bool suppressDefaultLogLocalVar = false; + OnErrorFindPetsByTags(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, tags); + if (!suppressDefaultLogLocalVar) + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling /// - /// - /// - /// - /// + /// + /// + /// + /// /// - partial void OnErrorFindPetsByTags(ref bool suppressDefaultLog, Exception exception, string pathFormat, string path, List tags); + partial void OnErrorFindPetsByTags(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, List tags); /// /// Finds Pets by tags Multiple tags can be provided with comma separated strings. Use tag1, tag2, tag3 for testing. @@ -1636,27 +1636,27 @@ namespace Org.OpenAPITools.Api /// /// Logs exceptions that occur while retrieving the server response /// - /// - /// - /// + /// + /// + /// /// - private void OnErrorGetPetByIdDefaultImplementation(Exception exception, string pathFormat, string path, long petId) + private void OnErrorGetPetByIdDefaultImplementation(Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, long petId) { - bool suppressDefaultLog = false; - OnErrorGetPetById(ref suppressDefaultLog, exception, pathFormat, path, petId); - if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while sending the request to the server."); + bool suppressDefaultLogLocalVar = false; + OnErrorGetPetById(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, petId); + if (!suppressDefaultLogLocalVar) + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling /// - /// - /// - /// - /// + /// + /// + /// + /// /// - partial void OnErrorGetPetById(ref bool suppressDefaultLog, Exception exception, string pathFormat, string path, long petId); + partial void OnErrorGetPetById(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, long petId); /// /// Find pet by ID Returns a single pet @@ -1882,27 +1882,27 @@ namespace Org.OpenAPITools.Api /// /// Logs exceptions that occur while retrieving the server response /// - /// - /// - /// + /// + /// + /// /// - private void OnErrorUpdatePetDefaultImplementation(Exception exception, string pathFormat, string path, Pet pet) + private void OnErrorUpdatePetDefaultImplementation(Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, Pet pet) { - bool suppressDefaultLog = false; - OnErrorUpdatePet(ref suppressDefaultLog, exception, pathFormat, path, pet); - if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while sending the request to the server."); + bool suppressDefaultLogLocalVar = false; + OnErrorUpdatePet(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, pet); + if (!suppressDefaultLogLocalVar) + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling /// - /// - /// - /// - /// + /// + /// + /// + /// /// - partial void OnErrorUpdatePet(ref bool suppressDefaultLog, Exception exception, string pathFormat, string path, Pet pet); + partial void OnErrorUpdatePet(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, Pet pet); /// /// Update an existing pet @@ -2113,31 +2113,31 @@ namespace Org.OpenAPITools.Api /// /// Logs exceptions that occur while retrieving the server response /// - /// - /// - /// + /// + /// + /// /// /// /// - private void OnErrorUpdatePetWithFormDefaultImplementation(Exception exception, string pathFormat, string path, long petId, Option name, Option status) + private void OnErrorUpdatePetWithFormDefaultImplementation(Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, long petId, Option name, Option status) { - bool suppressDefaultLog = false; - OnErrorUpdatePetWithForm(ref suppressDefaultLog, exception, pathFormat, path, petId, name, status); - if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while sending the request to the server."); + bool suppressDefaultLogLocalVar = false; + OnErrorUpdatePetWithForm(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, petId, name, status); + if (!suppressDefaultLogLocalVar) + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling /// - /// - /// - /// - /// + /// + /// + /// + /// /// /// /// - partial void OnErrorUpdatePetWithForm(ref bool suppressDefaultLog, Exception exception, string pathFormat, string path, long petId, Option name, Option status); + partial void OnErrorUpdatePetWithForm(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, long petId, Option name, Option status); /// /// Updates a pet in the store with form data @@ -2338,31 +2338,31 @@ namespace Org.OpenAPITools.Api /// /// Logs exceptions that occur while retrieving the server response /// - /// - /// - /// + /// + /// + /// /// /// /// - private void OnErrorUploadFileDefaultImplementation(Exception exception, string pathFormat, string path, long petId, Option additionalMetadata, Option file) + private void OnErrorUploadFileDefaultImplementation(Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, long petId, Option additionalMetadata, Option file) { - bool suppressDefaultLog = false; - OnErrorUploadFile(ref suppressDefaultLog, exception, pathFormat, path, petId, additionalMetadata, file); - if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while sending the request to the server."); + bool suppressDefaultLogLocalVar = false; + OnErrorUploadFile(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, petId, additionalMetadata, file); + if (!suppressDefaultLogLocalVar) + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling /// - /// - /// - /// - /// + /// + /// + /// + /// /// /// /// - partial void OnErrorUploadFile(ref bool suppressDefaultLog, Exception exception, string pathFormat, string path, long petId, Option additionalMetadata, Option file); + partial void OnErrorUploadFile(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, long petId, Option additionalMetadata, Option file); /// /// uploads an image @@ -2604,31 +2604,31 @@ namespace Org.OpenAPITools.Api /// /// Logs exceptions that occur while retrieving the server response /// - /// - /// - /// + /// + /// + /// /// /// /// - private void OnErrorUploadFileWithRequiredFileDefaultImplementation(Exception exception, string pathFormat, string path, long petId, System.IO.Stream requiredFile, Option additionalMetadata) + private void OnErrorUploadFileWithRequiredFileDefaultImplementation(Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, long petId, System.IO.Stream requiredFile, Option additionalMetadata) { - bool suppressDefaultLog = false; - OnErrorUploadFileWithRequiredFile(ref suppressDefaultLog, exception, pathFormat, path, petId, requiredFile, additionalMetadata); - if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while sending the request to the server."); + bool suppressDefaultLogLocalVar = false; + OnErrorUploadFileWithRequiredFile(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, petId, requiredFile, additionalMetadata); + if (!suppressDefaultLogLocalVar) + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling /// - /// - /// - /// - /// + /// + /// + /// + /// /// /// /// - partial void OnErrorUploadFileWithRequiredFile(ref bool suppressDefaultLog, Exception exception, string pathFormat, string path, long petId, System.IO.Stream requiredFile, Option additionalMetadata); + partial void OnErrorUploadFileWithRequiredFile(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, long petId, System.IO.Stream requiredFile, Option additionalMetadata); /// /// uploads an image (required) diff --git a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Api/StoreApi.cs b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Api/StoreApi.cs index f99d2c20a16..b3cd5adcbcc 100644 --- a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Api/StoreApi.cs +++ b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Api/StoreApi.cs @@ -394,27 +394,27 @@ namespace Org.OpenAPITools.Api /// /// Logs exceptions that occur while retrieving the server response /// - /// - /// - /// + /// + /// + /// /// - private void OnErrorDeleteOrderDefaultImplementation(Exception exception, string pathFormat, string path, string orderId) + private void OnErrorDeleteOrderDefaultImplementation(Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, string orderId) { - bool suppressDefaultLog = false; - OnErrorDeleteOrder(ref suppressDefaultLog, exception, pathFormat, path, orderId); - if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while sending the request to the server."); + bool suppressDefaultLogLocalVar = false; + OnErrorDeleteOrder(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, orderId); + if (!suppressDefaultLogLocalVar) + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling /// - /// - /// - /// - /// + /// + /// + /// + /// /// - partial void OnErrorDeleteOrder(ref bool suppressDefaultLog, Exception exception, string pathFormat, string path, string orderId); + partial void OnErrorDeleteOrder(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, string orderId); /// /// Delete purchase order by ID For valid response try integer IDs with value < 1000. Anything above 1000 or nonintegers will generate API errors @@ -562,25 +562,25 @@ namespace Org.OpenAPITools.Api /// /// Logs exceptions that occur while retrieving the server response /// - /// - /// - /// - private void OnErrorGetInventoryDefaultImplementation(Exception exception, string pathFormat, string path) + /// + /// + /// + private void OnErrorGetInventoryDefaultImplementation(Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar) { - bool suppressDefaultLog = false; - OnErrorGetInventory(ref suppressDefaultLog, exception, pathFormat, path); - if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while sending the request to the server."); + bool suppressDefaultLogLocalVar = false; + OnErrorGetInventory(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar); + if (!suppressDefaultLogLocalVar) + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling /// - /// - /// - /// - /// - partial void OnErrorGetInventory(ref bool suppressDefaultLog, Exception exception, string pathFormat, string path); + /// + /// + /// + /// + partial void OnErrorGetInventory(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar); /// /// Returns pet inventories by status Returns a map of status codes to quantities @@ -769,27 +769,27 @@ namespace Org.OpenAPITools.Api /// /// Logs exceptions that occur while retrieving the server response /// - /// - /// - /// + /// + /// + /// /// - private void OnErrorGetOrderByIdDefaultImplementation(Exception exception, string pathFormat, string path, long orderId) + private void OnErrorGetOrderByIdDefaultImplementation(Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, long orderId) { - bool suppressDefaultLog = false; - OnErrorGetOrderById(ref suppressDefaultLog, exception, pathFormat, path, orderId); - if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while sending the request to the server."); + bool suppressDefaultLogLocalVar = false; + OnErrorGetOrderById(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, orderId); + if (!suppressDefaultLogLocalVar) + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling /// - /// - /// - /// - /// + /// + /// + /// + /// /// - partial void OnErrorGetOrderById(ref bool suppressDefaultLog, Exception exception, string pathFormat, string path, long orderId); + partial void OnErrorGetOrderById(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, long orderId); /// /// Find purchase order by ID For valid response try integer IDs with value <= 5 or > 10. Other values will generate exceptions @@ -998,27 +998,27 @@ namespace Org.OpenAPITools.Api /// /// Logs exceptions that occur while retrieving the server response /// - /// - /// - /// + /// + /// + /// /// - private void OnErrorPlaceOrderDefaultImplementation(Exception exception, string pathFormat, string path, Order order) + private void OnErrorPlaceOrderDefaultImplementation(Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, Order order) { - bool suppressDefaultLog = false; - OnErrorPlaceOrder(ref suppressDefaultLog, exception, pathFormat, path, order); - if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while sending the request to the server."); + bool suppressDefaultLogLocalVar = false; + OnErrorPlaceOrder(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, order); + if (!suppressDefaultLogLocalVar) + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling /// - /// - /// - /// - /// + /// + /// + /// + /// /// - partial void OnErrorPlaceOrder(ref bool suppressDefaultLog, Exception exception, string pathFormat, string path, Order order); + partial void OnErrorPlaceOrder(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, Order order); /// /// Place an order for a pet diff --git a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Api/UserApi.cs b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Api/UserApi.cs index b84ef2f23b5..788e681d73c 100644 --- a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Api/UserApi.cs +++ b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Api/UserApi.cs @@ -644,27 +644,27 @@ namespace Org.OpenAPITools.Api /// /// Logs exceptions that occur while retrieving the server response /// - /// - /// - /// + /// + /// + /// /// - private void OnErrorCreateUserDefaultImplementation(Exception exception, string pathFormat, string path, User user) + private void OnErrorCreateUserDefaultImplementation(Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, User user) { - bool suppressDefaultLog = false; - OnErrorCreateUser(ref suppressDefaultLog, exception, pathFormat, path, user); - if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while sending the request to the server."); + bool suppressDefaultLogLocalVar = false; + OnErrorCreateUser(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, user); + if (!suppressDefaultLogLocalVar) + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling /// - /// - /// - /// - /// + /// + /// + /// + /// /// - partial void OnErrorCreateUser(ref bool suppressDefaultLog, Exception exception, string pathFormat, string path, User user); + partial void OnErrorCreateUser(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, User user); /// /// Create user This can only be done by the logged in user. @@ -833,27 +833,27 @@ namespace Org.OpenAPITools.Api /// /// Logs exceptions that occur while retrieving the server response /// - /// - /// - /// + /// + /// + /// /// - private void OnErrorCreateUsersWithArrayInputDefaultImplementation(Exception exception, string pathFormat, string path, List user) + private void OnErrorCreateUsersWithArrayInputDefaultImplementation(Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, List user) { - bool suppressDefaultLog = false; - OnErrorCreateUsersWithArrayInput(ref suppressDefaultLog, exception, pathFormat, path, user); - if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while sending the request to the server."); + bool suppressDefaultLogLocalVar = false; + OnErrorCreateUsersWithArrayInput(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, user); + if (!suppressDefaultLogLocalVar) + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling /// - /// - /// - /// - /// + /// + /// + /// + /// /// - partial void OnErrorCreateUsersWithArrayInput(ref bool suppressDefaultLog, Exception exception, string pathFormat, string path, List user); + partial void OnErrorCreateUsersWithArrayInput(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, List user); /// /// Creates list of users with given input array @@ -1022,27 +1022,27 @@ namespace Org.OpenAPITools.Api /// /// Logs exceptions that occur while retrieving the server response /// - /// - /// - /// + /// + /// + /// /// - private void OnErrorCreateUsersWithListInputDefaultImplementation(Exception exception, string pathFormat, string path, List user) + private void OnErrorCreateUsersWithListInputDefaultImplementation(Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, List user) { - bool suppressDefaultLog = false; - OnErrorCreateUsersWithListInput(ref suppressDefaultLog, exception, pathFormat, path, user); - if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while sending the request to the server."); + bool suppressDefaultLogLocalVar = false; + OnErrorCreateUsersWithListInput(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, user); + if (!suppressDefaultLogLocalVar) + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling /// - /// - /// - /// - /// + /// + /// + /// + /// /// - partial void OnErrorCreateUsersWithListInput(ref bool suppressDefaultLog, Exception exception, string pathFormat, string path, List user); + partial void OnErrorCreateUsersWithListInput(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, List user); /// /// Creates list of users with given input array @@ -1211,27 +1211,27 @@ namespace Org.OpenAPITools.Api /// /// Logs exceptions that occur while retrieving the server response /// - /// - /// - /// + /// + /// + /// /// - private void OnErrorDeleteUserDefaultImplementation(Exception exception, string pathFormat, string path, string username) + private void OnErrorDeleteUserDefaultImplementation(Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, string username) { - bool suppressDefaultLog = false; - OnErrorDeleteUser(ref suppressDefaultLog, exception, pathFormat, path, username); - if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while sending the request to the server."); + bool suppressDefaultLogLocalVar = false; + OnErrorDeleteUser(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, username); + if (!suppressDefaultLogLocalVar) + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling /// - /// - /// - /// - /// + /// + /// + /// + /// /// - partial void OnErrorDeleteUser(ref bool suppressDefaultLog, Exception exception, string pathFormat, string path, string username); + partial void OnErrorDeleteUser(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, string username); /// /// Delete user This can only be done by the logged in user. @@ -1394,27 +1394,27 @@ namespace Org.OpenAPITools.Api /// /// Logs exceptions that occur while retrieving the server response /// - /// - /// - /// + /// + /// + /// /// - private void OnErrorGetUserByNameDefaultImplementation(Exception exception, string pathFormat, string path, string username) + private void OnErrorGetUserByNameDefaultImplementation(Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, string username) { - bool suppressDefaultLog = false; - OnErrorGetUserByName(ref suppressDefaultLog, exception, pathFormat, path, username); - if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while sending the request to the server."); + bool suppressDefaultLogLocalVar = false; + OnErrorGetUserByName(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, username); + if (!suppressDefaultLogLocalVar) + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling /// - /// - /// - /// - /// + /// + /// + /// + /// /// - partial void OnErrorGetUserByName(ref bool suppressDefaultLog, Exception exception, string pathFormat, string path, string username); + partial void OnErrorGetUserByName(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, string username); /// /// Get user by user name @@ -1675,29 +1675,29 @@ namespace Org.OpenAPITools.Api /// /// Logs exceptions that occur while retrieving the server response /// - /// - /// - /// + /// + /// + /// /// /// - private void OnErrorLoginUserDefaultImplementation(Exception exception, string pathFormat, string path, string password, string username) + private void OnErrorLoginUserDefaultImplementation(Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, string password, string username) { - bool suppressDefaultLog = false; - OnErrorLoginUser(ref suppressDefaultLog, exception, pathFormat, path, password, username); - if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while sending the request to the server."); + bool suppressDefaultLogLocalVar = false; + OnErrorLoginUser(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, password, username); + if (!suppressDefaultLogLocalVar) + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling /// - /// - /// - /// - /// + /// + /// + /// + /// /// /// - partial void OnErrorLoginUser(ref bool suppressDefaultLog, Exception exception, string pathFormat, string path, string password, string username); + partial void OnErrorLoginUser(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, string password, string username); /// /// Logs user into the system @@ -1922,25 +1922,25 @@ namespace Org.OpenAPITools.Api /// /// Logs exceptions that occur while retrieving the server response /// - /// - /// - /// - private void OnErrorLogoutUserDefaultImplementation(Exception exception, string pathFormat, string path) + /// + /// + /// + private void OnErrorLogoutUserDefaultImplementation(Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar) { - bool suppressDefaultLog = false; - OnErrorLogoutUser(ref suppressDefaultLog, exception, pathFormat, path); - if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while sending the request to the server."); + bool suppressDefaultLogLocalVar = false; + OnErrorLogoutUser(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar); + if (!suppressDefaultLogLocalVar) + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling /// - /// - /// - /// - /// - partial void OnErrorLogoutUser(ref bool suppressDefaultLog, Exception exception, string pathFormat, string path); + /// + /// + /// + /// + partial void OnErrorLogoutUser(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar); /// /// Logs out current logged in user session @@ -2096,29 +2096,29 @@ namespace Org.OpenAPITools.Api /// /// Logs exceptions that occur while retrieving the server response /// - /// - /// - /// + /// + /// + /// /// /// - private void OnErrorUpdateUserDefaultImplementation(Exception exception, string pathFormat, string path, User user, string username) + private void OnErrorUpdateUserDefaultImplementation(Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, User user, string username) { - bool suppressDefaultLog = false; - OnErrorUpdateUser(ref suppressDefaultLog, exception, pathFormat, path, user, username); - if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while sending the request to the server."); + bool suppressDefaultLogLocalVar = false; + OnErrorUpdateUser(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, user, username); + if (!suppressDefaultLogLocalVar) + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling /// - /// - /// - /// - /// + /// + /// + /// + /// /// /// - partial void OnErrorUpdateUser(ref bool suppressDefaultLog, Exception exception, string pathFormat, string path, User user, string username); + partial void OnErrorUpdateUser(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, User user, string username); /// /// Updated user This can only be done by the logged in user. diff --git a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Api/AnotherFakeApi.cs b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Api/AnotherFakeApi.cs index 44685c0c518..a34c828167b 100644 --- a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Api/AnotherFakeApi.cs +++ b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Api/AnotherFakeApi.cs @@ -209,27 +209,27 @@ namespace Org.OpenAPITools.Api /// /// Logs exceptions that occur while retrieving the server response /// - /// - /// - /// + /// + /// + /// /// - private void OnErrorCall123TestSpecialTagsDefaultImplementation(Exception exception, string pathFormat, string path, ModelClient modelClient) + private void OnErrorCall123TestSpecialTagsDefaultImplementation(Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, ModelClient modelClient) { - bool suppressDefaultLog = false; - OnErrorCall123TestSpecialTags(ref suppressDefaultLog, exception, pathFormat, path, modelClient); - if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while sending the request to the server."); + bool suppressDefaultLogLocalVar = false; + OnErrorCall123TestSpecialTags(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, modelClient); + if (!suppressDefaultLogLocalVar) + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling /// - /// - /// - /// - /// + /// + /// + /// + /// /// - partial void OnErrorCall123TestSpecialTags(ref bool suppressDefaultLog, Exception exception, string pathFormat, string path, ModelClient modelClient); + partial void OnErrorCall123TestSpecialTags(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, ModelClient modelClient); /// /// To test special tags To test special tags and operation ID starting with number diff --git a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Api/DefaultApi.cs b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Api/DefaultApi.cs index 9155e957e8d..cced9ce3479 100644 --- a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Api/DefaultApi.cs +++ b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Api/DefaultApi.cs @@ -406,25 +406,25 @@ namespace Org.OpenAPITools.Api /// /// Logs exceptions that occur while retrieving the server response /// - /// - /// - /// - private void OnErrorFooGetDefaultImplementation(Exception exception, string pathFormat, string path) + /// + /// + /// + private void OnErrorFooGetDefaultImplementation(Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar) { - bool suppressDefaultLog = false; - OnErrorFooGet(ref suppressDefaultLog, exception, pathFormat, path); - if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while sending the request to the server."); + bool suppressDefaultLogLocalVar = false; + OnErrorFooGet(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar); + if (!suppressDefaultLogLocalVar) + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling /// - /// - /// - /// - /// - partial void OnErrorFooGet(ref bool suppressDefaultLog, Exception exception, string pathFormat, string path); + /// + /// + /// + /// + partial void OnErrorFooGet(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar); /// /// @@ -615,27 +615,27 @@ namespace Org.OpenAPITools.Api /// /// Logs exceptions that occur while retrieving the server response /// - /// - /// - /// + /// + /// + /// /// - private void OnErrorGetCountryDefaultImplementation(Exception exception, string pathFormat, string path, string country) + private void OnErrorGetCountryDefaultImplementation(Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, string country) { - bool suppressDefaultLog = false; - OnErrorGetCountry(ref suppressDefaultLog, exception, pathFormat, path, country); - if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while sending the request to the server."); + bool suppressDefaultLogLocalVar = false; + OnErrorGetCountry(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, country); + if (!suppressDefaultLogLocalVar) + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling /// - /// - /// - /// - /// + /// + /// + /// + /// /// - partial void OnErrorGetCountry(ref bool suppressDefaultLog, Exception exception, string pathFormat, string path, string country); + partial void OnErrorGetCountry(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, string country); /// /// @@ -795,25 +795,25 @@ namespace Org.OpenAPITools.Api /// /// Logs exceptions that occur while retrieving the server response /// - /// - /// - /// - private void OnErrorHelloDefaultImplementation(Exception exception, string pathFormat, string path) + /// + /// + /// + private void OnErrorHelloDefaultImplementation(Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar) { - bool suppressDefaultLog = false; - OnErrorHello(ref suppressDefaultLog, exception, pathFormat, path); - if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while sending the request to the server."); + bool suppressDefaultLogLocalVar = false; + OnErrorHello(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar); + if (!suppressDefaultLogLocalVar) + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling /// - /// - /// - /// - /// - partial void OnErrorHello(ref bool suppressDefaultLog, Exception exception, string pathFormat, string path); + /// + /// + /// + /// + partial void OnErrorHello(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar); /// /// Hello Hello @@ -989,25 +989,25 @@ namespace Org.OpenAPITools.Api /// /// Logs exceptions that occur while retrieving the server response /// - /// - /// - /// - private void OnErrorRolesReportGetDefaultImplementation(Exception exception, string pathFormat, string path) + /// + /// + /// + private void OnErrorRolesReportGetDefaultImplementation(Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar) { - bool suppressDefaultLog = false; - OnErrorRolesReportGet(ref suppressDefaultLog, exception, pathFormat, path); - if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while sending the request to the server."); + bool suppressDefaultLogLocalVar = false; + OnErrorRolesReportGet(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar); + if (!suppressDefaultLogLocalVar) + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling /// - /// - /// - /// - /// - partial void OnErrorRolesReportGet(ref bool suppressDefaultLog, Exception exception, string pathFormat, string path); + /// + /// + /// + /// + partial void OnErrorRolesReportGet(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar); /// /// @@ -1183,25 +1183,25 @@ namespace Org.OpenAPITools.Api /// /// Logs exceptions that occur while retrieving the server response /// - /// - /// - /// - private void OnErrorTestDefaultImplementation(Exception exception, string pathFormat, string path) + /// + /// + /// + private void OnErrorTestDefaultImplementation(Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar) { - bool suppressDefaultLog = false; - OnErrorTest(ref suppressDefaultLog, exception, pathFormat, path); - if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while sending the request to the server."); + bool suppressDefaultLogLocalVar = false; + OnErrorTest(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar); + if (!suppressDefaultLogLocalVar) + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling /// - /// - /// - /// - /// - partial void OnErrorTest(ref bool suppressDefaultLog, Exception exception, string pathFormat, string path); + /// + /// + /// + /// + partial void OnErrorTest(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar); /// /// Retrieve an existing Notificationtest's Elements diff --git a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Api/FakeApi.cs b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Api/FakeApi.cs index aeabdca0e02..39b422f6f7f 100644 --- a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Api/FakeApi.cs +++ b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Api/FakeApi.cs @@ -1315,25 +1315,25 @@ namespace Org.OpenAPITools.Api /// /// Logs exceptions that occur while retrieving the server response /// - /// - /// - /// - private void OnErrorFakeHealthGetDefaultImplementation(Exception exception, string pathFormat, string path) + /// + /// + /// + private void OnErrorFakeHealthGetDefaultImplementation(Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar) { - bool suppressDefaultLog = false; - OnErrorFakeHealthGet(ref suppressDefaultLog, exception, pathFormat, path); - if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while sending the request to the server."); + bool suppressDefaultLogLocalVar = false; + OnErrorFakeHealthGet(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar); + if (!suppressDefaultLogLocalVar) + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling /// - /// - /// - /// - /// - partial void OnErrorFakeHealthGet(ref bool suppressDefaultLog, Exception exception, string pathFormat, string path); + /// + /// + /// + /// + partial void OnErrorFakeHealthGet(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar); /// /// Health check endpoint @@ -1513,27 +1513,27 @@ namespace Org.OpenAPITools.Api /// /// Logs exceptions that occur while retrieving the server response /// - /// - /// - /// + /// + /// + /// /// - private void OnErrorFakeOuterBooleanSerializeDefaultImplementation(Exception exception, string pathFormat, string path, Option body) + private void OnErrorFakeOuterBooleanSerializeDefaultImplementation(Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, Option body) { - bool suppressDefaultLog = false; - OnErrorFakeOuterBooleanSerialize(ref suppressDefaultLog, exception, pathFormat, path, body); - if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while sending the request to the server."); + bool suppressDefaultLogLocalVar = false; + OnErrorFakeOuterBooleanSerialize(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, body); + if (!suppressDefaultLogLocalVar) + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling /// - /// - /// - /// - /// + /// + /// + /// + /// /// - partial void OnErrorFakeOuterBooleanSerialize(ref bool suppressDefaultLog, Exception exception, string pathFormat, string path, Option body); + partial void OnErrorFakeOuterBooleanSerialize(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, Option body); /// /// Test serialization of outer boolean types @@ -1742,27 +1742,27 @@ namespace Org.OpenAPITools.Api /// /// Logs exceptions that occur while retrieving the server response /// - /// - /// - /// + /// + /// + /// /// - private void OnErrorFakeOuterCompositeSerializeDefaultImplementation(Exception exception, string pathFormat, string path, Option outerComposite) + private void OnErrorFakeOuterCompositeSerializeDefaultImplementation(Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, Option outerComposite) { - bool suppressDefaultLog = false; - OnErrorFakeOuterCompositeSerialize(ref suppressDefaultLog, exception, pathFormat, path, outerComposite); - if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while sending the request to the server."); + bool suppressDefaultLogLocalVar = false; + OnErrorFakeOuterCompositeSerialize(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, outerComposite); + if (!suppressDefaultLogLocalVar) + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling /// - /// - /// - /// - /// + /// + /// + /// + /// /// - partial void OnErrorFakeOuterCompositeSerialize(ref bool suppressDefaultLog, Exception exception, string pathFormat, string path, Option outerComposite); + partial void OnErrorFakeOuterCompositeSerialize(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, Option outerComposite); /// /// Test serialization of object with outer number type @@ -1962,27 +1962,27 @@ namespace Org.OpenAPITools.Api /// /// Logs exceptions that occur while retrieving the server response /// - /// - /// - /// + /// + /// + /// /// - private void OnErrorFakeOuterNumberSerializeDefaultImplementation(Exception exception, string pathFormat, string path, Option body) + private void OnErrorFakeOuterNumberSerializeDefaultImplementation(Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, Option body) { - bool suppressDefaultLog = false; - OnErrorFakeOuterNumberSerialize(ref suppressDefaultLog, exception, pathFormat, path, body); - if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while sending the request to the server."); + bool suppressDefaultLogLocalVar = false; + OnErrorFakeOuterNumberSerialize(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, body); + if (!suppressDefaultLogLocalVar) + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling /// - /// - /// - /// - /// + /// + /// + /// + /// /// - partial void OnErrorFakeOuterNumberSerialize(ref bool suppressDefaultLog, Exception exception, string pathFormat, string path, Option body); + partial void OnErrorFakeOuterNumberSerialize(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, Option body); /// /// Test serialization of outer number types @@ -2193,29 +2193,29 @@ namespace Org.OpenAPITools.Api /// /// Logs exceptions that occur while retrieving the server response /// - /// - /// - /// + /// + /// + /// /// /// - private void OnErrorFakeOuterStringSerializeDefaultImplementation(Exception exception, string pathFormat, string path, Guid requiredStringUuid, Option body) + private void OnErrorFakeOuterStringSerializeDefaultImplementation(Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, Guid requiredStringUuid, Option body) { - bool suppressDefaultLog = false; - OnErrorFakeOuterStringSerialize(ref suppressDefaultLog, exception, pathFormat, path, requiredStringUuid, body); - if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while sending the request to the server."); + bool suppressDefaultLogLocalVar = false; + OnErrorFakeOuterStringSerialize(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, requiredStringUuid, body); + if (!suppressDefaultLogLocalVar) + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling /// - /// - /// - /// - /// + /// + /// + /// + /// /// /// - partial void OnErrorFakeOuterStringSerialize(ref bool suppressDefaultLog, Exception exception, string pathFormat, string path, Guid requiredStringUuid, Option body); + partial void OnErrorFakeOuterStringSerialize(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, Guid requiredStringUuid, Option body); /// /// Test serialization of outer string types @@ -2419,25 +2419,25 @@ namespace Org.OpenAPITools.Api /// /// Logs exceptions that occur while retrieving the server response /// - /// - /// - /// - private void OnErrorGetArrayOfEnumsDefaultImplementation(Exception exception, string pathFormat, string path) + /// + /// + /// + private void OnErrorGetArrayOfEnumsDefaultImplementation(Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar) { - bool suppressDefaultLog = false; - OnErrorGetArrayOfEnums(ref suppressDefaultLog, exception, pathFormat, path); - if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while sending the request to the server."); + bool suppressDefaultLogLocalVar = false; + OnErrorGetArrayOfEnums(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar); + if (!suppressDefaultLogLocalVar) + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling /// - /// - /// - /// - /// - partial void OnErrorGetArrayOfEnums(ref bool suppressDefaultLog, Exception exception, string pathFormat, string path); + /// + /// + /// + /// + partial void OnErrorGetArrayOfEnums(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar); /// /// Array of Enums @@ -2613,25 +2613,25 @@ namespace Org.OpenAPITools.Api /// /// Logs exceptions that occur while retrieving the server response /// - /// - /// - /// - private void OnErrorGetMixedAnyOfDefaultImplementation(Exception exception, string pathFormat, string path) + /// + /// + /// + private void OnErrorGetMixedAnyOfDefaultImplementation(Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar) { - bool suppressDefaultLog = false; - OnErrorGetMixedAnyOf(ref suppressDefaultLog, exception, pathFormat, path); - if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while sending the request to the server."); + bool suppressDefaultLogLocalVar = false; + OnErrorGetMixedAnyOf(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar); + if (!suppressDefaultLogLocalVar) + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling /// - /// - /// - /// - /// - partial void OnErrorGetMixedAnyOf(ref bool suppressDefaultLog, Exception exception, string pathFormat, string path); + /// + /// + /// + /// + partial void OnErrorGetMixedAnyOf(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar); /// /// Test mixed type anyOf deserialization @@ -2807,25 +2807,25 @@ namespace Org.OpenAPITools.Api /// /// Logs exceptions that occur while retrieving the server response /// - /// - /// - /// - private void OnErrorGetMixedOneOfDefaultImplementation(Exception exception, string pathFormat, string path) + /// + /// + /// + private void OnErrorGetMixedOneOfDefaultImplementation(Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar) { - bool suppressDefaultLog = false; - OnErrorGetMixedOneOf(ref suppressDefaultLog, exception, pathFormat, path); - if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while sending the request to the server."); + bool suppressDefaultLogLocalVar = false; + OnErrorGetMixedOneOf(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar); + if (!suppressDefaultLogLocalVar) + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling /// - /// - /// - /// - /// - partial void OnErrorGetMixedOneOf(ref bool suppressDefaultLog, Exception exception, string pathFormat, string path); + /// + /// + /// + /// + partial void OnErrorGetMixedOneOf(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar); /// /// Test mixed type oneOf deserialization @@ -3016,27 +3016,27 @@ namespace Org.OpenAPITools.Api /// /// Logs exceptions that occur while retrieving the server response /// - /// - /// - /// + /// + /// + /// /// - private void OnErrorTestAdditionalPropertiesReferenceDefaultImplementation(Exception exception, string pathFormat, string path, Dictionary requestBody) + private void OnErrorTestAdditionalPropertiesReferenceDefaultImplementation(Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, Dictionary requestBody) { - bool suppressDefaultLog = false; - OnErrorTestAdditionalPropertiesReference(ref suppressDefaultLog, exception, pathFormat, path, requestBody); - if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while sending the request to the server."); + bool suppressDefaultLogLocalVar = false; + OnErrorTestAdditionalPropertiesReference(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, requestBody); + if (!suppressDefaultLogLocalVar) + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling /// - /// - /// - /// - /// + /// + /// + /// + /// /// - partial void OnErrorTestAdditionalPropertiesReference(ref bool suppressDefaultLog, Exception exception, string pathFormat, string path, Dictionary requestBody); + partial void OnErrorTestAdditionalPropertiesReference(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, Dictionary requestBody); /// /// test referenced additionalProperties @@ -3205,27 +3205,27 @@ namespace Org.OpenAPITools.Api /// /// Logs exceptions that occur while retrieving the server response /// - /// - /// - /// + /// + /// + /// /// - private void OnErrorTestBodyWithFileSchemaDefaultImplementation(Exception exception, string pathFormat, string path, FileSchemaTestClass fileSchemaTestClass) + private void OnErrorTestBodyWithFileSchemaDefaultImplementation(Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, FileSchemaTestClass fileSchemaTestClass) { - bool suppressDefaultLog = false; - OnErrorTestBodyWithFileSchema(ref suppressDefaultLog, exception, pathFormat, path, fileSchemaTestClass); - if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while sending the request to the server."); + bool suppressDefaultLogLocalVar = false; + OnErrorTestBodyWithFileSchema(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, fileSchemaTestClass); + if (!suppressDefaultLogLocalVar) + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling /// - /// - /// - /// - /// + /// + /// + /// + /// /// - partial void OnErrorTestBodyWithFileSchema(ref bool suppressDefaultLog, Exception exception, string pathFormat, string path, FileSchemaTestClass fileSchemaTestClass); + partial void OnErrorTestBodyWithFileSchema(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, FileSchemaTestClass fileSchemaTestClass); /// /// For this test, the body for this request much reference a schema named `File`. @@ -3400,29 +3400,29 @@ namespace Org.OpenAPITools.Api /// /// Logs exceptions that occur while retrieving the server response /// - /// - /// - /// + /// + /// + /// /// /// - private void OnErrorTestBodyWithQueryParamsDefaultImplementation(Exception exception, string pathFormat, string path, string query, User user) + private void OnErrorTestBodyWithQueryParamsDefaultImplementation(Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, string query, User user) { - bool suppressDefaultLog = false; - OnErrorTestBodyWithQueryParams(ref suppressDefaultLog, exception, pathFormat, path, query, user); - if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while sending the request to the server."); + bool suppressDefaultLogLocalVar = false; + OnErrorTestBodyWithQueryParams(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, query, user); + if (!suppressDefaultLogLocalVar) + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling /// - /// - /// - /// - /// + /// + /// + /// + /// /// /// - partial void OnErrorTestBodyWithQueryParams(ref bool suppressDefaultLog, Exception exception, string pathFormat, string path, string query, User user); + partial void OnErrorTestBodyWithQueryParams(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, string query, User user); /// /// @@ -3599,27 +3599,27 @@ namespace Org.OpenAPITools.Api /// /// Logs exceptions that occur while retrieving the server response /// - /// - /// - /// + /// + /// + /// /// - private void OnErrorTestClientModelDefaultImplementation(Exception exception, string pathFormat, string path, ModelClient modelClient) + private void OnErrorTestClientModelDefaultImplementation(Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, ModelClient modelClient) { - bool suppressDefaultLog = false; - OnErrorTestClientModel(ref suppressDefaultLog, exception, pathFormat, path, modelClient); - if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while sending the request to the server."); + bool suppressDefaultLogLocalVar = false; + OnErrorTestClientModel(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, modelClient); + if (!suppressDefaultLogLocalVar) + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling /// - /// - /// - /// - /// + /// + /// + /// + /// /// - partial void OnErrorTestClientModel(ref bool suppressDefaultLog, Exception exception, string pathFormat, string path, ModelClient modelClient); + partial void OnErrorTestClientModel(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, ModelClient modelClient); /// /// To test \"client\" model To test \"client\" model @@ -3875,9 +3875,9 @@ namespace Org.OpenAPITools.Api /// /// Logs exceptions that occur while retrieving the server response /// - /// - /// - /// + /// + /// + /// /// /// /// @@ -3892,21 +3892,21 @@ namespace Org.OpenAPITools.Api /// /// /// - private void OnErrorTestEndpointParametersDefaultImplementation(Exception exception, string pathFormat, string path, decimal number, string patternWithoutDelimiter, byte[] varByte, double varDouble, Option binary, Option callback, Option date, Option dateTime, Option int32, Option int64, Option integer, Option password, Option varFloat, Option varString) + private void OnErrorTestEndpointParametersDefaultImplementation(Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, decimal number, string patternWithoutDelimiter, byte[] varByte, double varDouble, Option binary, Option callback, Option date, Option dateTime, Option int32, Option int64, Option integer, Option password, Option varFloat, Option varString) { - bool suppressDefaultLog = false; - OnErrorTestEndpointParameters(ref suppressDefaultLog, exception, pathFormat, path, number, patternWithoutDelimiter, varByte, varDouble, binary, callback, date, dateTime, int32, int64, integer, password, varFloat, varString); - if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while sending the request to the server."); + bool suppressDefaultLogLocalVar = false; + OnErrorTestEndpointParameters(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, number, patternWithoutDelimiter, varByte, varDouble, binary, callback, date, dateTime, int32, int64, integer, password, varFloat, varString); + if (!suppressDefaultLogLocalVar) + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling /// - /// - /// - /// - /// + /// + /// + /// + /// /// /// /// @@ -3921,7 +3921,7 @@ namespace Org.OpenAPITools.Api /// /// /// - partial void OnErrorTestEndpointParameters(ref bool suppressDefaultLog, Exception exception, string pathFormat, string path, decimal number, string patternWithoutDelimiter, byte[] varByte, double varDouble, Option binary, Option callback, Option date, Option dateTime, Option int32, Option int64, Option integer, Option password, Option varFloat, Option varString); + partial void OnErrorTestEndpointParameters(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, decimal number, string patternWithoutDelimiter, byte[] varByte, double varDouble, Option binary, Option callback, Option date, Option dateTime, Option int32, Option int64, Option integer, Option password, Option varFloat, Option varString); /// /// Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트 Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트 @@ -4209,9 +4209,9 @@ namespace Org.OpenAPITools.Api /// /// Logs exceptions that occur while retrieving the server response /// - /// - /// - /// + /// + /// + /// /// /// /// @@ -4220,21 +4220,21 @@ namespace Org.OpenAPITools.Api /// /// /// - private void OnErrorTestEnumParametersDefaultImplementation(Exception exception, string pathFormat, string path, Option enumFormString, Option> enumFormStringArray, Option enumHeaderString, Option> enumHeaderStringArray, Option enumQueryDouble, Option enumQueryInteger, Option enumQueryString, Option> enumQueryStringArray) + private void OnErrorTestEnumParametersDefaultImplementation(Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, Option enumFormString, Option> enumFormStringArray, Option enumHeaderString, Option> enumHeaderStringArray, Option enumQueryDouble, Option enumQueryInteger, Option enumQueryString, Option> enumQueryStringArray) { - bool suppressDefaultLog = false; - OnErrorTestEnumParameters(ref suppressDefaultLog, exception, pathFormat, path, enumFormString, enumFormStringArray, enumHeaderString, enumHeaderStringArray, enumQueryDouble, enumQueryInteger, enumQueryString, enumQueryStringArray); - if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while sending the request to the server."); + bool suppressDefaultLogLocalVar = false; + OnErrorTestEnumParameters(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, enumFormString, enumFormStringArray, enumHeaderString, enumHeaderStringArray, enumQueryDouble, enumQueryInteger, enumQueryString, enumQueryStringArray); + if (!suppressDefaultLogLocalVar) + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling /// - /// - /// - /// - /// + /// + /// + /// + /// /// /// /// @@ -4243,7 +4243,7 @@ namespace Org.OpenAPITools.Api /// /// /// - partial void OnErrorTestEnumParameters(ref bool suppressDefaultLog, Exception exception, string pathFormat, string path, Option enumFormString, Option> enumFormStringArray, Option enumHeaderString, Option> enumHeaderStringArray, Option enumQueryDouble, Option enumQueryInteger, Option enumQueryString, Option> enumQueryStringArray); + partial void OnErrorTestEnumParameters(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, Option enumFormString, Option> enumFormStringArray, Option enumHeaderString, Option> enumHeaderStringArray, Option enumQueryDouble, Option enumQueryInteger, Option enumQueryString, Option> enumQueryStringArray); /// /// To test enum parameters To test enum parameters @@ -4461,37 +4461,37 @@ namespace Org.OpenAPITools.Api /// /// Logs exceptions that occur while retrieving the server response /// - /// - /// - /// + /// + /// + /// /// /// /// /// /// /// - private void OnErrorTestGroupParametersDefaultImplementation(Exception exception, string pathFormat, string path, bool requiredBooleanGroup, long requiredInt64Group, int requiredStringGroup, Option booleanGroup, Option int64Group, Option stringGroup) + private void OnErrorTestGroupParametersDefaultImplementation(Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, bool requiredBooleanGroup, long requiredInt64Group, int requiredStringGroup, Option booleanGroup, Option int64Group, Option stringGroup) { - bool suppressDefaultLog = false; - OnErrorTestGroupParameters(ref suppressDefaultLog, exception, pathFormat, path, requiredBooleanGroup, requiredInt64Group, requiredStringGroup, booleanGroup, int64Group, stringGroup); - if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while sending the request to the server."); + bool suppressDefaultLogLocalVar = false; + OnErrorTestGroupParameters(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, requiredBooleanGroup, requiredInt64Group, requiredStringGroup, booleanGroup, int64Group, stringGroup); + if (!suppressDefaultLogLocalVar) + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling /// - /// - /// - /// - /// + /// + /// + /// + /// /// /// /// /// /// /// - partial void OnErrorTestGroupParameters(ref bool suppressDefaultLog, Exception exception, string pathFormat, string path, bool requiredBooleanGroup, long requiredInt64Group, int requiredStringGroup, Option booleanGroup, Option int64Group, Option stringGroup); + partial void OnErrorTestGroupParameters(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, bool requiredBooleanGroup, long requiredInt64Group, int requiredStringGroup, Option booleanGroup, Option int64Group, Option stringGroup); /// /// Fake endpoint to test group parameters (optional) Fake endpoint to test group parameters (optional) @@ -4684,27 +4684,27 @@ namespace Org.OpenAPITools.Api /// /// Logs exceptions that occur while retrieving the server response /// - /// - /// - /// + /// + /// + /// /// - private void OnErrorTestInlineAdditionalPropertiesDefaultImplementation(Exception exception, string pathFormat, string path, Dictionary requestBody) + private void OnErrorTestInlineAdditionalPropertiesDefaultImplementation(Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, Dictionary requestBody) { - bool suppressDefaultLog = false; - OnErrorTestInlineAdditionalProperties(ref suppressDefaultLog, exception, pathFormat, path, requestBody); - if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while sending the request to the server."); + bool suppressDefaultLogLocalVar = false; + OnErrorTestInlineAdditionalProperties(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, requestBody); + if (!suppressDefaultLogLocalVar) + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling /// - /// - /// - /// - /// + /// + /// + /// + /// /// - partial void OnErrorTestInlineAdditionalProperties(ref bool suppressDefaultLog, Exception exception, string pathFormat, string path, Dictionary requestBody); + partial void OnErrorTestInlineAdditionalProperties(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, Dictionary requestBody); /// /// test inline additionalProperties @@ -4873,27 +4873,27 @@ namespace Org.OpenAPITools.Api /// /// Logs exceptions that occur while retrieving the server response /// - /// - /// - /// + /// + /// + /// /// - private void OnErrorTestInlineFreeformAdditionalPropertiesDefaultImplementation(Exception exception, string pathFormat, string path, TestInlineFreeformAdditionalPropertiesRequest testInlineFreeformAdditionalPropertiesRequest) + private void OnErrorTestInlineFreeformAdditionalPropertiesDefaultImplementation(Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, TestInlineFreeformAdditionalPropertiesRequest testInlineFreeformAdditionalPropertiesRequest) { - bool suppressDefaultLog = false; - OnErrorTestInlineFreeformAdditionalProperties(ref suppressDefaultLog, exception, pathFormat, path, testInlineFreeformAdditionalPropertiesRequest); - if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while sending the request to the server."); + bool suppressDefaultLogLocalVar = false; + OnErrorTestInlineFreeformAdditionalProperties(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, testInlineFreeformAdditionalPropertiesRequest); + if (!suppressDefaultLogLocalVar) + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling /// - /// - /// - /// - /// + /// + /// + /// + /// /// - partial void OnErrorTestInlineFreeformAdditionalProperties(ref bool suppressDefaultLog, Exception exception, string pathFormat, string path, TestInlineFreeformAdditionalPropertiesRequest testInlineFreeformAdditionalPropertiesRequest); + partial void OnErrorTestInlineFreeformAdditionalProperties(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, TestInlineFreeformAdditionalPropertiesRequest testInlineFreeformAdditionalPropertiesRequest); /// /// test inline free-form additionalProperties @@ -5068,29 +5068,29 @@ namespace Org.OpenAPITools.Api /// /// Logs exceptions that occur while retrieving the server response /// - /// - /// - /// + /// + /// + /// /// /// - private void OnErrorTestJsonFormDataDefaultImplementation(Exception exception, string pathFormat, string path, string param, string param2) + private void OnErrorTestJsonFormDataDefaultImplementation(Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, string param, string param2) { - bool suppressDefaultLog = false; - OnErrorTestJsonFormData(ref suppressDefaultLog, exception, pathFormat, path, param, param2); - if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while sending the request to the server."); + bool suppressDefaultLogLocalVar = false; + OnErrorTestJsonFormData(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, param, param2); + if (!suppressDefaultLogLocalVar) + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling /// - /// - /// - /// - /// + /// + /// + /// + /// /// /// - partial void OnErrorTestJsonFormData(ref bool suppressDefaultLog, Exception exception, string pathFormat, string path, string param, string param2); + partial void OnErrorTestJsonFormData(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, string param, string param2); /// /// test json serialization of form data @@ -5309,9 +5309,9 @@ namespace Org.OpenAPITools.Api /// /// Logs exceptions that occur while retrieving the server response /// - /// - /// - /// + /// + /// + /// /// /// /// @@ -5321,21 +5321,21 @@ namespace Org.OpenAPITools.Api /// /// /// - private void OnErrorTestQueryParameterCollectionFormatDefaultImplementation(Exception exception, string pathFormat, string path, List context, List http, List ioutil, List pipe, string requiredNotNullable, List url, Option notRequiredNotNullable, Option notRequiredNullable, string? requiredNullable) + private void OnErrorTestQueryParameterCollectionFormatDefaultImplementation(Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, List context, List http, List ioutil, List pipe, string requiredNotNullable, List url, Option notRequiredNotNullable, Option notRequiredNullable, string? requiredNullable) { - bool suppressDefaultLog = false; - OnErrorTestQueryParameterCollectionFormat(ref suppressDefaultLog, exception, pathFormat, path, context, http, ioutil, pipe, requiredNotNullable, url, notRequiredNotNullable, notRequiredNullable, requiredNullable); - if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while sending the request to the server."); + bool suppressDefaultLogLocalVar = false; + OnErrorTestQueryParameterCollectionFormat(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, context, http, ioutil, pipe, requiredNotNullable, url, notRequiredNotNullable, notRequiredNullable, requiredNullable); + if (!suppressDefaultLogLocalVar) + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling /// - /// - /// - /// - /// + /// + /// + /// + /// /// /// /// @@ -5345,7 +5345,7 @@ namespace Org.OpenAPITools.Api /// /// /// - partial void OnErrorTestQueryParameterCollectionFormat(ref bool suppressDefaultLog, Exception exception, string pathFormat, string path, List context, List http, List ioutil, List pipe, string requiredNotNullable, List url, Option notRequiredNotNullable, Option notRequiredNullable, string? requiredNullable); + partial void OnErrorTestQueryParameterCollectionFormat(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, List context, List http, List ioutil, List pipe, string requiredNotNullable, List url, Option notRequiredNotNullable, Option notRequiredNullable, string? requiredNullable); /// /// To test the collection format in query parameters @@ -5535,27 +5535,27 @@ namespace Org.OpenAPITools.Api /// /// Logs exceptions that occur while retrieving the server response /// - /// - /// - /// + /// + /// + /// /// - private void OnErrorTestStringMapReferenceDefaultImplementation(Exception exception, string pathFormat, string path, Dictionary requestBody) + private void OnErrorTestStringMapReferenceDefaultImplementation(Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, Dictionary requestBody) { - bool suppressDefaultLog = false; - OnErrorTestStringMapReference(ref suppressDefaultLog, exception, pathFormat, path, requestBody); - if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while sending the request to the server."); + bool suppressDefaultLogLocalVar = false; + OnErrorTestStringMapReference(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, requestBody); + if (!suppressDefaultLogLocalVar) + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling /// - /// - /// - /// - /// + /// + /// + /// + /// /// - partial void OnErrorTestStringMapReference(ref bool suppressDefaultLog, Exception exception, string pathFormat, string path, Dictionary requestBody); + partial void OnErrorTestStringMapReference(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, Dictionary requestBody); /// /// test referenced string map diff --git a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Api/FakeClassnameTags123Api.cs b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Api/FakeClassnameTags123Api.cs index 2cec6a5023d..d70af83c911 100644 --- a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Api/FakeClassnameTags123Api.cs +++ b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Api/FakeClassnameTags123Api.cs @@ -209,27 +209,27 @@ namespace Org.OpenAPITools.Api /// /// Logs exceptions that occur while retrieving the server response /// - /// - /// - /// + /// + /// + /// /// - private void OnErrorTestClassnameDefaultImplementation(Exception exception, string pathFormat, string path, ModelClient modelClient) + private void OnErrorTestClassnameDefaultImplementation(Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, ModelClient modelClient) { - bool suppressDefaultLog = false; - OnErrorTestClassname(ref suppressDefaultLog, exception, pathFormat, path, modelClient); - if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while sending the request to the server."); + bool suppressDefaultLogLocalVar = false; + OnErrorTestClassname(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, modelClient); + if (!suppressDefaultLogLocalVar) + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling /// - /// - /// - /// - /// + /// + /// + /// + /// /// - partial void OnErrorTestClassname(ref bool suppressDefaultLog, Exception exception, string pathFormat, string path, ModelClient modelClient); + partial void OnErrorTestClassname(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, ModelClient modelClient); /// /// To test class name in snake case To test class name in snake case diff --git a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Api/PetApi.cs b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Api/PetApi.cs index b6b98a2950a..1d959b49106 100644 --- a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Api/PetApi.cs +++ b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Api/PetApi.cs @@ -713,27 +713,27 @@ namespace Org.OpenAPITools.Api /// /// Logs exceptions that occur while retrieving the server response /// - /// - /// - /// + /// + /// + /// /// - private void OnErrorAddPetDefaultImplementation(Exception exception, string pathFormat, string path, Pet pet) + private void OnErrorAddPetDefaultImplementation(Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, Pet pet) { - bool suppressDefaultLog = false; - OnErrorAddPet(ref suppressDefaultLog, exception, pathFormat, path, pet); - if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while sending the request to the server."); + bool suppressDefaultLogLocalVar = false; + OnErrorAddPet(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, pet); + if (!suppressDefaultLogLocalVar) + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling /// - /// - /// - /// - /// + /// + /// + /// + /// /// - partial void OnErrorAddPet(ref bool suppressDefaultLog, Exception exception, string pathFormat, string path, Pet pet); + partial void OnErrorAddPet(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, Pet pet); /// /// Add a new pet to the store @@ -926,29 +926,29 @@ namespace Org.OpenAPITools.Api /// /// Logs exceptions that occur while retrieving the server response /// - /// - /// - /// + /// + /// + /// /// /// - private void OnErrorDeletePetDefaultImplementation(Exception exception, string pathFormat, string path, long petId, Option apiKey) + private void OnErrorDeletePetDefaultImplementation(Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, long petId, Option apiKey) { - bool suppressDefaultLog = false; - OnErrorDeletePet(ref suppressDefaultLog, exception, pathFormat, path, petId, apiKey); - if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while sending the request to the server."); + bool suppressDefaultLogLocalVar = false; + OnErrorDeletePet(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, petId, apiKey); + if (!suppressDefaultLogLocalVar) + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling /// - /// - /// - /// - /// + /// + /// + /// + /// /// /// - partial void OnErrorDeletePet(ref bool suppressDefaultLog, Exception exception, string pathFormat, string path, long petId, Option apiKey); + partial void OnErrorDeletePet(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, long petId, Option apiKey); /// /// Deletes a pet @@ -1121,27 +1121,27 @@ namespace Org.OpenAPITools.Api /// /// Logs exceptions that occur while retrieving the server response /// - /// - /// - /// + /// + /// + /// /// - private void OnErrorFindPetsByStatusDefaultImplementation(Exception exception, string pathFormat, string path, List status) + private void OnErrorFindPetsByStatusDefaultImplementation(Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, List status) { - bool suppressDefaultLog = false; - OnErrorFindPetsByStatus(ref suppressDefaultLog, exception, pathFormat, path, status); - if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while sending the request to the server."); + bool suppressDefaultLogLocalVar = false; + OnErrorFindPetsByStatus(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, status); + if (!suppressDefaultLogLocalVar) + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling /// - /// - /// - /// - /// + /// + /// + /// + /// /// - partial void OnErrorFindPetsByStatus(ref bool suppressDefaultLog, Exception exception, string pathFormat, string path, List status); + partial void OnErrorFindPetsByStatus(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, List status); /// /// Finds Pets by status Multiple status values can be provided with comma separated strings @@ -1398,27 +1398,27 @@ namespace Org.OpenAPITools.Api /// /// Logs exceptions that occur while retrieving the server response /// - /// - /// - /// + /// + /// + /// /// - private void OnErrorFindPetsByTagsDefaultImplementation(Exception exception, string pathFormat, string path, List tags) + private void OnErrorFindPetsByTagsDefaultImplementation(Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, List tags) { - bool suppressDefaultLog = false; - OnErrorFindPetsByTags(ref suppressDefaultLog, exception, pathFormat, path, tags); - if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while sending the request to the server."); + bool suppressDefaultLogLocalVar = false; + OnErrorFindPetsByTags(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, tags); + if (!suppressDefaultLogLocalVar) + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling /// - /// - /// - /// - /// + /// + /// + /// + /// /// - partial void OnErrorFindPetsByTags(ref bool suppressDefaultLog, Exception exception, string pathFormat, string path, List tags); + partial void OnErrorFindPetsByTags(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, List tags); /// /// Finds Pets by tags Multiple tags can be provided with comma separated strings. Use tag1, tag2, tag3 for testing. @@ -1638,27 +1638,27 @@ namespace Org.OpenAPITools.Api /// /// Logs exceptions that occur while retrieving the server response /// - /// - /// - /// + /// + /// + /// /// - private void OnErrorGetPetByIdDefaultImplementation(Exception exception, string pathFormat, string path, long petId) + private void OnErrorGetPetByIdDefaultImplementation(Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, long petId) { - bool suppressDefaultLog = false; - OnErrorGetPetById(ref suppressDefaultLog, exception, pathFormat, path, petId); - if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while sending the request to the server."); + bool suppressDefaultLogLocalVar = false; + OnErrorGetPetById(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, petId); + if (!suppressDefaultLogLocalVar) + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling /// - /// - /// - /// - /// + /// + /// + /// + /// /// - partial void OnErrorGetPetById(ref bool suppressDefaultLog, Exception exception, string pathFormat, string path, long petId); + partial void OnErrorGetPetById(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, long petId); /// /// Find pet by ID Returns a single pet @@ -1884,27 +1884,27 @@ namespace Org.OpenAPITools.Api /// /// Logs exceptions that occur while retrieving the server response /// - /// - /// - /// + /// + /// + /// /// - private void OnErrorUpdatePetDefaultImplementation(Exception exception, string pathFormat, string path, Pet pet) + private void OnErrorUpdatePetDefaultImplementation(Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, Pet pet) { - bool suppressDefaultLog = false; - OnErrorUpdatePet(ref suppressDefaultLog, exception, pathFormat, path, pet); - if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while sending the request to the server."); + bool suppressDefaultLogLocalVar = false; + OnErrorUpdatePet(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, pet); + if (!suppressDefaultLogLocalVar) + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling /// - /// - /// - /// - /// + /// + /// + /// + /// /// - partial void OnErrorUpdatePet(ref bool suppressDefaultLog, Exception exception, string pathFormat, string path, Pet pet); + partial void OnErrorUpdatePet(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, Pet pet); /// /// Update an existing pet @@ -2115,31 +2115,31 @@ namespace Org.OpenAPITools.Api /// /// Logs exceptions that occur while retrieving the server response /// - /// - /// - /// + /// + /// + /// /// /// /// - private void OnErrorUpdatePetWithFormDefaultImplementation(Exception exception, string pathFormat, string path, long petId, Option name, Option status) + private void OnErrorUpdatePetWithFormDefaultImplementation(Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, long petId, Option name, Option status) { - bool suppressDefaultLog = false; - OnErrorUpdatePetWithForm(ref suppressDefaultLog, exception, pathFormat, path, petId, name, status); - if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while sending the request to the server."); + bool suppressDefaultLogLocalVar = false; + OnErrorUpdatePetWithForm(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, petId, name, status); + if (!suppressDefaultLogLocalVar) + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling /// - /// - /// - /// - /// + /// + /// + /// + /// /// /// /// - partial void OnErrorUpdatePetWithForm(ref bool suppressDefaultLog, Exception exception, string pathFormat, string path, long petId, Option name, Option status); + partial void OnErrorUpdatePetWithForm(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, long petId, Option name, Option status); /// /// Updates a pet in the store with form data @@ -2340,31 +2340,31 @@ namespace Org.OpenAPITools.Api /// /// Logs exceptions that occur while retrieving the server response /// - /// - /// - /// + /// + /// + /// /// /// /// - private void OnErrorUploadFileDefaultImplementation(Exception exception, string pathFormat, string path, long petId, Option additionalMetadata, Option file) + private void OnErrorUploadFileDefaultImplementation(Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, long petId, Option additionalMetadata, Option file) { - bool suppressDefaultLog = false; - OnErrorUploadFile(ref suppressDefaultLog, exception, pathFormat, path, petId, additionalMetadata, file); - if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while sending the request to the server."); + bool suppressDefaultLogLocalVar = false; + OnErrorUploadFile(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, petId, additionalMetadata, file); + if (!suppressDefaultLogLocalVar) + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling /// - /// - /// - /// - /// + /// + /// + /// + /// /// /// /// - partial void OnErrorUploadFile(ref bool suppressDefaultLog, Exception exception, string pathFormat, string path, long petId, Option additionalMetadata, Option file); + partial void OnErrorUploadFile(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, long petId, Option additionalMetadata, Option file); /// /// uploads an image @@ -2606,31 +2606,31 @@ namespace Org.OpenAPITools.Api /// /// Logs exceptions that occur while retrieving the server response /// - /// - /// - /// + /// + /// + /// /// /// /// - private void OnErrorUploadFileWithRequiredFileDefaultImplementation(Exception exception, string pathFormat, string path, long petId, System.IO.Stream requiredFile, Option additionalMetadata) + private void OnErrorUploadFileWithRequiredFileDefaultImplementation(Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, long petId, System.IO.Stream requiredFile, Option additionalMetadata) { - bool suppressDefaultLog = false; - OnErrorUploadFileWithRequiredFile(ref suppressDefaultLog, exception, pathFormat, path, petId, requiredFile, additionalMetadata); - if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while sending the request to the server."); + bool suppressDefaultLogLocalVar = false; + OnErrorUploadFileWithRequiredFile(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, petId, requiredFile, additionalMetadata); + if (!suppressDefaultLogLocalVar) + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling /// - /// - /// - /// - /// + /// + /// + /// + /// /// /// /// - partial void OnErrorUploadFileWithRequiredFile(ref bool suppressDefaultLog, Exception exception, string pathFormat, string path, long petId, System.IO.Stream requiredFile, Option additionalMetadata); + partial void OnErrorUploadFileWithRequiredFile(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, long petId, System.IO.Stream requiredFile, Option additionalMetadata); /// /// uploads an image (required) diff --git a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Api/StoreApi.cs b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Api/StoreApi.cs index 4bec8c60b86..1677ff9901e 100644 --- a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Api/StoreApi.cs +++ b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Api/StoreApi.cs @@ -396,27 +396,27 @@ namespace Org.OpenAPITools.Api /// /// Logs exceptions that occur while retrieving the server response /// - /// - /// - /// + /// + /// + /// /// - private void OnErrorDeleteOrderDefaultImplementation(Exception exception, string pathFormat, string path, string orderId) + private void OnErrorDeleteOrderDefaultImplementation(Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, string orderId) { - bool suppressDefaultLog = false; - OnErrorDeleteOrder(ref suppressDefaultLog, exception, pathFormat, path, orderId); - if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while sending the request to the server."); + bool suppressDefaultLogLocalVar = false; + OnErrorDeleteOrder(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, orderId); + if (!suppressDefaultLogLocalVar) + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling /// - /// - /// - /// - /// + /// + /// + /// + /// /// - partial void OnErrorDeleteOrder(ref bool suppressDefaultLog, Exception exception, string pathFormat, string path, string orderId); + partial void OnErrorDeleteOrder(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, string orderId); /// /// Delete purchase order by ID For valid response try integer IDs with value < 1000. Anything above 1000 or nonintegers will generate API errors @@ -564,25 +564,25 @@ namespace Org.OpenAPITools.Api /// /// Logs exceptions that occur while retrieving the server response /// - /// - /// - /// - private void OnErrorGetInventoryDefaultImplementation(Exception exception, string pathFormat, string path) + /// + /// + /// + private void OnErrorGetInventoryDefaultImplementation(Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar) { - bool suppressDefaultLog = false; - OnErrorGetInventory(ref suppressDefaultLog, exception, pathFormat, path); - if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while sending the request to the server."); + bool suppressDefaultLogLocalVar = false; + OnErrorGetInventory(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar); + if (!suppressDefaultLogLocalVar) + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling /// - /// - /// - /// - /// - partial void OnErrorGetInventory(ref bool suppressDefaultLog, Exception exception, string pathFormat, string path); + /// + /// + /// + /// + partial void OnErrorGetInventory(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar); /// /// Returns pet inventories by status Returns a map of status codes to quantities @@ -771,27 +771,27 @@ namespace Org.OpenAPITools.Api /// /// Logs exceptions that occur while retrieving the server response /// - /// - /// - /// + /// + /// + /// /// - private void OnErrorGetOrderByIdDefaultImplementation(Exception exception, string pathFormat, string path, long orderId) + private void OnErrorGetOrderByIdDefaultImplementation(Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, long orderId) { - bool suppressDefaultLog = false; - OnErrorGetOrderById(ref suppressDefaultLog, exception, pathFormat, path, orderId); - if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while sending the request to the server."); + bool suppressDefaultLogLocalVar = false; + OnErrorGetOrderById(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, orderId); + if (!suppressDefaultLogLocalVar) + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling /// - /// - /// - /// - /// + /// + /// + /// + /// /// - partial void OnErrorGetOrderById(ref bool suppressDefaultLog, Exception exception, string pathFormat, string path, long orderId); + partial void OnErrorGetOrderById(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, long orderId); /// /// Find purchase order by ID For valid response try integer IDs with value <= 5 or > 10. Other values will generate exceptions @@ -1000,27 +1000,27 @@ namespace Org.OpenAPITools.Api /// /// Logs exceptions that occur while retrieving the server response /// - /// - /// - /// + /// + /// + /// /// - private void OnErrorPlaceOrderDefaultImplementation(Exception exception, string pathFormat, string path, Order order) + private void OnErrorPlaceOrderDefaultImplementation(Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, Order order) { - bool suppressDefaultLog = false; - OnErrorPlaceOrder(ref suppressDefaultLog, exception, pathFormat, path, order); - if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while sending the request to the server."); + bool suppressDefaultLogLocalVar = false; + OnErrorPlaceOrder(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, order); + if (!suppressDefaultLogLocalVar) + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling /// - /// - /// - /// - /// + /// + /// + /// + /// /// - partial void OnErrorPlaceOrder(ref bool suppressDefaultLog, Exception exception, string pathFormat, string path, Order order); + partial void OnErrorPlaceOrder(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, Order order); /// /// Place an order for a pet diff --git a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Api/UserApi.cs b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Api/UserApi.cs index b0f90eaec7c..0352814ae67 100644 --- a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Api/UserApi.cs +++ b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Api/UserApi.cs @@ -646,27 +646,27 @@ namespace Org.OpenAPITools.Api /// /// Logs exceptions that occur while retrieving the server response /// - /// - /// - /// + /// + /// + /// /// - private void OnErrorCreateUserDefaultImplementation(Exception exception, string pathFormat, string path, User user) + private void OnErrorCreateUserDefaultImplementation(Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, User user) { - bool suppressDefaultLog = false; - OnErrorCreateUser(ref suppressDefaultLog, exception, pathFormat, path, user); - if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while sending the request to the server."); + bool suppressDefaultLogLocalVar = false; + OnErrorCreateUser(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, user); + if (!suppressDefaultLogLocalVar) + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling /// - /// - /// - /// - /// + /// + /// + /// + /// /// - partial void OnErrorCreateUser(ref bool suppressDefaultLog, Exception exception, string pathFormat, string path, User user); + partial void OnErrorCreateUser(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, User user); /// /// Create user This can only be done by the logged in user. @@ -835,27 +835,27 @@ namespace Org.OpenAPITools.Api /// /// Logs exceptions that occur while retrieving the server response /// - /// - /// - /// + /// + /// + /// /// - private void OnErrorCreateUsersWithArrayInputDefaultImplementation(Exception exception, string pathFormat, string path, List user) + private void OnErrorCreateUsersWithArrayInputDefaultImplementation(Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, List user) { - bool suppressDefaultLog = false; - OnErrorCreateUsersWithArrayInput(ref suppressDefaultLog, exception, pathFormat, path, user); - if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while sending the request to the server."); + bool suppressDefaultLogLocalVar = false; + OnErrorCreateUsersWithArrayInput(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, user); + if (!suppressDefaultLogLocalVar) + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling /// - /// - /// - /// - /// + /// + /// + /// + /// /// - partial void OnErrorCreateUsersWithArrayInput(ref bool suppressDefaultLog, Exception exception, string pathFormat, string path, List user); + partial void OnErrorCreateUsersWithArrayInput(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, List user); /// /// Creates list of users with given input array @@ -1024,27 +1024,27 @@ namespace Org.OpenAPITools.Api /// /// Logs exceptions that occur while retrieving the server response /// - /// - /// - /// + /// + /// + /// /// - private void OnErrorCreateUsersWithListInputDefaultImplementation(Exception exception, string pathFormat, string path, List user) + private void OnErrorCreateUsersWithListInputDefaultImplementation(Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, List user) { - bool suppressDefaultLog = false; - OnErrorCreateUsersWithListInput(ref suppressDefaultLog, exception, pathFormat, path, user); - if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while sending the request to the server."); + bool suppressDefaultLogLocalVar = false; + OnErrorCreateUsersWithListInput(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, user); + if (!suppressDefaultLogLocalVar) + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling /// - /// - /// - /// - /// + /// + /// + /// + /// /// - partial void OnErrorCreateUsersWithListInput(ref bool suppressDefaultLog, Exception exception, string pathFormat, string path, List user); + partial void OnErrorCreateUsersWithListInput(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, List user); /// /// Creates list of users with given input array @@ -1213,27 +1213,27 @@ namespace Org.OpenAPITools.Api /// /// Logs exceptions that occur while retrieving the server response /// - /// - /// - /// + /// + /// + /// /// - private void OnErrorDeleteUserDefaultImplementation(Exception exception, string pathFormat, string path, string username) + private void OnErrorDeleteUserDefaultImplementation(Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, string username) { - bool suppressDefaultLog = false; - OnErrorDeleteUser(ref suppressDefaultLog, exception, pathFormat, path, username); - if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while sending the request to the server."); + bool suppressDefaultLogLocalVar = false; + OnErrorDeleteUser(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, username); + if (!suppressDefaultLogLocalVar) + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling /// - /// - /// - /// - /// + /// + /// + /// + /// /// - partial void OnErrorDeleteUser(ref bool suppressDefaultLog, Exception exception, string pathFormat, string path, string username); + partial void OnErrorDeleteUser(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, string username); /// /// Delete user This can only be done by the logged in user. @@ -1396,27 +1396,27 @@ namespace Org.OpenAPITools.Api /// /// Logs exceptions that occur while retrieving the server response /// - /// - /// - /// + /// + /// + /// /// - private void OnErrorGetUserByNameDefaultImplementation(Exception exception, string pathFormat, string path, string username) + private void OnErrorGetUserByNameDefaultImplementation(Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, string username) { - bool suppressDefaultLog = false; - OnErrorGetUserByName(ref suppressDefaultLog, exception, pathFormat, path, username); - if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while sending the request to the server."); + bool suppressDefaultLogLocalVar = false; + OnErrorGetUserByName(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, username); + if (!suppressDefaultLogLocalVar) + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling /// - /// - /// - /// - /// + /// + /// + /// + /// /// - partial void OnErrorGetUserByName(ref bool suppressDefaultLog, Exception exception, string pathFormat, string path, string username); + partial void OnErrorGetUserByName(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, string username); /// /// Get user by user name @@ -1677,29 +1677,29 @@ namespace Org.OpenAPITools.Api /// /// Logs exceptions that occur while retrieving the server response /// - /// - /// - /// + /// + /// + /// /// /// - private void OnErrorLoginUserDefaultImplementation(Exception exception, string pathFormat, string path, string password, string username) + private void OnErrorLoginUserDefaultImplementation(Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, string password, string username) { - bool suppressDefaultLog = false; - OnErrorLoginUser(ref suppressDefaultLog, exception, pathFormat, path, password, username); - if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while sending the request to the server."); + bool suppressDefaultLogLocalVar = false; + OnErrorLoginUser(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, password, username); + if (!suppressDefaultLogLocalVar) + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling /// - /// - /// - /// - /// + /// + /// + /// + /// /// /// - partial void OnErrorLoginUser(ref bool suppressDefaultLog, Exception exception, string pathFormat, string path, string password, string username); + partial void OnErrorLoginUser(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, string password, string username); /// /// Logs user into the system @@ -1924,25 +1924,25 @@ namespace Org.OpenAPITools.Api /// /// Logs exceptions that occur while retrieving the server response /// - /// - /// - /// - private void OnErrorLogoutUserDefaultImplementation(Exception exception, string pathFormat, string path) + /// + /// + /// + private void OnErrorLogoutUserDefaultImplementation(Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar) { - bool suppressDefaultLog = false; - OnErrorLogoutUser(ref suppressDefaultLog, exception, pathFormat, path); - if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while sending the request to the server."); + bool suppressDefaultLogLocalVar = false; + OnErrorLogoutUser(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar); + if (!suppressDefaultLogLocalVar) + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling /// - /// - /// - /// - /// - partial void OnErrorLogoutUser(ref bool suppressDefaultLog, Exception exception, string pathFormat, string path); + /// + /// + /// + /// + partial void OnErrorLogoutUser(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar); /// /// Logs out current logged in user session @@ -2098,29 +2098,29 @@ namespace Org.OpenAPITools.Api /// /// Logs exceptions that occur while retrieving the server response /// - /// - /// - /// + /// + /// + /// /// /// - private void OnErrorUpdateUserDefaultImplementation(Exception exception, string pathFormat, string path, User user, string username) + private void OnErrorUpdateUserDefaultImplementation(Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, User user, string username) { - bool suppressDefaultLog = false; - OnErrorUpdateUser(ref suppressDefaultLog, exception, pathFormat, path, user, username); - if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while sending the request to the server."); + bool suppressDefaultLogLocalVar = false; + OnErrorUpdateUser(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, user, username); + if (!suppressDefaultLogLocalVar) + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling /// - /// - /// - /// - /// + /// + /// + /// + /// /// /// - partial void OnErrorUpdateUser(ref bool suppressDefaultLog, Exception exception, string pathFormat, string path, User user, string username); + partial void OnErrorUpdateUser(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, User user, string username); /// /// Updated user This can only be done by the logged in user. diff --git a/samples/client/petstore/csharp/generichost/net8/OneOf/src/Org.OpenAPITools/Api/DefaultApi.cs b/samples/client/petstore/csharp/generichost/net8/OneOf/src/Org.OpenAPITools/Api/DefaultApi.cs index 2337327fdc7..030cc3bf12e 100644 --- a/samples/client/petstore/csharp/generichost/net8/OneOf/src/Org.OpenAPITools/Api/DefaultApi.cs +++ b/samples/client/petstore/csharp/generichost/net8/OneOf/src/Org.OpenAPITools/Api/DefaultApi.cs @@ -157,25 +157,25 @@ namespace Org.OpenAPITools.Api /// /// Logs exceptions that occur while retrieving the server response /// - /// - /// - /// - private void OnErrorRootGetDefaultImplementation(Exception exception, string pathFormat, string path) + /// + /// + /// + private void OnErrorRootGetDefaultImplementation(Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar) { - bool suppressDefaultLog = false; - OnErrorRootGet(ref suppressDefaultLog, exception, pathFormat, path); - if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while sending the request to the server."); + bool suppressDefaultLogLocalVar = false; + OnErrorRootGet(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar); + if (!suppressDefaultLogLocalVar) + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling /// - /// - /// - /// - /// - partial void OnErrorRootGet(ref bool suppressDefaultLog, Exception exception, string pathFormat, string path); + /// + /// + /// + /// + partial void OnErrorRootGet(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar); /// /// diff --git a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Api/AnotherFakeApi.cs b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Api/AnotherFakeApi.cs index 346fbdf8565..3d7d0c48233 100644 --- a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Api/AnotherFakeApi.cs +++ b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Api/AnotherFakeApi.cs @@ -207,27 +207,27 @@ namespace Org.OpenAPITools.Api /// /// Logs exceptions that occur while retrieving the server response /// - /// - /// - /// + /// + /// + /// /// - private void OnErrorCall123TestSpecialTagsDefaultImplementation(Exception exception, string pathFormat, string path, ModelClient modelClient) + private void OnErrorCall123TestSpecialTagsDefaultImplementation(Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, ModelClient modelClient) { - bool suppressDefaultLog = false; - OnErrorCall123TestSpecialTags(ref suppressDefaultLog, exception, pathFormat, path, modelClient); - if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while sending the request to the server."); + bool suppressDefaultLogLocalVar = false; + OnErrorCall123TestSpecialTags(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, modelClient); + if (!suppressDefaultLogLocalVar) + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling /// - /// - /// - /// - /// + /// + /// + /// + /// /// - partial void OnErrorCall123TestSpecialTags(ref bool suppressDefaultLog, Exception exception, string pathFormat, string path, ModelClient modelClient); + partial void OnErrorCall123TestSpecialTags(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, ModelClient modelClient); /// /// To test special tags To test special tags and operation ID starting with number diff --git a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Api/DefaultApi.cs b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Api/DefaultApi.cs index c996a3fc0fa..84ec2eff6bf 100644 --- a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Api/DefaultApi.cs +++ b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Api/DefaultApi.cs @@ -404,25 +404,25 @@ namespace Org.OpenAPITools.Api /// /// Logs exceptions that occur while retrieving the server response /// - /// - /// - /// - private void OnErrorFooGetDefaultImplementation(Exception exception, string pathFormat, string path) + /// + /// + /// + private void OnErrorFooGetDefaultImplementation(Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar) { - bool suppressDefaultLog = false; - OnErrorFooGet(ref suppressDefaultLog, exception, pathFormat, path); - if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while sending the request to the server."); + bool suppressDefaultLogLocalVar = false; + OnErrorFooGet(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar); + if (!suppressDefaultLogLocalVar) + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling /// - /// - /// - /// - /// - partial void OnErrorFooGet(ref bool suppressDefaultLog, Exception exception, string pathFormat, string path); + /// + /// + /// + /// + partial void OnErrorFooGet(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar); /// /// @@ -613,27 +613,27 @@ namespace Org.OpenAPITools.Api /// /// Logs exceptions that occur while retrieving the server response /// - /// - /// - /// + /// + /// + /// /// - private void OnErrorGetCountryDefaultImplementation(Exception exception, string pathFormat, string path, string country) + private void OnErrorGetCountryDefaultImplementation(Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, string country) { - bool suppressDefaultLog = false; - OnErrorGetCountry(ref suppressDefaultLog, exception, pathFormat, path, country); - if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while sending the request to the server."); + bool suppressDefaultLogLocalVar = false; + OnErrorGetCountry(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, country); + if (!suppressDefaultLogLocalVar) + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling /// - /// - /// - /// - /// + /// + /// + /// + /// /// - partial void OnErrorGetCountry(ref bool suppressDefaultLog, Exception exception, string pathFormat, string path, string country); + partial void OnErrorGetCountry(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, string country); /// /// @@ -793,25 +793,25 @@ namespace Org.OpenAPITools.Api /// /// Logs exceptions that occur while retrieving the server response /// - /// - /// - /// - private void OnErrorHelloDefaultImplementation(Exception exception, string pathFormat, string path) + /// + /// + /// + private void OnErrorHelloDefaultImplementation(Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar) { - bool suppressDefaultLog = false; - OnErrorHello(ref suppressDefaultLog, exception, pathFormat, path); - if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while sending the request to the server."); + bool suppressDefaultLogLocalVar = false; + OnErrorHello(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar); + if (!suppressDefaultLogLocalVar) + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling /// - /// - /// - /// - /// - partial void OnErrorHello(ref bool suppressDefaultLog, Exception exception, string pathFormat, string path); + /// + /// + /// + /// + partial void OnErrorHello(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar); /// /// Hello Hello @@ -987,25 +987,25 @@ namespace Org.OpenAPITools.Api /// /// Logs exceptions that occur while retrieving the server response /// - /// - /// - /// - private void OnErrorRolesReportGetDefaultImplementation(Exception exception, string pathFormat, string path) + /// + /// + /// + private void OnErrorRolesReportGetDefaultImplementation(Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar) { - bool suppressDefaultLog = false; - OnErrorRolesReportGet(ref suppressDefaultLog, exception, pathFormat, path); - if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while sending the request to the server."); + bool suppressDefaultLogLocalVar = false; + OnErrorRolesReportGet(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar); + if (!suppressDefaultLogLocalVar) + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling /// - /// - /// - /// - /// - partial void OnErrorRolesReportGet(ref bool suppressDefaultLog, Exception exception, string pathFormat, string path); + /// + /// + /// + /// + partial void OnErrorRolesReportGet(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar); /// /// @@ -1181,25 +1181,25 @@ namespace Org.OpenAPITools.Api /// /// Logs exceptions that occur while retrieving the server response /// - /// - /// - /// - private void OnErrorTestDefaultImplementation(Exception exception, string pathFormat, string path) + /// + /// + /// + private void OnErrorTestDefaultImplementation(Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar) { - bool suppressDefaultLog = false; - OnErrorTest(ref suppressDefaultLog, exception, pathFormat, path); - if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while sending the request to the server."); + bool suppressDefaultLogLocalVar = false; + OnErrorTest(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar); + if (!suppressDefaultLogLocalVar) + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling /// - /// - /// - /// - /// - partial void OnErrorTest(ref bool suppressDefaultLog, Exception exception, string pathFormat, string path); + /// + /// + /// + /// + partial void OnErrorTest(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar); /// /// Retrieve an existing Notificationtest's Elements diff --git a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Api/FakeApi.cs b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Api/FakeApi.cs index cebaacd2acf..55126502478 100644 --- a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Api/FakeApi.cs +++ b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Api/FakeApi.cs @@ -1313,25 +1313,25 @@ namespace Org.OpenAPITools.Api /// /// Logs exceptions that occur while retrieving the server response /// - /// - /// - /// - private void OnErrorFakeHealthGetDefaultImplementation(Exception exception, string pathFormat, string path) + /// + /// + /// + private void OnErrorFakeHealthGetDefaultImplementation(Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar) { - bool suppressDefaultLog = false; - OnErrorFakeHealthGet(ref suppressDefaultLog, exception, pathFormat, path); - if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while sending the request to the server."); + bool suppressDefaultLogLocalVar = false; + OnErrorFakeHealthGet(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar); + if (!suppressDefaultLogLocalVar) + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling /// - /// - /// - /// - /// - partial void OnErrorFakeHealthGet(ref bool suppressDefaultLog, Exception exception, string pathFormat, string path); + /// + /// + /// + /// + partial void OnErrorFakeHealthGet(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar); /// /// Health check endpoint @@ -1511,27 +1511,27 @@ namespace Org.OpenAPITools.Api /// /// Logs exceptions that occur while retrieving the server response /// - /// - /// - /// + /// + /// + /// /// - private void OnErrorFakeOuterBooleanSerializeDefaultImplementation(Exception exception, string pathFormat, string path, Option body) + private void OnErrorFakeOuterBooleanSerializeDefaultImplementation(Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, Option body) { - bool suppressDefaultLog = false; - OnErrorFakeOuterBooleanSerialize(ref suppressDefaultLog, exception, pathFormat, path, body); - if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while sending the request to the server."); + bool suppressDefaultLogLocalVar = false; + OnErrorFakeOuterBooleanSerialize(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, body); + if (!suppressDefaultLogLocalVar) + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling /// - /// - /// - /// - /// + /// + /// + /// + /// /// - partial void OnErrorFakeOuterBooleanSerialize(ref bool suppressDefaultLog, Exception exception, string pathFormat, string path, Option body); + partial void OnErrorFakeOuterBooleanSerialize(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, Option body); /// /// Test serialization of outer boolean types @@ -1740,27 +1740,27 @@ namespace Org.OpenAPITools.Api /// /// Logs exceptions that occur while retrieving the server response /// - /// - /// - /// + /// + /// + /// /// - private void OnErrorFakeOuterCompositeSerializeDefaultImplementation(Exception exception, string pathFormat, string path, Option outerComposite) + private void OnErrorFakeOuterCompositeSerializeDefaultImplementation(Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, Option outerComposite) { - bool suppressDefaultLog = false; - OnErrorFakeOuterCompositeSerialize(ref suppressDefaultLog, exception, pathFormat, path, outerComposite); - if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while sending the request to the server."); + bool suppressDefaultLogLocalVar = false; + OnErrorFakeOuterCompositeSerialize(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, outerComposite); + if (!suppressDefaultLogLocalVar) + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling /// - /// - /// - /// - /// + /// + /// + /// + /// /// - partial void OnErrorFakeOuterCompositeSerialize(ref bool suppressDefaultLog, Exception exception, string pathFormat, string path, Option outerComposite); + partial void OnErrorFakeOuterCompositeSerialize(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, Option outerComposite); /// /// Test serialization of object with outer number type @@ -1960,27 +1960,27 @@ namespace Org.OpenAPITools.Api /// /// Logs exceptions that occur while retrieving the server response /// - /// - /// - /// + /// + /// + /// /// - private void OnErrorFakeOuterNumberSerializeDefaultImplementation(Exception exception, string pathFormat, string path, Option body) + private void OnErrorFakeOuterNumberSerializeDefaultImplementation(Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, Option body) { - bool suppressDefaultLog = false; - OnErrorFakeOuterNumberSerialize(ref suppressDefaultLog, exception, pathFormat, path, body); - if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while sending the request to the server."); + bool suppressDefaultLogLocalVar = false; + OnErrorFakeOuterNumberSerialize(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, body); + if (!suppressDefaultLogLocalVar) + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling /// - /// - /// - /// - /// + /// + /// + /// + /// /// - partial void OnErrorFakeOuterNumberSerialize(ref bool suppressDefaultLog, Exception exception, string pathFormat, string path, Option body); + partial void OnErrorFakeOuterNumberSerialize(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, Option body); /// /// Test serialization of outer number types @@ -2191,29 +2191,29 @@ namespace Org.OpenAPITools.Api /// /// Logs exceptions that occur while retrieving the server response /// - /// - /// - /// + /// + /// + /// /// /// - private void OnErrorFakeOuterStringSerializeDefaultImplementation(Exception exception, string pathFormat, string path, Guid requiredStringUuid, Option body) + private void OnErrorFakeOuterStringSerializeDefaultImplementation(Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, Guid requiredStringUuid, Option body) { - bool suppressDefaultLog = false; - OnErrorFakeOuterStringSerialize(ref suppressDefaultLog, exception, pathFormat, path, requiredStringUuid, body); - if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while sending the request to the server."); + bool suppressDefaultLogLocalVar = false; + OnErrorFakeOuterStringSerialize(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, requiredStringUuid, body); + if (!suppressDefaultLogLocalVar) + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling /// - /// - /// - /// - /// + /// + /// + /// + /// /// /// - partial void OnErrorFakeOuterStringSerialize(ref bool suppressDefaultLog, Exception exception, string pathFormat, string path, Guid requiredStringUuid, Option body); + partial void OnErrorFakeOuterStringSerialize(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, Guid requiredStringUuid, Option body); /// /// Test serialization of outer string types @@ -2417,25 +2417,25 @@ namespace Org.OpenAPITools.Api /// /// Logs exceptions that occur while retrieving the server response /// - /// - /// - /// - private void OnErrorGetArrayOfEnumsDefaultImplementation(Exception exception, string pathFormat, string path) + /// + /// + /// + private void OnErrorGetArrayOfEnumsDefaultImplementation(Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar) { - bool suppressDefaultLog = false; - OnErrorGetArrayOfEnums(ref suppressDefaultLog, exception, pathFormat, path); - if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while sending the request to the server."); + bool suppressDefaultLogLocalVar = false; + OnErrorGetArrayOfEnums(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar); + if (!suppressDefaultLogLocalVar) + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling /// - /// - /// - /// - /// - partial void OnErrorGetArrayOfEnums(ref bool suppressDefaultLog, Exception exception, string pathFormat, string path); + /// + /// + /// + /// + partial void OnErrorGetArrayOfEnums(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar); /// /// Array of Enums @@ -2611,25 +2611,25 @@ namespace Org.OpenAPITools.Api /// /// Logs exceptions that occur while retrieving the server response /// - /// - /// - /// - private void OnErrorGetMixedAnyOfDefaultImplementation(Exception exception, string pathFormat, string path) + /// + /// + /// + private void OnErrorGetMixedAnyOfDefaultImplementation(Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar) { - bool suppressDefaultLog = false; - OnErrorGetMixedAnyOf(ref suppressDefaultLog, exception, pathFormat, path); - if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while sending the request to the server."); + bool suppressDefaultLogLocalVar = false; + OnErrorGetMixedAnyOf(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar); + if (!suppressDefaultLogLocalVar) + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling /// - /// - /// - /// - /// - partial void OnErrorGetMixedAnyOf(ref bool suppressDefaultLog, Exception exception, string pathFormat, string path); + /// + /// + /// + /// + partial void OnErrorGetMixedAnyOf(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar); /// /// Test mixed type anyOf deserialization @@ -2805,25 +2805,25 @@ namespace Org.OpenAPITools.Api /// /// Logs exceptions that occur while retrieving the server response /// - /// - /// - /// - private void OnErrorGetMixedOneOfDefaultImplementation(Exception exception, string pathFormat, string path) + /// + /// + /// + private void OnErrorGetMixedOneOfDefaultImplementation(Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar) { - bool suppressDefaultLog = false; - OnErrorGetMixedOneOf(ref suppressDefaultLog, exception, pathFormat, path); - if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while sending the request to the server."); + bool suppressDefaultLogLocalVar = false; + OnErrorGetMixedOneOf(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar); + if (!suppressDefaultLogLocalVar) + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling /// - /// - /// - /// - /// - partial void OnErrorGetMixedOneOf(ref bool suppressDefaultLog, Exception exception, string pathFormat, string path); + /// + /// + /// + /// + partial void OnErrorGetMixedOneOf(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar); /// /// Test mixed type oneOf deserialization @@ -3014,27 +3014,27 @@ namespace Org.OpenAPITools.Api /// /// Logs exceptions that occur while retrieving the server response /// - /// - /// - /// + /// + /// + /// /// - private void OnErrorTestAdditionalPropertiesReferenceDefaultImplementation(Exception exception, string pathFormat, string path, Dictionary requestBody) + private void OnErrorTestAdditionalPropertiesReferenceDefaultImplementation(Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, Dictionary requestBody) { - bool suppressDefaultLog = false; - OnErrorTestAdditionalPropertiesReference(ref suppressDefaultLog, exception, pathFormat, path, requestBody); - if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while sending the request to the server."); + bool suppressDefaultLogLocalVar = false; + OnErrorTestAdditionalPropertiesReference(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, requestBody); + if (!suppressDefaultLogLocalVar) + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling /// - /// - /// - /// - /// + /// + /// + /// + /// /// - partial void OnErrorTestAdditionalPropertiesReference(ref bool suppressDefaultLog, Exception exception, string pathFormat, string path, Dictionary requestBody); + partial void OnErrorTestAdditionalPropertiesReference(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, Dictionary requestBody); /// /// test referenced additionalProperties @@ -3203,27 +3203,27 @@ namespace Org.OpenAPITools.Api /// /// Logs exceptions that occur while retrieving the server response /// - /// - /// - /// + /// + /// + /// /// - private void OnErrorTestBodyWithFileSchemaDefaultImplementation(Exception exception, string pathFormat, string path, FileSchemaTestClass fileSchemaTestClass) + private void OnErrorTestBodyWithFileSchemaDefaultImplementation(Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, FileSchemaTestClass fileSchemaTestClass) { - bool suppressDefaultLog = false; - OnErrorTestBodyWithFileSchema(ref suppressDefaultLog, exception, pathFormat, path, fileSchemaTestClass); - if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while sending the request to the server."); + bool suppressDefaultLogLocalVar = false; + OnErrorTestBodyWithFileSchema(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, fileSchemaTestClass); + if (!suppressDefaultLogLocalVar) + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling /// - /// - /// - /// - /// + /// + /// + /// + /// /// - partial void OnErrorTestBodyWithFileSchema(ref bool suppressDefaultLog, Exception exception, string pathFormat, string path, FileSchemaTestClass fileSchemaTestClass); + partial void OnErrorTestBodyWithFileSchema(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, FileSchemaTestClass fileSchemaTestClass); /// /// For this test, the body for this request much reference a schema named `File`. @@ -3398,29 +3398,29 @@ namespace Org.OpenAPITools.Api /// /// Logs exceptions that occur while retrieving the server response /// - /// - /// - /// + /// + /// + /// /// /// - private void OnErrorTestBodyWithQueryParamsDefaultImplementation(Exception exception, string pathFormat, string path, string query, User user) + private void OnErrorTestBodyWithQueryParamsDefaultImplementation(Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, string query, User user) { - bool suppressDefaultLog = false; - OnErrorTestBodyWithQueryParams(ref suppressDefaultLog, exception, pathFormat, path, query, user); - if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while sending the request to the server."); + bool suppressDefaultLogLocalVar = false; + OnErrorTestBodyWithQueryParams(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, query, user); + if (!suppressDefaultLogLocalVar) + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling /// - /// - /// - /// - /// + /// + /// + /// + /// /// /// - partial void OnErrorTestBodyWithQueryParams(ref bool suppressDefaultLog, Exception exception, string pathFormat, string path, string query, User user); + partial void OnErrorTestBodyWithQueryParams(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, string query, User user); /// /// @@ -3597,27 +3597,27 @@ namespace Org.OpenAPITools.Api /// /// Logs exceptions that occur while retrieving the server response /// - /// - /// - /// + /// + /// + /// /// - private void OnErrorTestClientModelDefaultImplementation(Exception exception, string pathFormat, string path, ModelClient modelClient) + private void OnErrorTestClientModelDefaultImplementation(Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, ModelClient modelClient) { - bool suppressDefaultLog = false; - OnErrorTestClientModel(ref suppressDefaultLog, exception, pathFormat, path, modelClient); - if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while sending the request to the server."); + bool suppressDefaultLogLocalVar = false; + OnErrorTestClientModel(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, modelClient); + if (!suppressDefaultLogLocalVar) + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling /// - /// - /// - /// - /// + /// + /// + /// + /// /// - partial void OnErrorTestClientModel(ref bool suppressDefaultLog, Exception exception, string pathFormat, string path, ModelClient modelClient); + partial void OnErrorTestClientModel(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, ModelClient modelClient); /// /// To test \"client\" model To test \"client\" model @@ -3873,9 +3873,9 @@ namespace Org.OpenAPITools.Api /// /// Logs exceptions that occur while retrieving the server response /// - /// - /// - /// + /// + /// + /// /// /// /// @@ -3890,21 +3890,21 @@ namespace Org.OpenAPITools.Api /// /// /// - private void OnErrorTestEndpointParametersDefaultImplementation(Exception exception, string pathFormat, string path, decimal number, string patternWithoutDelimiter, byte[] varByte, double varDouble, Option binary, Option callback, Option date, Option dateTime, Option int32, Option int64, Option integer, Option password, Option varFloat, Option varString) + private void OnErrorTestEndpointParametersDefaultImplementation(Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, decimal number, string patternWithoutDelimiter, byte[] varByte, double varDouble, Option binary, Option callback, Option date, Option dateTime, Option int32, Option int64, Option integer, Option password, Option varFloat, Option varString) { - bool suppressDefaultLog = false; - OnErrorTestEndpointParameters(ref suppressDefaultLog, exception, pathFormat, path, number, patternWithoutDelimiter, varByte, varDouble, binary, callback, date, dateTime, int32, int64, integer, password, varFloat, varString); - if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while sending the request to the server."); + bool suppressDefaultLogLocalVar = false; + OnErrorTestEndpointParameters(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, number, patternWithoutDelimiter, varByte, varDouble, binary, callback, date, dateTime, int32, int64, integer, password, varFloat, varString); + if (!suppressDefaultLogLocalVar) + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling /// - /// - /// - /// - /// + /// + /// + /// + /// /// /// /// @@ -3919,7 +3919,7 @@ namespace Org.OpenAPITools.Api /// /// /// - partial void OnErrorTestEndpointParameters(ref bool suppressDefaultLog, Exception exception, string pathFormat, string path, decimal number, string patternWithoutDelimiter, byte[] varByte, double varDouble, Option binary, Option callback, Option date, Option dateTime, Option int32, Option int64, Option integer, Option password, Option varFloat, Option varString); + partial void OnErrorTestEndpointParameters(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, decimal number, string patternWithoutDelimiter, byte[] varByte, double varDouble, Option binary, Option callback, Option date, Option dateTime, Option int32, Option int64, Option integer, Option password, Option varFloat, Option varString); /// /// Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트 Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트 @@ -4207,9 +4207,9 @@ namespace Org.OpenAPITools.Api /// /// Logs exceptions that occur while retrieving the server response /// - /// - /// - /// + /// + /// + /// /// /// /// @@ -4218,21 +4218,21 @@ namespace Org.OpenAPITools.Api /// /// /// - private void OnErrorTestEnumParametersDefaultImplementation(Exception exception, string pathFormat, string path, Option enumFormString, Option> enumFormStringArray, Option enumHeaderString, Option> enumHeaderStringArray, Option enumQueryDouble, Option enumQueryInteger, Option enumQueryString, Option> enumQueryStringArray) + private void OnErrorTestEnumParametersDefaultImplementation(Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, Option enumFormString, Option> enumFormStringArray, Option enumHeaderString, Option> enumHeaderStringArray, Option enumQueryDouble, Option enumQueryInteger, Option enumQueryString, Option> enumQueryStringArray) { - bool suppressDefaultLog = false; - OnErrorTestEnumParameters(ref suppressDefaultLog, exception, pathFormat, path, enumFormString, enumFormStringArray, enumHeaderString, enumHeaderStringArray, enumQueryDouble, enumQueryInteger, enumQueryString, enumQueryStringArray); - if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while sending the request to the server."); + bool suppressDefaultLogLocalVar = false; + OnErrorTestEnumParameters(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, enumFormString, enumFormStringArray, enumHeaderString, enumHeaderStringArray, enumQueryDouble, enumQueryInteger, enumQueryString, enumQueryStringArray); + if (!suppressDefaultLogLocalVar) + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling /// - /// - /// - /// - /// + /// + /// + /// + /// /// /// /// @@ -4241,7 +4241,7 @@ namespace Org.OpenAPITools.Api /// /// /// - partial void OnErrorTestEnumParameters(ref bool suppressDefaultLog, Exception exception, string pathFormat, string path, Option enumFormString, Option> enumFormStringArray, Option enumHeaderString, Option> enumHeaderStringArray, Option enumQueryDouble, Option enumQueryInteger, Option enumQueryString, Option> enumQueryStringArray); + partial void OnErrorTestEnumParameters(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, Option enumFormString, Option> enumFormStringArray, Option enumHeaderString, Option> enumHeaderStringArray, Option enumQueryDouble, Option enumQueryInteger, Option enumQueryString, Option> enumQueryStringArray); /// /// To test enum parameters To test enum parameters @@ -4459,37 +4459,37 @@ namespace Org.OpenAPITools.Api /// /// Logs exceptions that occur while retrieving the server response /// - /// - /// - /// + /// + /// + /// /// /// /// /// /// /// - private void OnErrorTestGroupParametersDefaultImplementation(Exception exception, string pathFormat, string path, bool requiredBooleanGroup, long requiredInt64Group, int requiredStringGroup, Option booleanGroup, Option int64Group, Option stringGroup) + private void OnErrorTestGroupParametersDefaultImplementation(Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, bool requiredBooleanGroup, long requiredInt64Group, int requiredStringGroup, Option booleanGroup, Option int64Group, Option stringGroup) { - bool suppressDefaultLog = false; - OnErrorTestGroupParameters(ref suppressDefaultLog, exception, pathFormat, path, requiredBooleanGroup, requiredInt64Group, requiredStringGroup, booleanGroup, int64Group, stringGroup); - if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while sending the request to the server."); + bool suppressDefaultLogLocalVar = false; + OnErrorTestGroupParameters(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, requiredBooleanGroup, requiredInt64Group, requiredStringGroup, booleanGroup, int64Group, stringGroup); + if (!suppressDefaultLogLocalVar) + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling /// - /// - /// - /// - /// + /// + /// + /// + /// /// /// /// /// /// /// - partial void OnErrorTestGroupParameters(ref bool suppressDefaultLog, Exception exception, string pathFormat, string path, bool requiredBooleanGroup, long requiredInt64Group, int requiredStringGroup, Option booleanGroup, Option int64Group, Option stringGroup); + partial void OnErrorTestGroupParameters(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, bool requiredBooleanGroup, long requiredInt64Group, int requiredStringGroup, Option booleanGroup, Option int64Group, Option stringGroup); /// /// Fake endpoint to test group parameters (optional) Fake endpoint to test group parameters (optional) @@ -4682,27 +4682,27 @@ namespace Org.OpenAPITools.Api /// /// Logs exceptions that occur while retrieving the server response /// - /// - /// - /// + /// + /// + /// /// - private void OnErrorTestInlineAdditionalPropertiesDefaultImplementation(Exception exception, string pathFormat, string path, Dictionary requestBody) + private void OnErrorTestInlineAdditionalPropertiesDefaultImplementation(Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, Dictionary requestBody) { - bool suppressDefaultLog = false; - OnErrorTestInlineAdditionalProperties(ref suppressDefaultLog, exception, pathFormat, path, requestBody); - if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while sending the request to the server."); + bool suppressDefaultLogLocalVar = false; + OnErrorTestInlineAdditionalProperties(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, requestBody); + if (!suppressDefaultLogLocalVar) + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling /// - /// - /// - /// - /// + /// + /// + /// + /// /// - partial void OnErrorTestInlineAdditionalProperties(ref bool suppressDefaultLog, Exception exception, string pathFormat, string path, Dictionary requestBody); + partial void OnErrorTestInlineAdditionalProperties(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, Dictionary requestBody); /// /// test inline additionalProperties @@ -4871,27 +4871,27 @@ namespace Org.OpenAPITools.Api /// /// Logs exceptions that occur while retrieving the server response /// - /// - /// - /// + /// + /// + /// /// - private void OnErrorTestInlineFreeformAdditionalPropertiesDefaultImplementation(Exception exception, string pathFormat, string path, TestInlineFreeformAdditionalPropertiesRequest testInlineFreeformAdditionalPropertiesRequest) + private void OnErrorTestInlineFreeformAdditionalPropertiesDefaultImplementation(Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, TestInlineFreeformAdditionalPropertiesRequest testInlineFreeformAdditionalPropertiesRequest) { - bool suppressDefaultLog = false; - OnErrorTestInlineFreeformAdditionalProperties(ref suppressDefaultLog, exception, pathFormat, path, testInlineFreeformAdditionalPropertiesRequest); - if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while sending the request to the server."); + bool suppressDefaultLogLocalVar = false; + OnErrorTestInlineFreeformAdditionalProperties(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, testInlineFreeformAdditionalPropertiesRequest); + if (!suppressDefaultLogLocalVar) + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling /// - /// - /// - /// - /// + /// + /// + /// + /// /// - partial void OnErrorTestInlineFreeformAdditionalProperties(ref bool suppressDefaultLog, Exception exception, string pathFormat, string path, TestInlineFreeformAdditionalPropertiesRequest testInlineFreeformAdditionalPropertiesRequest); + partial void OnErrorTestInlineFreeformAdditionalProperties(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, TestInlineFreeformAdditionalPropertiesRequest testInlineFreeformAdditionalPropertiesRequest); /// /// test inline free-form additionalProperties @@ -5066,29 +5066,29 @@ namespace Org.OpenAPITools.Api /// /// Logs exceptions that occur while retrieving the server response /// - /// - /// - /// + /// + /// + /// /// /// - private void OnErrorTestJsonFormDataDefaultImplementation(Exception exception, string pathFormat, string path, string param, string param2) + private void OnErrorTestJsonFormDataDefaultImplementation(Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, string param, string param2) { - bool suppressDefaultLog = false; - OnErrorTestJsonFormData(ref suppressDefaultLog, exception, pathFormat, path, param, param2); - if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while sending the request to the server."); + bool suppressDefaultLogLocalVar = false; + OnErrorTestJsonFormData(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, param, param2); + if (!suppressDefaultLogLocalVar) + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling /// - /// - /// - /// - /// + /// + /// + /// + /// /// /// - partial void OnErrorTestJsonFormData(ref bool suppressDefaultLog, Exception exception, string pathFormat, string path, string param, string param2); + partial void OnErrorTestJsonFormData(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, string param, string param2); /// /// test json serialization of form data @@ -5307,9 +5307,9 @@ namespace Org.OpenAPITools.Api /// /// Logs exceptions that occur while retrieving the server response /// - /// - /// - /// + /// + /// + /// /// /// /// @@ -5319,21 +5319,21 @@ namespace Org.OpenAPITools.Api /// /// /// - private void OnErrorTestQueryParameterCollectionFormatDefaultImplementation(Exception exception, string pathFormat, string path, List context, List http, List ioutil, List pipe, string requiredNotNullable, List url, Option notRequiredNotNullable, Option notRequiredNullable, string requiredNullable) + private void OnErrorTestQueryParameterCollectionFormatDefaultImplementation(Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, List context, List http, List ioutil, List pipe, string requiredNotNullable, List url, Option notRequiredNotNullable, Option notRequiredNullable, string requiredNullable) { - bool suppressDefaultLog = false; - OnErrorTestQueryParameterCollectionFormat(ref suppressDefaultLog, exception, pathFormat, path, context, http, ioutil, pipe, requiredNotNullable, url, notRequiredNotNullable, notRequiredNullable, requiredNullable); - if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while sending the request to the server."); + bool suppressDefaultLogLocalVar = false; + OnErrorTestQueryParameterCollectionFormat(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, context, http, ioutil, pipe, requiredNotNullable, url, notRequiredNotNullable, notRequiredNullable, requiredNullable); + if (!suppressDefaultLogLocalVar) + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling /// - /// - /// - /// - /// + /// + /// + /// + /// /// /// /// @@ -5343,7 +5343,7 @@ namespace Org.OpenAPITools.Api /// /// /// - partial void OnErrorTestQueryParameterCollectionFormat(ref bool suppressDefaultLog, Exception exception, string pathFormat, string path, List context, List http, List ioutil, List pipe, string requiredNotNullable, List url, Option notRequiredNotNullable, Option notRequiredNullable, string requiredNullable); + partial void OnErrorTestQueryParameterCollectionFormat(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, List context, List http, List ioutil, List pipe, string requiredNotNullable, List url, Option notRequiredNotNullable, Option notRequiredNullable, string requiredNullable); /// /// To test the collection format in query parameters @@ -5533,27 +5533,27 @@ namespace Org.OpenAPITools.Api /// /// Logs exceptions that occur while retrieving the server response /// - /// - /// - /// + /// + /// + /// /// - private void OnErrorTestStringMapReferenceDefaultImplementation(Exception exception, string pathFormat, string path, Dictionary requestBody) + private void OnErrorTestStringMapReferenceDefaultImplementation(Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, Dictionary requestBody) { - bool suppressDefaultLog = false; - OnErrorTestStringMapReference(ref suppressDefaultLog, exception, pathFormat, path, requestBody); - if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while sending the request to the server."); + bool suppressDefaultLogLocalVar = false; + OnErrorTestStringMapReference(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, requestBody); + if (!suppressDefaultLogLocalVar) + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling /// - /// - /// - /// - /// + /// + /// + /// + /// /// - partial void OnErrorTestStringMapReference(ref bool suppressDefaultLog, Exception exception, string pathFormat, string path, Dictionary requestBody); + partial void OnErrorTestStringMapReference(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, Dictionary requestBody); /// /// test referenced string map diff --git a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Api/FakeClassnameTags123Api.cs b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Api/FakeClassnameTags123Api.cs index 7ef4632bb3b..a12284afb01 100644 --- a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Api/FakeClassnameTags123Api.cs +++ b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Api/FakeClassnameTags123Api.cs @@ -207,27 +207,27 @@ namespace Org.OpenAPITools.Api /// /// Logs exceptions that occur while retrieving the server response /// - /// - /// - /// + /// + /// + /// /// - private void OnErrorTestClassnameDefaultImplementation(Exception exception, string pathFormat, string path, ModelClient modelClient) + private void OnErrorTestClassnameDefaultImplementation(Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, ModelClient modelClient) { - bool suppressDefaultLog = false; - OnErrorTestClassname(ref suppressDefaultLog, exception, pathFormat, path, modelClient); - if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while sending the request to the server."); + bool suppressDefaultLogLocalVar = false; + OnErrorTestClassname(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, modelClient); + if (!suppressDefaultLogLocalVar) + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling /// - /// - /// - /// - /// + /// + /// + /// + /// /// - partial void OnErrorTestClassname(ref bool suppressDefaultLog, Exception exception, string pathFormat, string path, ModelClient modelClient); + partial void OnErrorTestClassname(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, ModelClient modelClient); /// /// To test class name in snake case To test class name in snake case diff --git a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Api/PetApi.cs b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Api/PetApi.cs index cc408b9d0fa..0350d428124 100644 --- a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Api/PetApi.cs +++ b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Api/PetApi.cs @@ -711,27 +711,27 @@ namespace Org.OpenAPITools.Api /// /// Logs exceptions that occur while retrieving the server response /// - /// - /// - /// + /// + /// + /// /// - private void OnErrorAddPetDefaultImplementation(Exception exception, string pathFormat, string path, Pet pet) + private void OnErrorAddPetDefaultImplementation(Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, Pet pet) { - bool suppressDefaultLog = false; - OnErrorAddPet(ref suppressDefaultLog, exception, pathFormat, path, pet); - if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while sending the request to the server."); + bool suppressDefaultLogLocalVar = false; + OnErrorAddPet(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, pet); + if (!suppressDefaultLogLocalVar) + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling /// - /// - /// - /// - /// + /// + /// + /// + /// /// - partial void OnErrorAddPet(ref bool suppressDefaultLog, Exception exception, string pathFormat, string path, Pet pet); + partial void OnErrorAddPet(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, Pet pet); /// /// Add a new pet to the store @@ -924,29 +924,29 @@ namespace Org.OpenAPITools.Api /// /// Logs exceptions that occur while retrieving the server response /// - /// - /// - /// + /// + /// + /// /// /// - private void OnErrorDeletePetDefaultImplementation(Exception exception, string pathFormat, string path, long petId, Option apiKey) + private void OnErrorDeletePetDefaultImplementation(Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, long petId, Option apiKey) { - bool suppressDefaultLog = false; - OnErrorDeletePet(ref suppressDefaultLog, exception, pathFormat, path, petId, apiKey); - if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while sending the request to the server."); + bool suppressDefaultLogLocalVar = false; + OnErrorDeletePet(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, petId, apiKey); + if (!suppressDefaultLogLocalVar) + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling /// - /// - /// - /// - /// + /// + /// + /// + /// /// /// - partial void OnErrorDeletePet(ref bool suppressDefaultLog, Exception exception, string pathFormat, string path, long petId, Option apiKey); + partial void OnErrorDeletePet(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, long petId, Option apiKey); /// /// Deletes a pet @@ -1119,27 +1119,27 @@ namespace Org.OpenAPITools.Api /// /// Logs exceptions that occur while retrieving the server response /// - /// - /// - /// + /// + /// + /// /// - private void OnErrorFindPetsByStatusDefaultImplementation(Exception exception, string pathFormat, string path, List status) + private void OnErrorFindPetsByStatusDefaultImplementation(Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, List status) { - bool suppressDefaultLog = false; - OnErrorFindPetsByStatus(ref suppressDefaultLog, exception, pathFormat, path, status); - if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while sending the request to the server."); + bool suppressDefaultLogLocalVar = false; + OnErrorFindPetsByStatus(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, status); + if (!suppressDefaultLogLocalVar) + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling /// - /// - /// - /// - /// + /// + /// + /// + /// /// - partial void OnErrorFindPetsByStatus(ref bool suppressDefaultLog, Exception exception, string pathFormat, string path, List status); + partial void OnErrorFindPetsByStatus(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, List status); /// /// Finds Pets by status Multiple status values can be provided with comma separated strings @@ -1396,27 +1396,27 @@ namespace Org.OpenAPITools.Api /// /// Logs exceptions that occur while retrieving the server response /// - /// - /// - /// + /// + /// + /// /// - private void OnErrorFindPetsByTagsDefaultImplementation(Exception exception, string pathFormat, string path, List tags) + private void OnErrorFindPetsByTagsDefaultImplementation(Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, List tags) { - bool suppressDefaultLog = false; - OnErrorFindPetsByTags(ref suppressDefaultLog, exception, pathFormat, path, tags); - if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while sending the request to the server."); + bool suppressDefaultLogLocalVar = false; + OnErrorFindPetsByTags(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, tags); + if (!suppressDefaultLogLocalVar) + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling /// - /// - /// - /// - /// + /// + /// + /// + /// /// - partial void OnErrorFindPetsByTags(ref bool suppressDefaultLog, Exception exception, string pathFormat, string path, List tags); + partial void OnErrorFindPetsByTags(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, List tags); /// /// Finds Pets by tags Multiple tags can be provided with comma separated strings. Use tag1, tag2, tag3 for testing. @@ -1636,27 +1636,27 @@ namespace Org.OpenAPITools.Api /// /// Logs exceptions that occur while retrieving the server response /// - /// - /// - /// + /// + /// + /// /// - private void OnErrorGetPetByIdDefaultImplementation(Exception exception, string pathFormat, string path, long petId) + private void OnErrorGetPetByIdDefaultImplementation(Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, long petId) { - bool suppressDefaultLog = false; - OnErrorGetPetById(ref suppressDefaultLog, exception, pathFormat, path, petId); - if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while sending the request to the server."); + bool suppressDefaultLogLocalVar = false; + OnErrorGetPetById(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, petId); + if (!suppressDefaultLogLocalVar) + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling /// - /// - /// - /// - /// + /// + /// + /// + /// /// - partial void OnErrorGetPetById(ref bool suppressDefaultLog, Exception exception, string pathFormat, string path, long petId); + partial void OnErrorGetPetById(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, long petId); /// /// Find pet by ID Returns a single pet @@ -1882,27 +1882,27 @@ namespace Org.OpenAPITools.Api /// /// Logs exceptions that occur while retrieving the server response /// - /// - /// - /// + /// + /// + /// /// - private void OnErrorUpdatePetDefaultImplementation(Exception exception, string pathFormat, string path, Pet pet) + private void OnErrorUpdatePetDefaultImplementation(Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, Pet pet) { - bool suppressDefaultLog = false; - OnErrorUpdatePet(ref suppressDefaultLog, exception, pathFormat, path, pet); - if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while sending the request to the server."); + bool suppressDefaultLogLocalVar = false; + OnErrorUpdatePet(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, pet); + if (!suppressDefaultLogLocalVar) + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling /// - /// - /// - /// - /// + /// + /// + /// + /// /// - partial void OnErrorUpdatePet(ref bool suppressDefaultLog, Exception exception, string pathFormat, string path, Pet pet); + partial void OnErrorUpdatePet(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, Pet pet); /// /// Update an existing pet @@ -2113,31 +2113,31 @@ namespace Org.OpenAPITools.Api /// /// Logs exceptions that occur while retrieving the server response /// - /// - /// - /// + /// + /// + /// /// /// /// - private void OnErrorUpdatePetWithFormDefaultImplementation(Exception exception, string pathFormat, string path, long petId, Option name, Option status) + private void OnErrorUpdatePetWithFormDefaultImplementation(Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, long petId, Option name, Option status) { - bool suppressDefaultLog = false; - OnErrorUpdatePetWithForm(ref suppressDefaultLog, exception, pathFormat, path, petId, name, status); - if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while sending the request to the server."); + bool suppressDefaultLogLocalVar = false; + OnErrorUpdatePetWithForm(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, petId, name, status); + if (!suppressDefaultLogLocalVar) + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling /// - /// - /// - /// - /// + /// + /// + /// + /// /// /// /// - partial void OnErrorUpdatePetWithForm(ref bool suppressDefaultLog, Exception exception, string pathFormat, string path, long petId, Option name, Option status); + partial void OnErrorUpdatePetWithForm(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, long petId, Option name, Option status); /// /// Updates a pet in the store with form data @@ -2338,31 +2338,31 @@ namespace Org.OpenAPITools.Api /// /// Logs exceptions that occur while retrieving the server response /// - /// - /// - /// + /// + /// + /// /// /// /// - private void OnErrorUploadFileDefaultImplementation(Exception exception, string pathFormat, string path, long petId, Option additionalMetadata, Option file) + private void OnErrorUploadFileDefaultImplementation(Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, long petId, Option additionalMetadata, Option file) { - bool suppressDefaultLog = false; - OnErrorUploadFile(ref suppressDefaultLog, exception, pathFormat, path, petId, additionalMetadata, file); - if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while sending the request to the server."); + bool suppressDefaultLogLocalVar = false; + OnErrorUploadFile(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, petId, additionalMetadata, file); + if (!suppressDefaultLogLocalVar) + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling /// - /// - /// - /// - /// + /// + /// + /// + /// /// /// /// - partial void OnErrorUploadFile(ref bool suppressDefaultLog, Exception exception, string pathFormat, string path, long petId, Option additionalMetadata, Option file); + partial void OnErrorUploadFile(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, long petId, Option additionalMetadata, Option file); /// /// uploads an image @@ -2604,31 +2604,31 @@ namespace Org.OpenAPITools.Api /// /// Logs exceptions that occur while retrieving the server response /// - /// - /// - /// + /// + /// + /// /// /// /// - private void OnErrorUploadFileWithRequiredFileDefaultImplementation(Exception exception, string pathFormat, string path, long petId, System.IO.Stream requiredFile, Option additionalMetadata) + private void OnErrorUploadFileWithRequiredFileDefaultImplementation(Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, long petId, System.IO.Stream requiredFile, Option additionalMetadata) { - bool suppressDefaultLog = false; - OnErrorUploadFileWithRequiredFile(ref suppressDefaultLog, exception, pathFormat, path, petId, requiredFile, additionalMetadata); - if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while sending the request to the server."); + bool suppressDefaultLogLocalVar = false; + OnErrorUploadFileWithRequiredFile(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, petId, requiredFile, additionalMetadata); + if (!suppressDefaultLogLocalVar) + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling /// - /// - /// - /// - /// + /// + /// + /// + /// /// /// /// - partial void OnErrorUploadFileWithRequiredFile(ref bool suppressDefaultLog, Exception exception, string pathFormat, string path, long petId, System.IO.Stream requiredFile, Option additionalMetadata); + partial void OnErrorUploadFileWithRequiredFile(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, long petId, System.IO.Stream requiredFile, Option additionalMetadata); /// /// uploads an image (required) diff --git a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Api/StoreApi.cs b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Api/StoreApi.cs index f99d2c20a16..b3cd5adcbcc 100644 --- a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Api/StoreApi.cs +++ b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Api/StoreApi.cs @@ -394,27 +394,27 @@ namespace Org.OpenAPITools.Api /// /// Logs exceptions that occur while retrieving the server response /// - /// - /// - /// + /// + /// + /// /// - private void OnErrorDeleteOrderDefaultImplementation(Exception exception, string pathFormat, string path, string orderId) + private void OnErrorDeleteOrderDefaultImplementation(Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, string orderId) { - bool suppressDefaultLog = false; - OnErrorDeleteOrder(ref suppressDefaultLog, exception, pathFormat, path, orderId); - if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while sending the request to the server."); + bool suppressDefaultLogLocalVar = false; + OnErrorDeleteOrder(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, orderId); + if (!suppressDefaultLogLocalVar) + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling /// - /// - /// - /// - /// + /// + /// + /// + /// /// - partial void OnErrorDeleteOrder(ref bool suppressDefaultLog, Exception exception, string pathFormat, string path, string orderId); + partial void OnErrorDeleteOrder(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, string orderId); /// /// Delete purchase order by ID For valid response try integer IDs with value < 1000. Anything above 1000 or nonintegers will generate API errors @@ -562,25 +562,25 @@ namespace Org.OpenAPITools.Api /// /// Logs exceptions that occur while retrieving the server response /// - /// - /// - /// - private void OnErrorGetInventoryDefaultImplementation(Exception exception, string pathFormat, string path) + /// + /// + /// + private void OnErrorGetInventoryDefaultImplementation(Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar) { - bool suppressDefaultLog = false; - OnErrorGetInventory(ref suppressDefaultLog, exception, pathFormat, path); - if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while sending the request to the server."); + bool suppressDefaultLogLocalVar = false; + OnErrorGetInventory(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar); + if (!suppressDefaultLogLocalVar) + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling /// - /// - /// - /// - /// - partial void OnErrorGetInventory(ref bool suppressDefaultLog, Exception exception, string pathFormat, string path); + /// + /// + /// + /// + partial void OnErrorGetInventory(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar); /// /// Returns pet inventories by status Returns a map of status codes to quantities @@ -769,27 +769,27 @@ namespace Org.OpenAPITools.Api /// /// Logs exceptions that occur while retrieving the server response /// - /// - /// - /// + /// + /// + /// /// - private void OnErrorGetOrderByIdDefaultImplementation(Exception exception, string pathFormat, string path, long orderId) + private void OnErrorGetOrderByIdDefaultImplementation(Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, long orderId) { - bool suppressDefaultLog = false; - OnErrorGetOrderById(ref suppressDefaultLog, exception, pathFormat, path, orderId); - if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while sending the request to the server."); + bool suppressDefaultLogLocalVar = false; + OnErrorGetOrderById(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, orderId); + if (!suppressDefaultLogLocalVar) + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling /// - /// - /// - /// - /// + /// + /// + /// + /// /// - partial void OnErrorGetOrderById(ref bool suppressDefaultLog, Exception exception, string pathFormat, string path, long orderId); + partial void OnErrorGetOrderById(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, long orderId); /// /// Find purchase order by ID For valid response try integer IDs with value <= 5 or > 10. Other values will generate exceptions @@ -998,27 +998,27 @@ namespace Org.OpenAPITools.Api /// /// Logs exceptions that occur while retrieving the server response /// - /// - /// - /// + /// + /// + /// /// - private void OnErrorPlaceOrderDefaultImplementation(Exception exception, string pathFormat, string path, Order order) + private void OnErrorPlaceOrderDefaultImplementation(Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, Order order) { - bool suppressDefaultLog = false; - OnErrorPlaceOrder(ref suppressDefaultLog, exception, pathFormat, path, order); - if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while sending the request to the server."); + bool suppressDefaultLogLocalVar = false; + OnErrorPlaceOrder(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, order); + if (!suppressDefaultLogLocalVar) + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling /// - /// - /// - /// - /// + /// + /// + /// + /// /// - partial void OnErrorPlaceOrder(ref bool suppressDefaultLog, Exception exception, string pathFormat, string path, Order order); + partial void OnErrorPlaceOrder(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, Order order); /// /// Place an order for a pet diff --git a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Api/UserApi.cs b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Api/UserApi.cs index b84ef2f23b5..788e681d73c 100644 --- a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Api/UserApi.cs +++ b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Api/UserApi.cs @@ -644,27 +644,27 @@ namespace Org.OpenAPITools.Api /// /// Logs exceptions that occur while retrieving the server response /// - /// - /// - /// + /// + /// + /// /// - private void OnErrorCreateUserDefaultImplementation(Exception exception, string pathFormat, string path, User user) + private void OnErrorCreateUserDefaultImplementation(Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, User user) { - bool suppressDefaultLog = false; - OnErrorCreateUser(ref suppressDefaultLog, exception, pathFormat, path, user); - if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while sending the request to the server."); + bool suppressDefaultLogLocalVar = false; + OnErrorCreateUser(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, user); + if (!suppressDefaultLogLocalVar) + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling /// - /// - /// - /// - /// + /// + /// + /// + /// /// - partial void OnErrorCreateUser(ref bool suppressDefaultLog, Exception exception, string pathFormat, string path, User user); + partial void OnErrorCreateUser(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, User user); /// /// Create user This can only be done by the logged in user. @@ -833,27 +833,27 @@ namespace Org.OpenAPITools.Api /// /// Logs exceptions that occur while retrieving the server response /// - /// - /// - /// + /// + /// + /// /// - private void OnErrorCreateUsersWithArrayInputDefaultImplementation(Exception exception, string pathFormat, string path, List user) + private void OnErrorCreateUsersWithArrayInputDefaultImplementation(Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, List user) { - bool suppressDefaultLog = false; - OnErrorCreateUsersWithArrayInput(ref suppressDefaultLog, exception, pathFormat, path, user); - if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while sending the request to the server."); + bool suppressDefaultLogLocalVar = false; + OnErrorCreateUsersWithArrayInput(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, user); + if (!suppressDefaultLogLocalVar) + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling /// - /// - /// - /// - /// + /// + /// + /// + /// /// - partial void OnErrorCreateUsersWithArrayInput(ref bool suppressDefaultLog, Exception exception, string pathFormat, string path, List user); + partial void OnErrorCreateUsersWithArrayInput(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, List user); /// /// Creates list of users with given input array @@ -1022,27 +1022,27 @@ namespace Org.OpenAPITools.Api /// /// Logs exceptions that occur while retrieving the server response /// - /// - /// - /// + /// + /// + /// /// - private void OnErrorCreateUsersWithListInputDefaultImplementation(Exception exception, string pathFormat, string path, List user) + private void OnErrorCreateUsersWithListInputDefaultImplementation(Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, List user) { - bool suppressDefaultLog = false; - OnErrorCreateUsersWithListInput(ref suppressDefaultLog, exception, pathFormat, path, user); - if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while sending the request to the server."); + bool suppressDefaultLogLocalVar = false; + OnErrorCreateUsersWithListInput(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, user); + if (!suppressDefaultLogLocalVar) + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling /// - /// - /// - /// - /// + /// + /// + /// + /// /// - partial void OnErrorCreateUsersWithListInput(ref bool suppressDefaultLog, Exception exception, string pathFormat, string path, List user); + partial void OnErrorCreateUsersWithListInput(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, List user); /// /// Creates list of users with given input array @@ -1211,27 +1211,27 @@ namespace Org.OpenAPITools.Api /// /// Logs exceptions that occur while retrieving the server response /// - /// - /// - /// + /// + /// + /// /// - private void OnErrorDeleteUserDefaultImplementation(Exception exception, string pathFormat, string path, string username) + private void OnErrorDeleteUserDefaultImplementation(Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, string username) { - bool suppressDefaultLog = false; - OnErrorDeleteUser(ref suppressDefaultLog, exception, pathFormat, path, username); - if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while sending the request to the server."); + bool suppressDefaultLogLocalVar = false; + OnErrorDeleteUser(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, username); + if (!suppressDefaultLogLocalVar) + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling /// - /// - /// - /// - /// + /// + /// + /// + /// /// - partial void OnErrorDeleteUser(ref bool suppressDefaultLog, Exception exception, string pathFormat, string path, string username); + partial void OnErrorDeleteUser(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, string username); /// /// Delete user This can only be done by the logged in user. @@ -1394,27 +1394,27 @@ namespace Org.OpenAPITools.Api /// /// Logs exceptions that occur while retrieving the server response /// - /// - /// - /// + /// + /// + /// /// - private void OnErrorGetUserByNameDefaultImplementation(Exception exception, string pathFormat, string path, string username) + private void OnErrorGetUserByNameDefaultImplementation(Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, string username) { - bool suppressDefaultLog = false; - OnErrorGetUserByName(ref suppressDefaultLog, exception, pathFormat, path, username); - if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while sending the request to the server."); + bool suppressDefaultLogLocalVar = false; + OnErrorGetUserByName(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, username); + if (!suppressDefaultLogLocalVar) + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling /// - /// - /// - /// - /// + /// + /// + /// + /// /// - partial void OnErrorGetUserByName(ref bool suppressDefaultLog, Exception exception, string pathFormat, string path, string username); + partial void OnErrorGetUserByName(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, string username); /// /// Get user by user name @@ -1675,29 +1675,29 @@ namespace Org.OpenAPITools.Api /// /// Logs exceptions that occur while retrieving the server response /// - /// - /// - /// + /// + /// + /// /// /// - private void OnErrorLoginUserDefaultImplementation(Exception exception, string pathFormat, string path, string password, string username) + private void OnErrorLoginUserDefaultImplementation(Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, string password, string username) { - bool suppressDefaultLog = false; - OnErrorLoginUser(ref suppressDefaultLog, exception, pathFormat, path, password, username); - if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while sending the request to the server."); + bool suppressDefaultLogLocalVar = false; + OnErrorLoginUser(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, password, username); + if (!suppressDefaultLogLocalVar) + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling /// - /// - /// - /// - /// + /// + /// + /// + /// /// /// - partial void OnErrorLoginUser(ref bool suppressDefaultLog, Exception exception, string pathFormat, string path, string password, string username); + partial void OnErrorLoginUser(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, string password, string username); /// /// Logs user into the system @@ -1922,25 +1922,25 @@ namespace Org.OpenAPITools.Api /// /// Logs exceptions that occur while retrieving the server response /// - /// - /// - /// - private void OnErrorLogoutUserDefaultImplementation(Exception exception, string pathFormat, string path) + /// + /// + /// + private void OnErrorLogoutUserDefaultImplementation(Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar) { - bool suppressDefaultLog = false; - OnErrorLogoutUser(ref suppressDefaultLog, exception, pathFormat, path); - if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while sending the request to the server."); + bool suppressDefaultLogLocalVar = false; + OnErrorLogoutUser(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar); + if (!suppressDefaultLogLocalVar) + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling /// - /// - /// - /// - /// - partial void OnErrorLogoutUser(ref bool suppressDefaultLog, Exception exception, string pathFormat, string path); + /// + /// + /// + /// + partial void OnErrorLogoutUser(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar); /// /// Logs out current logged in user session @@ -2096,29 +2096,29 @@ namespace Org.OpenAPITools.Api /// /// Logs exceptions that occur while retrieving the server response /// - /// - /// - /// + /// + /// + /// /// /// - private void OnErrorUpdateUserDefaultImplementation(Exception exception, string pathFormat, string path, User user, string username) + private void OnErrorUpdateUserDefaultImplementation(Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, User user, string username) { - bool suppressDefaultLog = false; - OnErrorUpdateUser(ref suppressDefaultLog, exception, pathFormat, path, user, username); - if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while sending the request to the server."); + bool suppressDefaultLogLocalVar = false; + OnErrorUpdateUser(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, user, username); + if (!suppressDefaultLogLocalVar) + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling /// - /// - /// - /// - /// + /// + /// + /// + /// /// /// - partial void OnErrorUpdateUser(ref bool suppressDefaultLog, Exception exception, string pathFormat, string path, User user, string username); + partial void OnErrorUpdateUser(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, User user, string username); /// /// Updated user This can only be done by the logged in user. diff --git a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Api/AnotherFakeApi.cs b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Api/AnotherFakeApi.cs index 44685c0c518..a34c828167b 100644 --- a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Api/AnotherFakeApi.cs +++ b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Api/AnotherFakeApi.cs @@ -209,27 +209,27 @@ namespace Org.OpenAPITools.Api /// /// Logs exceptions that occur while retrieving the server response /// - /// - /// - /// + /// + /// + /// /// - private void OnErrorCall123TestSpecialTagsDefaultImplementation(Exception exception, string pathFormat, string path, ModelClient modelClient) + private void OnErrorCall123TestSpecialTagsDefaultImplementation(Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, ModelClient modelClient) { - bool suppressDefaultLog = false; - OnErrorCall123TestSpecialTags(ref suppressDefaultLog, exception, pathFormat, path, modelClient); - if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while sending the request to the server."); + bool suppressDefaultLogLocalVar = false; + OnErrorCall123TestSpecialTags(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, modelClient); + if (!suppressDefaultLogLocalVar) + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling /// - /// - /// - /// - /// + /// + /// + /// + /// /// - partial void OnErrorCall123TestSpecialTags(ref bool suppressDefaultLog, Exception exception, string pathFormat, string path, ModelClient modelClient); + partial void OnErrorCall123TestSpecialTags(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, ModelClient modelClient); /// /// To test special tags To test special tags and operation ID starting with number diff --git a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Api/DefaultApi.cs b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Api/DefaultApi.cs index 9155e957e8d..cced9ce3479 100644 --- a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Api/DefaultApi.cs +++ b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Api/DefaultApi.cs @@ -406,25 +406,25 @@ namespace Org.OpenAPITools.Api /// /// Logs exceptions that occur while retrieving the server response /// - /// - /// - /// - private void OnErrorFooGetDefaultImplementation(Exception exception, string pathFormat, string path) + /// + /// + /// + private void OnErrorFooGetDefaultImplementation(Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar) { - bool suppressDefaultLog = false; - OnErrorFooGet(ref suppressDefaultLog, exception, pathFormat, path); - if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while sending the request to the server."); + bool suppressDefaultLogLocalVar = false; + OnErrorFooGet(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar); + if (!suppressDefaultLogLocalVar) + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling /// - /// - /// - /// - /// - partial void OnErrorFooGet(ref bool suppressDefaultLog, Exception exception, string pathFormat, string path); + /// + /// + /// + /// + partial void OnErrorFooGet(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar); /// /// @@ -615,27 +615,27 @@ namespace Org.OpenAPITools.Api /// /// Logs exceptions that occur while retrieving the server response /// - /// - /// - /// + /// + /// + /// /// - private void OnErrorGetCountryDefaultImplementation(Exception exception, string pathFormat, string path, string country) + private void OnErrorGetCountryDefaultImplementation(Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, string country) { - bool suppressDefaultLog = false; - OnErrorGetCountry(ref suppressDefaultLog, exception, pathFormat, path, country); - if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while sending the request to the server."); + bool suppressDefaultLogLocalVar = false; + OnErrorGetCountry(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, country); + if (!suppressDefaultLogLocalVar) + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling /// - /// - /// - /// - /// + /// + /// + /// + /// /// - partial void OnErrorGetCountry(ref bool suppressDefaultLog, Exception exception, string pathFormat, string path, string country); + partial void OnErrorGetCountry(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, string country); /// /// @@ -795,25 +795,25 @@ namespace Org.OpenAPITools.Api /// /// Logs exceptions that occur while retrieving the server response /// - /// - /// - /// - private void OnErrorHelloDefaultImplementation(Exception exception, string pathFormat, string path) + /// + /// + /// + private void OnErrorHelloDefaultImplementation(Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar) { - bool suppressDefaultLog = false; - OnErrorHello(ref suppressDefaultLog, exception, pathFormat, path); - if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while sending the request to the server."); + bool suppressDefaultLogLocalVar = false; + OnErrorHello(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar); + if (!suppressDefaultLogLocalVar) + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling /// - /// - /// - /// - /// - partial void OnErrorHello(ref bool suppressDefaultLog, Exception exception, string pathFormat, string path); + /// + /// + /// + /// + partial void OnErrorHello(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar); /// /// Hello Hello @@ -989,25 +989,25 @@ namespace Org.OpenAPITools.Api /// /// Logs exceptions that occur while retrieving the server response /// - /// - /// - /// - private void OnErrorRolesReportGetDefaultImplementation(Exception exception, string pathFormat, string path) + /// + /// + /// + private void OnErrorRolesReportGetDefaultImplementation(Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar) { - bool suppressDefaultLog = false; - OnErrorRolesReportGet(ref suppressDefaultLog, exception, pathFormat, path); - if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while sending the request to the server."); + bool suppressDefaultLogLocalVar = false; + OnErrorRolesReportGet(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar); + if (!suppressDefaultLogLocalVar) + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling /// - /// - /// - /// - /// - partial void OnErrorRolesReportGet(ref bool suppressDefaultLog, Exception exception, string pathFormat, string path); + /// + /// + /// + /// + partial void OnErrorRolesReportGet(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar); /// /// @@ -1183,25 +1183,25 @@ namespace Org.OpenAPITools.Api /// /// Logs exceptions that occur while retrieving the server response /// - /// - /// - /// - private void OnErrorTestDefaultImplementation(Exception exception, string pathFormat, string path) + /// + /// + /// + private void OnErrorTestDefaultImplementation(Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar) { - bool suppressDefaultLog = false; - OnErrorTest(ref suppressDefaultLog, exception, pathFormat, path); - if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while sending the request to the server."); + bool suppressDefaultLogLocalVar = false; + OnErrorTest(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar); + if (!suppressDefaultLogLocalVar) + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling /// - /// - /// - /// - /// - partial void OnErrorTest(ref bool suppressDefaultLog, Exception exception, string pathFormat, string path); + /// + /// + /// + /// + partial void OnErrorTest(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar); /// /// Retrieve an existing Notificationtest's Elements diff --git a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Api/FakeApi.cs b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Api/FakeApi.cs index aeabdca0e02..39b422f6f7f 100644 --- a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Api/FakeApi.cs +++ b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Api/FakeApi.cs @@ -1315,25 +1315,25 @@ namespace Org.OpenAPITools.Api /// /// Logs exceptions that occur while retrieving the server response /// - /// - /// - /// - private void OnErrorFakeHealthGetDefaultImplementation(Exception exception, string pathFormat, string path) + /// + /// + /// + private void OnErrorFakeHealthGetDefaultImplementation(Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar) { - bool suppressDefaultLog = false; - OnErrorFakeHealthGet(ref suppressDefaultLog, exception, pathFormat, path); - if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while sending the request to the server."); + bool suppressDefaultLogLocalVar = false; + OnErrorFakeHealthGet(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar); + if (!suppressDefaultLogLocalVar) + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling /// - /// - /// - /// - /// - partial void OnErrorFakeHealthGet(ref bool suppressDefaultLog, Exception exception, string pathFormat, string path); + /// + /// + /// + /// + partial void OnErrorFakeHealthGet(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar); /// /// Health check endpoint @@ -1513,27 +1513,27 @@ namespace Org.OpenAPITools.Api /// /// Logs exceptions that occur while retrieving the server response /// - /// - /// - /// + /// + /// + /// /// - private void OnErrorFakeOuterBooleanSerializeDefaultImplementation(Exception exception, string pathFormat, string path, Option body) + private void OnErrorFakeOuterBooleanSerializeDefaultImplementation(Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, Option body) { - bool suppressDefaultLog = false; - OnErrorFakeOuterBooleanSerialize(ref suppressDefaultLog, exception, pathFormat, path, body); - if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while sending the request to the server."); + bool suppressDefaultLogLocalVar = false; + OnErrorFakeOuterBooleanSerialize(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, body); + if (!suppressDefaultLogLocalVar) + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling /// - /// - /// - /// - /// + /// + /// + /// + /// /// - partial void OnErrorFakeOuterBooleanSerialize(ref bool suppressDefaultLog, Exception exception, string pathFormat, string path, Option body); + partial void OnErrorFakeOuterBooleanSerialize(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, Option body); /// /// Test serialization of outer boolean types @@ -1742,27 +1742,27 @@ namespace Org.OpenAPITools.Api /// /// Logs exceptions that occur while retrieving the server response /// - /// - /// - /// + /// + /// + /// /// - private void OnErrorFakeOuterCompositeSerializeDefaultImplementation(Exception exception, string pathFormat, string path, Option outerComposite) + private void OnErrorFakeOuterCompositeSerializeDefaultImplementation(Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, Option outerComposite) { - bool suppressDefaultLog = false; - OnErrorFakeOuterCompositeSerialize(ref suppressDefaultLog, exception, pathFormat, path, outerComposite); - if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while sending the request to the server."); + bool suppressDefaultLogLocalVar = false; + OnErrorFakeOuterCompositeSerialize(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, outerComposite); + if (!suppressDefaultLogLocalVar) + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling /// - /// - /// - /// - /// + /// + /// + /// + /// /// - partial void OnErrorFakeOuterCompositeSerialize(ref bool suppressDefaultLog, Exception exception, string pathFormat, string path, Option outerComposite); + partial void OnErrorFakeOuterCompositeSerialize(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, Option outerComposite); /// /// Test serialization of object with outer number type @@ -1962,27 +1962,27 @@ namespace Org.OpenAPITools.Api /// /// Logs exceptions that occur while retrieving the server response /// - /// - /// - /// + /// + /// + /// /// - private void OnErrorFakeOuterNumberSerializeDefaultImplementation(Exception exception, string pathFormat, string path, Option body) + private void OnErrorFakeOuterNumberSerializeDefaultImplementation(Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, Option body) { - bool suppressDefaultLog = false; - OnErrorFakeOuterNumberSerialize(ref suppressDefaultLog, exception, pathFormat, path, body); - if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while sending the request to the server."); + bool suppressDefaultLogLocalVar = false; + OnErrorFakeOuterNumberSerialize(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, body); + if (!suppressDefaultLogLocalVar) + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling /// - /// - /// - /// - /// + /// + /// + /// + /// /// - partial void OnErrorFakeOuterNumberSerialize(ref bool suppressDefaultLog, Exception exception, string pathFormat, string path, Option body); + partial void OnErrorFakeOuterNumberSerialize(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, Option body); /// /// Test serialization of outer number types @@ -2193,29 +2193,29 @@ namespace Org.OpenAPITools.Api /// /// Logs exceptions that occur while retrieving the server response /// - /// - /// - /// + /// + /// + /// /// /// - private void OnErrorFakeOuterStringSerializeDefaultImplementation(Exception exception, string pathFormat, string path, Guid requiredStringUuid, Option body) + private void OnErrorFakeOuterStringSerializeDefaultImplementation(Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, Guid requiredStringUuid, Option body) { - bool suppressDefaultLog = false; - OnErrorFakeOuterStringSerialize(ref suppressDefaultLog, exception, pathFormat, path, requiredStringUuid, body); - if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while sending the request to the server."); + bool suppressDefaultLogLocalVar = false; + OnErrorFakeOuterStringSerialize(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, requiredStringUuid, body); + if (!suppressDefaultLogLocalVar) + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling /// - /// - /// - /// - /// + /// + /// + /// + /// /// /// - partial void OnErrorFakeOuterStringSerialize(ref bool suppressDefaultLog, Exception exception, string pathFormat, string path, Guid requiredStringUuid, Option body); + partial void OnErrorFakeOuterStringSerialize(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, Guid requiredStringUuid, Option body); /// /// Test serialization of outer string types @@ -2419,25 +2419,25 @@ namespace Org.OpenAPITools.Api /// /// Logs exceptions that occur while retrieving the server response /// - /// - /// - /// - private void OnErrorGetArrayOfEnumsDefaultImplementation(Exception exception, string pathFormat, string path) + /// + /// + /// + private void OnErrorGetArrayOfEnumsDefaultImplementation(Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar) { - bool suppressDefaultLog = false; - OnErrorGetArrayOfEnums(ref suppressDefaultLog, exception, pathFormat, path); - if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while sending the request to the server."); + bool suppressDefaultLogLocalVar = false; + OnErrorGetArrayOfEnums(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar); + if (!suppressDefaultLogLocalVar) + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling /// - /// - /// - /// - /// - partial void OnErrorGetArrayOfEnums(ref bool suppressDefaultLog, Exception exception, string pathFormat, string path); + /// + /// + /// + /// + partial void OnErrorGetArrayOfEnums(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar); /// /// Array of Enums @@ -2613,25 +2613,25 @@ namespace Org.OpenAPITools.Api /// /// Logs exceptions that occur while retrieving the server response /// - /// - /// - /// - private void OnErrorGetMixedAnyOfDefaultImplementation(Exception exception, string pathFormat, string path) + /// + /// + /// + private void OnErrorGetMixedAnyOfDefaultImplementation(Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar) { - bool suppressDefaultLog = false; - OnErrorGetMixedAnyOf(ref suppressDefaultLog, exception, pathFormat, path); - if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while sending the request to the server."); + bool suppressDefaultLogLocalVar = false; + OnErrorGetMixedAnyOf(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar); + if (!suppressDefaultLogLocalVar) + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling /// - /// - /// - /// - /// - partial void OnErrorGetMixedAnyOf(ref bool suppressDefaultLog, Exception exception, string pathFormat, string path); + /// + /// + /// + /// + partial void OnErrorGetMixedAnyOf(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar); /// /// Test mixed type anyOf deserialization @@ -2807,25 +2807,25 @@ namespace Org.OpenAPITools.Api /// /// Logs exceptions that occur while retrieving the server response /// - /// - /// - /// - private void OnErrorGetMixedOneOfDefaultImplementation(Exception exception, string pathFormat, string path) + /// + /// + /// + private void OnErrorGetMixedOneOfDefaultImplementation(Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar) { - bool suppressDefaultLog = false; - OnErrorGetMixedOneOf(ref suppressDefaultLog, exception, pathFormat, path); - if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while sending the request to the server."); + bool suppressDefaultLogLocalVar = false; + OnErrorGetMixedOneOf(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar); + if (!suppressDefaultLogLocalVar) + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling /// - /// - /// - /// - /// - partial void OnErrorGetMixedOneOf(ref bool suppressDefaultLog, Exception exception, string pathFormat, string path); + /// + /// + /// + /// + partial void OnErrorGetMixedOneOf(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar); /// /// Test mixed type oneOf deserialization @@ -3016,27 +3016,27 @@ namespace Org.OpenAPITools.Api /// /// Logs exceptions that occur while retrieving the server response /// - /// - /// - /// + /// + /// + /// /// - private void OnErrorTestAdditionalPropertiesReferenceDefaultImplementation(Exception exception, string pathFormat, string path, Dictionary requestBody) + private void OnErrorTestAdditionalPropertiesReferenceDefaultImplementation(Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, Dictionary requestBody) { - bool suppressDefaultLog = false; - OnErrorTestAdditionalPropertiesReference(ref suppressDefaultLog, exception, pathFormat, path, requestBody); - if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while sending the request to the server."); + bool suppressDefaultLogLocalVar = false; + OnErrorTestAdditionalPropertiesReference(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, requestBody); + if (!suppressDefaultLogLocalVar) + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling /// - /// - /// - /// - /// + /// + /// + /// + /// /// - partial void OnErrorTestAdditionalPropertiesReference(ref bool suppressDefaultLog, Exception exception, string pathFormat, string path, Dictionary requestBody); + partial void OnErrorTestAdditionalPropertiesReference(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, Dictionary requestBody); /// /// test referenced additionalProperties @@ -3205,27 +3205,27 @@ namespace Org.OpenAPITools.Api /// /// Logs exceptions that occur while retrieving the server response /// - /// - /// - /// + /// + /// + /// /// - private void OnErrorTestBodyWithFileSchemaDefaultImplementation(Exception exception, string pathFormat, string path, FileSchemaTestClass fileSchemaTestClass) + private void OnErrorTestBodyWithFileSchemaDefaultImplementation(Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, FileSchemaTestClass fileSchemaTestClass) { - bool suppressDefaultLog = false; - OnErrorTestBodyWithFileSchema(ref suppressDefaultLog, exception, pathFormat, path, fileSchemaTestClass); - if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while sending the request to the server."); + bool suppressDefaultLogLocalVar = false; + OnErrorTestBodyWithFileSchema(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, fileSchemaTestClass); + if (!suppressDefaultLogLocalVar) + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling /// - /// - /// - /// - /// + /// + /// + /// + /// /// - partial void OnErrorTestBodyWithFileSchema(ref bool suppressDefaultLog, Exception exception, string pathFormat, string path, FileSchemaTestClass fileSchemaTestClass); + partial void OnErrorTestBodyWithFileSchema(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, FileSchemaTestClass fileSchemaTestClass); /// /// For this test, the body for this request much reference a schema named `File`. @@ -3400,29 +3400,29 @@ namespace Org.OpenAPITools.Api /// /// Logs exceptions that occur while retrieving the server response /// - /// - /// - /// + /// + /// + /// /// /// - private void OnErrorTestBodyWithQueryParamsDefaultImplementation(Exception exception, string pathFormat, string path, string query, User user) + private void OnErrorTestBodyWithQueryParamsDefaultImplementation(Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, string query, User user) { - bool suppressDefaultLog = false; - OnErrorTestBodyWithQueryParams(ref suppressDefaultLog, exception, pathFormat, path, query, user); - if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while sending the request to the server."); + bool suppressDefaultLogLocalVar = false; + OnErrorTestBodyWithQueryParams(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, query, user); + if (!suppressDefaultLogLocalVar) + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling /// - /// - /// - /// - /// + /// + /// + /// + /// /// /// - partial void OnErrorTestBodyWithQueryParams(ref bool suppressDefaultLog, Exception exception, string pathFormat, string path, string query, User user); + partial void OnErrorTestBodyWithQueryParams(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, string query, User user); /// /// @@ -3599,27 +3599,27 @@ namespace Org.OpenAPITools.Api /// /// Logs exceptions that occur while retrieving the server response /// - /// - /// - /// + /// + /// + /// /// - private void OnErrorTestClientModelDefaultImplementation(Exception exception, string pathFormat, string path, ModelClient modelClient) + private void OnErrorTestClientModelDefaultImplementation(Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, ModelClient modelClient) { - bool suppressDefaultLog = false; - OnErrorTestClientModel(ref suppressDefaultLog, exception, pathFormat, path, modelClient); - if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while sending the request to the server."); + bool suppressDefaultLogLocalVar = false; + OnErrorTestClientModel(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, modelClient); + if (!suppressDefaultLogLocalVar) + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling /// - /// - /// - /// - /// + /// + /// + /// + /// /// - partial void OnErrorTestClientModel(ref bool suppressDefaultLog, Exception exception, string pathFormat, string path, ModelClient modelClient); + partial void OnErrorTestClientModel(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, ModelClient modelClient); /// /// To test \"client\" model To test \"client\" model @@ -3875,9 +3875,9 @@ namespace Org.OpenAPITools.Api /// /// Logs exceptions that occur while retrieving the server response /// - /// - /// - /// + /// + /// + /// /// /// /// @@ -3892,21 +3892,21 @@ namespace Org.OpenAPITools.Api /// /// /// - private void OnErrorTestEndpointParametersDefaultImplementation(Exception exception, string pathFormat, string path, decimal number, string patternWithoutDelimiter, byte[] varByte, double varDouble, Option binary, Option callback, Option date, Option dateTime, Option int32, Option int64, Option integer, Option password, Option varFloat, Option varString) + private void OnErrorTestEndpointParametersDefaultImplementation(Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, decimal number, string patternWithoutDelimiter, byte[] varByte, double varDouble, Option binary, Option callback, Option date, Option dateTime, Option int32, Option int64, Option integer, Option password, Option varFloat, Option varString) { - bool suppressDefaultLog = false; - OnErrorTestEndpointParameters(ref suppressDefaultLog, exception, pathFormat, path, number, patternWithoutDelimiter, varByte, varDouble, binary, callback, date, dateTime, int32, int64, integer, password, varFloat, varString); - if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while sending the request to the server."); + bool suppressDefaultLogLocalVar = false; + OnErrorTestEndpointParameters(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, number, patternWithoutDelimiter, varByte, varDouble, binary, callback, date, dateTime, int32, int64, integer, password, varFloat, varString); + if (!suppressDefaultLogLocalVar) + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling /// - /// - /// - /// - /// + /// + /// + /// + /// /// /// /// @@ -3921,7 +3921,7 @@ namespace Org.OpenAPITools.Api /// /// /// - partial void OnErrorTestEndpointParameters(ref bool suppressDefaultLog, Exception exception, string pathFormat, string path, decimal number, string patternWithoutDelimiter, byte[] varByte, double varDouble, Option binary, Option callback, Option date, Option dateTime, Option int32, Option int64, Option integer, Option password, Option varFloat, Option varString); + partial void OnErrorTestEndpointParameters(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, decimal number, string patternWithoutDelimiter, byte[] varByte, double varDouble, Option binary, Option callback, Option date, Option dateTime, Option int32, Option int64, Option integer, Option password, Option varFloat, Option varString); /// /// Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트 Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트 @@ -4209,9 +4209,9 @@ namespace Org.OpenAPITools.Api /// /// Logs exceptions that occur while retrieving the server response /// - /// - /// - /// + /// + /// + /// /// /// /// @@ -4220,21 +4220,21 @@ namespace Org.OpenAPITools.Api /// /// /// - private void OnErrorTestEnumParametersDefaultImplementation(Exception exception, string pathFormat, string path, Option enumFormString, Option> enumFormStringArray, Option enumHeaderString, Option> enumHeaderStringArray, Option enumQueryDouble, Option enumQueryInteger, Option enumQueryString, Option> enumQueryStringArray) + private void OnErrorTestEnumParametersDefaultImplementation(Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, Option enumFormString, Option> enumFormStringArray, Option enumHeaderString, Option> enumHeaderStringArray, Option enumQueryDouble, Option enumQueryInteger, Option enumQueryString, Option> enumQueryStringArray) { - bool suppressDefaultLog = false; - OnErrorTestEnumParameters(ref suppressDefaultLog, exception, pathFormat, path, enumFormString, enumFormStringArray, enumHeaderString, enumHeaderStringArray, enumQueryDouble, enumQueryInteger, enumQueryString, enumQueryStringArray); - if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while sending the request to the server."); + bool suppressDefaultLogLocalVar = false; + OnErrorTestEnumParameters(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, enumFormString, enumFormStringArray, enumHeaderString, enumHeaderStringArray, enumQueryDouble, enumQueryInteger, enumQueryString, enumQueryStringArray); + if (!suppressDefaultLogLocalVar) + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling /// - /// - /// - /// - /// + /// + /// + /// + /// /// /// /// @@ -4243,7 +4243,7 @@ namespace Org.OpenAPITools.Api /// /// /// - partial void OnErrorTestEnumParameters(ref bool suppressDefaultLog, Exception exception, string pathFormat, string path, Option enumFormString, Option> enumFormStringArray, Option enumHeaderString, Option> enumHeaderStringArray, Option enumQueryDouble, Option enumQueryInteger, Option enumQueryString, Option> enumQueryStringArray); + partial void OnErrorTestEnumParameters(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, Option enumFormString, Option> enumFormStringArray, Option enumHeaderString, Option> enumHeaderStringArray, Option enumQueryDouble, Option enumQueryInteger, Option enumQueryString, Option> enumQueryStringArray); /// /// To test enum parameters To test enum parameters @@ -4461,37 +4461,37 @@ namespace Org.OpenAPITools.Api /// /// Logs exceptions that occur while retrieving the server response /// - /// - /// - /// + /// + /// + /// /// /// /// /// /// /// - private void OnErrorTestGroupParametersDefaultImplementation(Exception exception, string pathFormat, string path, bool requiredBooleanGroup, long requiredInt64Group, int requiredStringGroup, Option booleanGroup, Option int64Group, Option stringGroup) + private void OnErrorTestGroupParametersDefaultImplementation(Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, bool requiredBooleanGroup, long requiredInt64Group, int requiredStringGroup, Option booleanGroup, Option int64Group, Option stringGroup) { - bool suppressDefaultLog = false; - OnErrorTestGroupParameters(ref suppressDefaultLog, exception, pathFormat, path, requiredBooleanGroup, requiredInt64Group, requiredStringGroup, booleanGroup, int64Group, stringGroup); - if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while sending the request to the server."); + bool suppressDefaultLogLocalVar = false; + OnErrorTestGroupParameters(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, requiredBooleanGroup, requiredInt64Group, requiredStringGroup, booleanGroup, int64Group, stringGroup); + if (!suppressDefaultLogLocalVar) + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling /// - /// - /// - /// - /// + /// + /// + /// + /// /// /// /// /// /// /// - partial void OnErrorTestGroupParameters(ref bool suppressDefaultLog, Exception exception, string pathFormat, string path, bool requiredBooleanGroup, long requiredInt64Group, int requiredStringGroup, Option booleanGroup, Option int64Group, Option stringGroup); + partial void OnErrorTestGroupParameters(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, bool requiredBooleanGroup, long requiredInt64Group, int requiredStringGroup, Option booleanGroup, Option int64Group, Option stringGroup); /// /// Fake endpoint to test group parameters (optional) Fake endpoint to test group parameters (optional) @@ -4684,27 +4684,27 @@ namespace Org.OpenAPITools.Api /// /// Logs exceptions that occur while retrieving the server response /// - /// - /// - /// + /// + /// + /// /// - private void OnErrorTestInlineAdditionalPropertiesDefaultImplementation(Exception exception, string pathFormat, string path, Dictionary requestBody) + private void OnErrorTestInlineAdditionalPropertiesDefaultImplementation(Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, Dictionary requestBody) { - bool suppressDefaultLog = false; - OnErrorTestInlineAdditionalProperties(ref suppressDefaultLog, exception, pathFormat, path, requestBody); - if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while sending the request to the server."); + bool suppressDefaultLogLocalVar = false; + OnErrorTestInlineAdditionalProperties(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, requestBody); + if (!suppressDefaultLogLocalVar) + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling /// - /// - /// - /// - /// + /// + /// + /// + /// /// - partial void OnErrorTestInlineAdditionalProperties(ref bool suppressDefaultLog, Exception exception, string pathFormat, string path, Dictionary requestBody); + partial void OnErrorTestInlineAdditionalProperties(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, Dictionary requestBody); /// /// test inline additionalProperties @@ -4873,27 +4873,27 @@ namespace Org.OpenAPITools.Api /// /// Logs exceptions that occur while retrieving the server response /// - /// - /// - /// + /// + /// + /// /// - private void OnErrorTestInlineFreeformAdditionalPropertiesDefaultImplementation(Exception exception, string pathFormat, string path, TestInlineFreeformAdditionalPropertiesRequest testInlineFreeformAdditionalPropertiesRequest) + private void OnErrorTestInlineFreeformAdditionalPropertiesDefaultImplementation(Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, TestInlineFreeformAdditionalPropertiesRequest testInlineFreeformAdditionalPropertiesRequest) { - bool suppressDefaultLog = false; - OnErrorTestInlineFreeformAdditionalProperties(ref suppressDefaultLog, exception, pathFormat, path, testInlineFreeformAdditionalPropertiesRequest); - if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while sending the request to the server."); + bool suppressDefaultLogLocalVar = false; + OnErrorTestInlineFreeformAdditionalProperties(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, testInlineFreeformAdditionalPropertiesRequest); + if (!suppressDefaultLogLocalVar) + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling /// - /// - /// - /// - /// + /// + /// + /// + /// /// - partial void OnErrorTestInlineFreeformAdditionalProperties(ref bool suppressDefaultLog, Exception exception, string pathFormat, string path, TestInlineFreeformAdditionalPropertiesRequest testInlineFreeformAdditionalPropertiesRequest); + partial void OnErrorTestInlineFreeformAdditionalProperties(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, TestInlineFreeformAdditionalPropertiesRequest testInlineFreeformAdditionalPropertiesRequest); /// /// test inline free-form additionalProperties @@ -5068,29 +5068,29 @@ namespace Org.OpenAPITools.Api /// /// Logs exceptions that occur while retrieving the server response /// - /// - /// - /// + /// + /// + /// /// /// - private void OnErrorTestJsonFormDataDefaultImplementation(Exception exception, string pathFormat, string path, string param, string param2) + private void OnErrorTestJsonFormDataDefaultImplementation(Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, string param, string param2) { - bool suppressDefaultLog = false; - OnErrorTestJsonFormData(ref suppressDefaultLog, exception, pathFormat, path, param, param2); - if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while sending the request to the server."); + bool suppressDefaultLogLocalVar = false; + OnErrorTestJsonFormData(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, param, param2); + if (!suppressDefaultLogLocalVar) + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling /// - /// - /// - /// - /// + /// + /// + /// + /// /// /// - partial void OnErrorTestJsonFormData(ref bool suppressDefaultLog, Exception exception, string pathFormat, string path, string param, string param2); + partial void OnErrorTestJsonFormData(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, string param, string param2); /// /// test json serialization of form data @@ -5309,9 +5309,9 @@ namespace Org.OpenAPITools.Api /// /// Logs exceptions that occur while retrieving the server response /// - /// - /// - /// + /// + /// + /// /// /// /// @@ -5321,21 +5321,21 @@ namespace Org.OpenAPITools.Api /// /// /// - private void OnErrorTestQueryParameterCollectionFormatDefaultImplementation(Exception exception, string pathFormat, string path, List context, List http, List ioutil, List pipe, string requiredNotNullable, List url, Option notRequiredNotNullable, Option notRequiredNullable, string? requiredNullable) + private void OnErrorTestQueryParameterCollectionFormatDefaultImplementation(Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, List context, List http, List ioutil, List pipe, string requiredNotNullable, List url, Option notRequiredNotNullable, Option notRequiredNullable, string? requiredNullable) { - bool suppressDefaultLog = false; - OnErrorTestQueryParameterCollectionFormat(ref suppressDefaultLog, exception, pathFormat, path, context, http, ioutil, pipe, requiredNotNullable, url, notRequiredNotNullable, notRequiredNullable, requiredNullable); - if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while sending the request to the server."); + bool suppressDefaultLogLocalVar = false; + OnErrorTestQueryParameterCollectionFormat(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, context, http, ioutil, pipe, requiredNotNullable, url, notRequiredNotNullable, notRequiredNullable, requiredNullable); + if (!suppressDefaultLogLocalVar) + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling /// - /// - /// - /// - /// + /// + /// + /// + /// /// /// /// @@ -5345,7 +5345,7 @@ namespace Org.OpenAPITools.Api /// /// /// - partial void OnErrorTestQueryParameterCollectionFormat(ref bool suppressDefaultLog, Exception exception, string pathFormat, string path, List context, List http, List ioutil, List pipe, string requiredNotNullable, List url, Option notRequiredNotNullable, Option notRequiredNullable, string? requiredNullable); + partial void OnErrorTestQueryParameterCollectionFormat(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, List context, List http, List ioutil, List pipe, string requiredNotNullable, List url, Option notRequiredNotNullable, Option notRequiredNullable, string? requiredNullable); /// /// To test the collection format in query parameters @@ -5535,27 +5535,27 @@ namespace Org.OpenAPITools.Api /// /// Logs exceptions that occur while retrieving the server response /// - /// - /// - /// + /// + /// + /// /// - private void OnErrorTestStringMapReferenceDefaultImplementation(Exception exception, string pathFormat, string path, Dictionary requestBody) + private void OnErrorTestStringMapReferenceDefaultImplementation(Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, Dictionary requestBody) { - bool suppressDefaultLog = false; - OnErrorTestStringMapReference(ref suppressDefaultLog, exception, pathFormat, path, requestBody); - if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while sending the request to the server."); + bool suppressDefaultLogLocalVar = false; + OnErrorTestStringMapReference(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, requestBody); + if (!suppressDefaultLogLocalVar) + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling /// - /// - /// - /// - /// + /// + /// + /// + /// /// - partial void OnErrorTestStringMapReference(ref bool suppressDefaultLog, Exception exception, string pathFormat, string path, Dictionary requestBody); + partial void OnErrorTestStringMapReference(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, Dictionary requestBody); /// /// test referenced string map diff --git a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Api/FakeClassnameTags123Api.cs b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Api/FakeClassnameTags123Api.cs index 2cec6a5023d..d70af83c911 100644 --- a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Api/FakeClassnameTags123Api.cs +++ b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Api/FakeClassnameTags123Api.cs @@ -209,27 +209,27 @@ namespace Org.OpenAPITools.Api /// /// Logs exceptions that occur while retrieving the server response /// - /// - /// - /// + /// + /// + /// /// - private void OnErrorTestClassnameDefaultImplementation(Exception exception, string pathFormat, string path, ModelClient modelClient) + private void OnErrorTestClassnameDefaultImplementation(Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, ModelClient modelClient) { - bool suppressDefaultLog = false; - OnErrorTestClassname(ref suppressDefaultLog, exception, pathFormat, path, modelClient); - if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while sending the request to the server."); + bool suppressDefaultLogLocalVar = false; + OnErrorTestClassname(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, modelClient); + if (!suppressDefaultLogLocalVar) + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling /// - /// - /// - /// - /// + /// + /// + /// + /// /// - partial void OnErrorTestClassname(ref bool suppressDefaultLog, Exception exception, string pathFormat, string path, ModelClient modelClient); + partial void OnErrorTestClassname(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, ModelClient modelClient); /// /// To test class name in snake case To test class name in snake case diff --git a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Api/PetApi.cs b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Api/PetApi.cs index b6b98a2950a..1d959b49106 100644 --- a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Api/PetApi.cs +++ b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Api/PetApi.cs @@ -713,27 +713,27 @@ namespace Org.OpenAPITools.Api /// /// Logs exceptions that occur while retrieving the server response /// - /// - /// - /// + /// + /// + /// /// - private void OnErrorAddPetDefaultImplementation(Exception exception, string pathFormat, string path, Pet pet) + private void OnErrorAddPetDefaultImplementation(Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, Pet pet) { - bool suppressDefaultLog = false; - OnErrorAddPet(ref suppressDefaultLog, exception, pathFormat, path, pet); - if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while sending the request to the server."); + bool suppressDefaultLogLocalVar = false; + OnErrorAddPet(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, pet); + if (!suppressDefaultLogLocalVar) + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling /// - /// - /// - /// - /// + /// + /// + /// + /// /// - partial void OnErrorAddPet(ref bool suppressDefaultLog, Exception exception, string pathFormat, string path, Pet pet); + partial void OnErrorAddPet(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, Pet pet); /// /// Add a new pet to the store @@ -926,29 +926,29 @@ namespace Org.OpenAPITools.Api /// /// Logs exceptions that occur while retrieving the server response /// - /// - /// - /// + /// + /// + /// /// /// - private void OnErrorDeletePetDefaultImplementation(Exception exception, string pathFormat, string path, long petId, Option apiKey) + private void OnErrorDeletePetDefaultImplementation(Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, long petId, Option apiKey) { - bool suppressDefaultLog = false; - OnErrorDeletePet(ref suppressDefaultLog, exception, pathFormat, path, petId, apiKey); - if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while sending the request to the server."); + bool suppressDefaultLogLocalVar = false; + OnErrorDeletePet(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, petId, apiKey); + if (!suppressDefaultLogLocalVar) + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling /// - /// - /// - /// - /// + /// + /// + /// + /// /// /// - partial void OnErrorDeletePet(ref bool suppressDefaultLog, Exception exception, string pathFormat, string path, long petId, Option apiKey); + partial void OnErrorDeletePet(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, long petId, Option apiKey); /// /// Deletes a pet @@ -1121,27 +1121,27 @@ namespace Org.OpenAPITools.Api /// /// Logs exceptions that occur while retrieving the server response /// - /// - /// - /// + /// + /// + /// /// - private void OnErrorFindPetsByStatusDefaultImplementation(Exception exception, string pathFormat, string path, List status) + private void OnErrorFindPetsByStatusDefaultImplementation(Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, List status) { - bool suppressDefaultLog = false; - OnErrorFindPetsByStatus(ref suppressDefaultLog, exception, pathFormat, path, status); - if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while sending the request to the server."); + bool suppressDefaultLogLocalVar = false; + OnErrorFindPetsByStatus(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, status); + if (!suppressDefaultLogLocalVar) + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling /// - /// - /// - /// - /// + /// + /// + /// + /// /// - partial void OnErrorFindPetsByStatus(ref bool suppressDefaultLog, Exception exception, string pathFormat, string path, List status); + partial void OnErrorFindPetsByStatus(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, List status); /// /// Finds Pets by status Multiple status values can be provided with comma separated strings @@ -1398,27 +1398,27 @@ namespace Org.OpenAPITools.Api /// /// Logs exceptions that occur while retrieving the server response /// - /// - /// - /// + /// + /// + /// /// - private void OnErrorFindPetsByTagsDefaultImplementation(Exception exception, string pathFormat, string path, List tags) + private void OnErrorFindPetsByTagsDefaultImplementation(Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, List tags) { - bool suppressDefaultLog = false; - OnErrorFindPetsByTags(ref suppressDefaultLog, exception, pathFormat, path, tags); - if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while sending the request to the server."); + bool suppressDefaultLogLocalVar = false; + OnErrorFindPetsByTags(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, tags); + if (!suppressDefaultLogLocalVar) + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling /// - /// - /// - /// - /// + /// + /// + /// + /// /// - partial void OnErrorFindPetsByTags(ref bool suppressDefaultLog, Exception exception, string pathFormat, string path, List tags); + partial void OnErrorFindPetsByTags(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, List tags); /// /// Finds Pets by tags Multiple tags can be provided with comma separated strings. Use tag1, tag2, tag3 for testing. @@ -1638,27 +1638,27 @@ namespace Org.OpenAPITools.Api /// /// Logs exceptions that occur while retrieving the server response /// - /// - /// - /// + /// + /// + /// /// - private void OnErrorGetPetByIdDefaultImplementation(Exception exception, string pathFormat, string path, long petId) + private void OnErrorGetPetByIdDefaultImplementation(Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, long petId) { - bool suppressDefaultLog = false; - OnErrorGetPetById(ref suppressDefaultLog, exception, pathFormat, path, petId); - if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while sending the request to the server."); + bool suppressDefaultLogLocalVar = false; + OnErrorGetPetById(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, petId); + if (!suppressDefaultLogLocalVar) + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling /// - /// - /// - /// - /// + /// + /// + /// + /// /// - partial void OnErrorGetPetById(ref bool suppressDefaultLog, Exception exception, string pathFormat, string path, long petId); + partial void OnErrorGetPetById(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, long petId); /// /// Find pet by ID Returns a single pet @@ -1884,27 +1884,27 @@ namespace Org.OpenAPITools.Api /// /// Logs exceptions that occur while retrieving the server response /// - /// - /// - /// + /// + /// + /// /// - private void OnErrorUpdatePetDefaultImplementation(Exception exception, string pathFormat, string path, Pet pet) + private void OnErrorUpdatePetDefaultImplementation(Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, Pet pet) { - bool suppressDefaultLog = false; - OnErrorUpdatePet(ref suppressDefaultLog, exception, pathFormat, path, pet); - if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while sending the request to the server."); + bool suppressDefaultLogLocalVar = false; + OnErrorUpdatePet(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, pet); + if (!suppressDefaultLogLocalVar) + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling /// - /// - /// - /// - /// + /// + /// + /// + /// /// - partial void OnErrorUpdatePet(ref bool suppressDefaultLog, Exception exception, string pathFormat, string path, Pet pet); + partial void OnErrorUpdatePet(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, Pet pet); /// /// Update an existing pet @@ -2115,31 +2115,31 @@ namespace Org.OpenAPITools.Api /// /// Logs exceptions that occur while retrieving the server response /// - /// - /// - /// + /// + /// + /// /// /// /// - private void OnErrorUpdatePetWithFormDefaultImplementation(Exception exception, string pathFormat, string path, long petId, Option name, Option status) + private void OnErrorUpdatePetWithFormDefaultImplementation(Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, long petId, Option name, Option status) { - bool suppressDefaultLog = false; - OnErrorUpdatePetWithForm(ref suppressDefaultLog, exception, pathFormat, path, petId, name, status); - if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while sending the request to the server."); + bool suppressDefaultLogLocalVar = false; + OnErrorUpdatePetWithForm(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, petId, name, status); + if (!suppressDefaultLogLocalVar) + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling /// - /// - /// - /// - /// + /// + /// + /// + /// /// /// /// - partial void OnErrorUpdatePetWithForm(ref bool suppressDefaultLog, Exception exception, string pathFormat, string path, long petId, Option name, Option status); + partial void OnErrorUpdatePetWithForm(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, long petId, Option name, Option status); /// /// Updates a pet in the store with form data @@ -2340,31 +2340,31 @@ namespace Org.OpenAPITools.Api /// /// Logs exceptions that occur while retrieving the server response /// - /// - /// - /// + /// + /// + /// /// /// /// - private void OnErrorUploadFileDefaultImplementation(Exception exception, string pathFormat, string path, long petId, Option additionalMetadata, Option file) + private void OnErrorUploadFileDefaultImplementation(Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, long petId, Option additionalMetadata, Option file) { - bool suppressDefaultLog = false; - OnErrorUploadFile(ref suppressDefaultLog, exception, pathFormat, path, petId, additionalMetadata, file); - if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while sending the request to the server."); + bool suppressDefaultLogLocalVar = false; + OnErrorUploadFile(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, petId, additionalMetadata, file); + if (!suppressDefaultLogLocalVar) + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling /// - /// - /// - /// - /// + /// + /// + /// + /// /// /// /// - partial void OnErrorUploadFile(ref bool suppressDefaultLog, Exception exception, string pathFormat, string path, long petId, Option additionalMetadata, Option file); + partial void OnErrorUploadFile(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, long petId, Option additionalMetadata, Option file); /// /// uploads an image @@ -2606,31 +2606,31 @@ namespace Org.OpenAPITools.Api /// /// Logs exceptions that occur while retrieving the server response /// - /// - /// - /// + /// + /// + /// /// /// /// - private void OnErrorUploadFileWithRequiredFileDefaultImplementation(Exception exception, string pathFormat, string path, long petId, System.IO.Stream requiredFile, Option additionalMetadata) + private void OnErrorUploadFileWithRequiredFileDefaultImplementation(Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, long petId, System.IO.Stream requiredFile, Option additionalMetadata) { - bool suppressDefaultLog = false; - OnErrorUploadFileWithRequiredFile(ref suppressDefaultLog, exception, pathFormat, path, petId, requiredFile, additionalMetadata); - if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while sending the request to the server."); + bool suppressDefaultLogLocalVar = false; + OnErrorUploadFileWithRequiredFile(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, petId, requiredFile, additionalMetadata); + if (!suppressDefaultLogLocalVar) + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling /// - /// - /// - /// - /// + /// + /// + /// + /// /// /// /// - partial void OnErrorUploadFileWithRequiredFile(ref bool suppressDefaultLog, Exception exception, string pathFormat, string path, long petId, System.IO.Stream requiredFile, Option additionalMetadata); + partial void OnErrorUploadFileWithRequiredFile(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, long petId, System.IO.Stream requiredFile, Option additionalMetadata); /// /// uploads an image (required) diff --git a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Api/StoreApi.cs b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Api/StoreApi.cs index 4bec8c60b86..1677ff9901e 100644 --- a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Api/StoreApi.cs +++ b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Api/StoreApi.cs @@ -396,27 +396,27 @@ namespace Org.OpenAPITools.Api /// /// Logs exceptions that occur while retrieving the server response /// - /// - /// - /// + /// + /// + /// /// - private void OnErrorDeleteOrderDefaultImplementation(Exception exception, string pathFormat, string path, string orderId) + private void OnErrorDeleteOrderDefaultImplementation(Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, string orderId) { - bool suppressDefaultLog = false; - OnErrorDeleteOrder(ref suppressDefaultLog, exception, pathFormat, path, orderId); - if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while sending the request to the server."); + bool suppressDefaultLogLocalVar = false; + OnErrorDeleteOrder(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, orderId); + if (!suppressDefaultLogLocalVar) + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling /// - /// - /// - /// - /// + /// + /// + /// + /// /// - partial void OnErrorDeleteOrder(ref bool suppressDefaultLog, Exception exception, string pathFormat, string path, string orderId); + partial void OnErrorDeleteOrder(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, string orderId); /// /// Delete purchase order by ID For valid response try integer IDs with value < 1000. Anything above 1000 or nonintegers will generate API errors @@ -564,25 +564,25 @@ namespace Org.OpenAPITools.Api /// /// Logs exceptions that occur while retrieving the server response /// - /// - /// - /// - private void OnErrorGetInventoryDefaultImplementation(Exception exception, string pathFormat, string path) + /// + /// + /// + private void OnErrorGetInventoryDefaultImplementation(Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar) { - bool suppressDefaultLog = false; - OnErrorGetInventory(ref suppressDefaultLog, exception, pathFormat, path); - if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while sending the request to the server."); + bool suppressDefaultLogLocalVar = false; + OnErrorGetInventory(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar); + if (!suppressDefaultLogLocalVar) + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling /// - /// - /// - /// - /// - partial void OnErrorGetInventory(ref bool suppressDefaultLog, Exception exception, string pathFormat, string path); + /// + /// + /// + /// + partial void OnErrorGetInventory(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar); /// /// Returns pet inventories by status Returns a map of status codes to quantities @@ -771,27 +771,27 @@ namespace Org.OpenAPITools.Api /// /// Logs exceptions that occur while retrieving the server response /// - /// - /// - /// + /// + /// + /// /// - private void OnErrorGetOrderByIdDefaultImplementation(Exception exception, string pathFormat, string path, long orderId) + private void OnErrorGetOrderByIdDefaultImplementation(Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, long orderId) { - bool suppressDefaultLog = false; - OnErrorGetOrderById(ref suppressDefaultLog, exception, pathFormat, path, orderId); - if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while sending the request to the server."); + bool suppressDefaultLogLocalVar = false; + OnErrorGetOrderById(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, orderId); + if (!suppressDefaultLogLocalVar) + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling /// - /// - /// - /// - /// + /// + /// + /// + /// /// - partial void OnErrorGetOrderById(ref bool suppressDefaultLog, Exception exception, string pathFormat, string path, long orderId); + partial void OnErrorGetOrderById(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, long orderId); /// /// Find purchase order by ID For valid response try integer IDs with value <= 5 or > 10. Other values will generate exceptions @@ -1000,27 +1000,27 @@ namespace Org.OpenAPITools.Api /// /// Logs exceptions that occur while retrieving the server response /// - /// - /// - /// + /// + /// + /// /// - private void OnErrorPlaceOrderDefaultImplementation(Exception exception, string pathFormat, string path, Order order) + private void OnErrorPlaceOrderDefaultImplementation(Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, Order order) { - bool suppressDefaultLog = false; - OnErrorPlaceOrder(ref suppressDefaultLog, exception, pathFormat, path, order); - if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while sending the request to the server."); + bool suppressDefaultLogLocalVar = false; + OnErrorPlaceOrder(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, order); + if (!suppressDefaultLogLocalVar) + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling /// - /// - /// - /// - /// + /// + /// + /// + /// /// - partial void OnErrorPlaceOrder(ref bool suppressDefaultLog, Exception exception, string pathFormat, string path, Order order); + partial void OnErrorPlaceOrder(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, Order order); /// /// Place an order for a pet diff --git a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Api/UserApi.cs b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Api/UserApi.cs index b0f90eaec7c..0352814ae67 100644 --- a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Api/UserApi.cs +++ b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Api/UserApi.cs @@ -646,27 +646,27 @@ namespace Org.OpenAPITools.Api /// /// Logs exceptions that occur while retrieving the server response /// - /// - /// - /// + /// + /// + /// /// - private void OnErrorCreateUserDefaultImplementation(Exception exception, string pathFormat, string path, User user) + private void OnErrorCreateUserDefaultImplementation(Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, User user) { - bool suppressDefaultLog = false; - OnErrorCreateUser(ref suppressDefaultLog, exception, pathFormat, path, user); - if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while sending the request to the server."); + bool suppressDefaultLogLocalVar = false; + OnErrorCreateUser(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, user); + if (!suppressDefaultLogLocalVar) + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling /// - /// - /// - /// - /// + /// + /// + /// + /// /// - partial void OnErrorCreateUser(ref bool suppressDefaultLog, Exception exception, string pathFormat, string path, User user); + partial void OnErrorCreateUser(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, User user); /// /// Create user This can only be done by the logged in user. @@ -835,27 +835,27 @@ namespace Org.OpenAPITools.Api /// /// Logs exceptions that occur while retrieving the server response /// - /// - /// - /// + /// + /// + /// /// - private void OnErrorCreateUsersWithArrayInputDefaultImplementation(Exception exception, string pathFormat, string path, List user) + private void OnErrorCreateUsersWithArrayInputDefaultImplementation(Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, List user) { - bool suppressDefaultLog = false; - OnErrorCreateUsersWithArrayInput(ref suppressDefaultLog, exception, pathFormat, path, user); - if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while sending the request to the server."); + bool suppressDefaultLogLocalVar = false; + OnErrorCreateUsersWithArrayInput(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, user); + if (!suppressDefaultLogLocalVar) + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling /// - /// - /// - /// - /// + /// + /// + /// + /// /// - partial void OnErrorCreateUsersWithArrayInput(ref bool suppressDefaultLog, Exception exception, string pathFormat, string path, List user); + partial void OnErrorCreateUsersWithArrayInput(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, List user); /// /// Creates list of users with given input array @@ -1024,27 +1024,27 @@ namespace Org.OpenAPITools.Api /// /// Logs exceptions that occur while retrieving the server response /// - /// - /// - /// + /// + /// + /// /// - private void OnErrorCreateUsersWithListInputDefaultImplementation(Exception exception, string pathFormat, string path, List user) + private void OnErrorCreateUsersWithListInputDefaultImplementation(Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, List user) { - bool suppressDefaultLog = false; - OnErrorCreateUsersWithListInput(ref suppressDefaultLog, exception, pathFormat, path, user); - if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while sending the request to the server."); + bool suppressDefaultLogLocalVar = false; + OnErrorCreateUsersWithListInput(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, user); + if (!suppressDefaultLogLocalVar) + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling /// - /// - /// - /// - /// + /// + /// + /// + /// /// - partial void OnErrorCreateUsersWithListInput(ref bool suppressDefaultLog, Exception exception, string pathFormat, string path, List user); + partial void OnErrorCreateUsersWithListInput(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, List user); /// /// Creates list of users with given input array @@ -1213,27 +1213,27 @@ namespace Org.OpenAPITools.Api /// /// Logs exceptions that occur while retrieving the server response /// - /// - /// - /// + /// + /// + /// /// - private void OnErrorDeleteUserDefaultImplementation(Exception exception, string pathFormat, string path, string username) + private void OnErrorDeleteUserDefaultImplementation(Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, string username) { - bool suppressDefaultLog = false; - OnErrorDeleteUser(ref suppressDefaultLog, exception, pathFormat, path, username); - if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while sending the request to the server."); + bool suppressDefaultLogLocalVar = false; + OnErrorDeleteUser(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, username); + if (!suppressDefaultLogLocalVar) + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling /// - /// - /// - /// - /// + /// + /// + /// + /// /// - partial void OnErrorDeleteUser(ref bool suppressDefaultLog, Exception exception, string pathFormat, string path, string username); + partial void OnErrorDeleteUser(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, string username); /// /// Delete user This can only be done by the logged in user. @@ -1396,27 +1396,27 @@ namespace Org.OpenAPITools.Api /// /// Logs exceptions that occur while retrieving the server response /// - /// - /// - /// + /// + /// + /// /// - private void OnErrorGetUserByNameDefaultImplementation(Exception exception, string pathFormat, string path, string username) + private void OnErrorGetUserByNameDefaultImplementation(Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, string username) { - bool suppressDefaultLog = false; - OnErrorGetUserByName(ref suppressDefaultLog, exception, pathFormat, path, username); - if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while sending the request to the server."); + bool suppressDefaultLogLocalVar = false; + OnErrorGetUserByName(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, username); + if (!suppressDefaultLogLocalVar) + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling /// - /// - /// - /// - /// + /// + /// + /// + /// /// - partial void OnErrorGetUserByName(ref bool suppressDefaultLog, Exception exception, string pathFormat, string path, string username); + partial void OnErrorGetUserByName(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, string username); /// /// Get user by user name @@ -1677,29 +1677,29 @@ namespace Org.OpenAPITools.Api /// /// Logs exceptions that occur while retrieving the server response /// - /// - /// - /// + /// + /// + /// /// /// - private void OnErrorLoginUserDefaultImplementation(Exception exception, string pathFormat, string path, string password, string username) + private void OnErrorLoginUserDefaultImplementation(Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, string password, string username) { - bool suppressDefaultLog = false; - OnErrorLoginUser(ref suppressDefaultLog, exception, pathFormat, path, password, username); - if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while sending the request to the server."); + bool suppressDefaultLogLocalVar = false; + OnErrorLoginUser(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, password, username); + if (!suppressDefaultLogLocalVar) + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling /// - /// - /// - /// - /// + /// + /// + /// + /// /// /// - partial void OnErrorLoginUser(ref bool suppressDefaultLog, Exception exception, string pathFormat, string path, string password, string username); + partial void OnErrorLoginUser(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, string password, string username); /// /// Logs user into the system @@ -1924,25 +1924,25 @@ namespace Org.OpenAPITools.Api /// /// Logs exceptions that occur while retrieving the server response /// - /// - /// - /// - private void OnErrorLogoutUserDefaultImplementation(Exception exception, string pathFormat, string path) + /// + /// + /// + private void OnErrorLogoutUserDefaultImplementation(Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar) { - bool suppressDefaultLog = false; - OnErrorLogoutUser(ref suppressDefaultLog, exception, pathFormat, path); - if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while sending the request to the server."); + bool suppressDefaultLogLocalVar = false; + OnErrorLogoutUser(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar); + if (!suppressDefaultLogLocalVar) + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling /// - /// - /// - /// - /// - partial void OnErrorLogoutUser(ref bool suppressDefaultLog, Exception exception, string pathFormat, string path); + /// + /// + /// + /// + partial void OnErrorLogoutUser(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar); /// /// Logs out current logged in user session @@ -2098,29 +2098,29 @@ namespace Org.OpenAPITools.Api /// /// Logs exceptions that occur while retrieving the server response /// - /// - /// - /// + /// + /// + /// /// /// - private void OnErrorUpdateUserDefaultImplementation(Exception exception, string pathFormat, string path, User user, string username) + private void OnErrorUpdateUserDefaultImplementation(Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, User user, string username) { - bool suppressDefaultLog = false; - OnErrorUpdateUser(ref suppressDefaultLog, exception, pathFormat, path, user, username); - if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while sending the request to the server."); + bool suppressDefaultLogLocalVar = false; + OnErrorUpdateUser(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, user, username); + if (!suppressDefaultLogLocalVar) + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling /// - /// - /// - /// - /// + /// + /// + /// + /// /// /// - partial void OnErrorUpdateUser(ref bool suppressDefaultLog, Exception exception, string pathFormat, string path, User user, string username); + partial void OnErrorUpdateUser(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, User user, string username); /// /// Updated user This can only be done by the logged in user. diff --git a/samples/client/petstore/csharp/generichost/net8/UseDateTimeForDate/src/Org.OpenAPITools/Api/DefaultApi.cs b/samples/client/petstore/csharp/generichost/net8/UseDateTimeForDate/src/Org.OpenAPITools/Api/DefaultApi.cs index c3823f08e00..7782f09b34b 100644 --- a/samples/client/petstore/csharp/generichost/net8/UseDateTimeForDate/src/Org.OpenAPITools/Api/DefaultApi.cs +++ b/samples/client/petstore/csharp/generichost/net8/UseDateTimeForDate/src/Org.OpenAPITools/Api/DefaultApi.cs @@ -157,25 +157,25 @@ namespace Org.OpenAPITools.Api /// /// Logs exceptions that occur while retrieving the server response /// - /// - /// - /// - private void OnErrorNowGetDefaultImplementation(Exception exception, string pathFormat, string path) + /// + /// + /// + private void OnErrorNowGetDefaultImplementation(Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar) { - bool suppressDefaultLog = false; - OnErrorNowGet(ref suppressDefaultLog, exception, pathFormat, path); - if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while sending the request to the server."); + bool suppressDefaultLogLocalVar = false; + OnErrorNowGet(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar); + if (!suppressDefaultLogLocalVar) + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling /// - /// - /// - /// - /// - partial void OnErrorNowGet(ref bool suppressDefaultLog, Exception exception, string pathFormat, string path); + /// + /// + /// + /// + partial void OnErrorNowGet(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar); /// /// diff --git a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Api/AnotherFakeApi.cs b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Api/AnotherFakeApi.cs index e41c0683788..57b7fd8511d 100644 --- a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Api/AnotherFakeApi.cs +++ b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Api/AnotherFakeApi.cs @@ -206,27 +206,27 @@ namespace Org.OpenAPITools.Api /// /// Logs exceptions that occur while retrieving the server response /// - /// - /// - /// + /// + /// + /// /// - private void OnErrorCall123TestSpecialTagsDefaultImplementation(Exception exception, string pathFormat, string path, ModelClient modelClient) + private void OnErrorCall123TestSpecialTagsDefaultImplementation(Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, ModelClient modelClient) { - bool suppressDefaultLog = false; - OnErrorCall123TestSpecialTags(ref suppressDefaultLog, exception, pathFormat, path, modelClient); - if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while sending the request to the server."); + bool suppressDefaultLogLocalVar = false; + OnErrorCall123TestSpecialTags(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, modelClient); + if (!suppressDefaultLogLocalVar) + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling /// - /// - /// - /// - /// + /// + /// + /// + /// /// - partial void OnErrorCall123TestSpecialTags(ref bool suppressDefaultLog, Exception exception, string pathFormat, string path, ModelClient modelClient); + partial void OnErrorCall123TestSpecialTags(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, ModelClient modelClient); /// /// To test special tags To test special tags and operation ID starting with number diff --git a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Api/DefaultApi.cs b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Api/DefaultApi.cs index 7542f987229..e2f9ed3767b 100644 --- a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Api/DefaultApi.cs +++ b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Api/DefaultApi.cs @@ -403,25 +403,25 @@ namespace Org.OpenAPITools.Api /// /// Logs exceptions that occur while retrieving the server response /// - /// - /// - /// - private void OnErrorFooGetDefaultImplementation(Exception exception, string pathFormat, string path) + /// + /// + /// + private void OnErrorFooGetDefaultImplementation(Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar) { - bool suppressDefaultLog = false; - OnErrorFooGet(ref suppressDefaultLog, exception, pathFormat, path); - if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while sending the request to the server."); + bool suppressDefaultLogLocalVar = false; + OnErrorFooGet(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar); + if (!suppressDefaultLogLocalVar) + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling /// - /// - /// - /// - /// - partial void OnErrorFooGet(ref bool suppressDefaultLog, Exception exception, string pathFormat, string path); + /// + /// + /// + /// + partial void OnErrorFooGet(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar); /// /// @@ -611,27 +611,27 @@ namespace Org.OpenAPITools.Api /// /// Logs exceptions that occur while retrieving the server response /// - /// - /// - /// + /// + /// + /// /// - private void OnErrorGetCountryDefaultImplementation(Exception exception, string pathFormat, string path, string country) + private void OnErrorGetCountryDefaultImplementation(Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, string country) { - bool suppressDefaultLog = false; - OnErrorGetCountry(ref suppressDefaultLog, exception, pathFormat, path, country); - if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while sending the request to the server."); + bool suppressDefaultLogLocalVar = false; + OnErrorGetCountry(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, country); + if (!suppressDefaultLogLocalVar) + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling /// - /// - /// - /// - /// + /// + /// + /// + /// /// - partial void OnErrorGetCountry(ref bool suppressDefaultLog, Exception exception, string pathFormat, string path, string country); + partial void OnErrorGetCountry(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, string country); /// /// @@ -791,25 +791,25 @@ namespace Org.OpenAPITools.Api /// /// Logs exceptions that occur while retrieving the server response /// - /// - /// - /// - private void OnErrorHelloDefaultImplementation(Exception exception, string pathFormat, string path) + /// + /// + /// + private void OnErrorHelloDefaultImplementation(Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar) { - bool suppressDefaultLog = false; - OnErrorHello(ref suppressDefaultLog, exception, pathFormat, path); - if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while sending the request to the server."); + bool suppressDefaultLogLocalVar = false; + OnErrorHello(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar); + if (!suppressDefaultLogLocalVar) + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling /// - /// - /// - /// - /// - partial void OnErrorHello(ref bool suppressDefaultLog, Exception exception, string pathFormat, string path); + /// + /// + /// + /// + partial void OnErrorHello(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar); /// /// Hello Hello @@ -984,25 +984,25 @@ namespace Org.OpenAPITools.Api /// /// Logs exceptions that occur while retrieving the server response /// - /// - /// - /// - private void OnErrorRolesReportGetDefaultImplementation(Exception exception, string pathFormat, string path) + /// + /// + /// + private void OnErrorRolesReportGetDefaultImplementation(Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar) { - bool suppressDefaultLog = false; - OnErrorRolesReportGet(ref suppressDefaultLog, exception, pathFormat, path); - if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while sending the request to the server."); + bool suppressDefaultLogLocalVar = false; + OnErrorRolesReportGet(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar); + if (!suppressDefaultLogLocalVar) + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling /// - /// - /// - /// - /// - partial void OnErrorRolesReportGet(ref bool suppressDefaultLog, Exception exception, string pathFormat, string path); + /// + /// + /// + /// + partial void OnErrorRolesReportGet(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar); /// /// @@ -1177,25 +1177,25 @@ namespace Org.OpenAPITools.Api /// /// Logs exceptions that occur while retrieving the server response /// - /// - /// - /// - private void OnErrorTestDefaultImplementation(Exception exception, string pathFormat, string path) + /// + /// + /// + private void OnErrorTestDefaultImplementation(Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar) { - bool suppressDefaultLog = false; - OnErrorTest(ref suppressDefaultLog, exception, pathFormat, path); - if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while sending the request to the server."); + bool suppressDefaultLogLocalVar = false; + OnErrorTest(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar); + if (!suppressDefaultLogLocalVar) + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling /// - /// - /// - /// - /// - partial void OnErrorTest(ref bool suppressDefaultLog, Exception exception, string pathFormat, string path); + /// + /// + /// + /// + partial void OnErrorTest(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar); /// /// Retrieve an existing Notificationtest's Elements diff --git a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Api/FakeApi.cs b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Api/FakeApi.cs index 33bd469b7c0..0df3dc21b8d 100644 --- a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Api/FakeApi.cs +++ b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Api/FakeApi.cs @@ -1312,25 +1312,25 @@ namespace Org.OpenAPITools.Api /// /// Logs exceptions that occur while retrieving the server response /// - /// - /// - /// - private void OnErrorFakeHealthGetDefaultImplementation(Exception exception, string pathFormat, string path) + /// + /// + /// + private void OnErrorFakeHealthGetDefaultImplementation(Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar) { - bool suppressDefaultLog = false; - OnErrorFakeHealthGet(ref suppressDefaultLog, exception, pathFormat, path); - if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while sending the request to the server."); + bool suppressDefaultLogLocalVar = false; + OnErrorFakeHealthGet(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar); + if (!suppressDefaultLogLocalVar) + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling /// - /// - /// - /// - /// - partial void OnErrorFakeHealthGet(ref bool suppressDefaultLog, Exception exception, string pathFormat, string path); + /// + /// + /// + /// + partial void OnErrorFakeHealthGet(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar); /// /// Health check endpoint @@ -1509,27 +1509,27 @@ namespace Org.OpenAPITools.Api /// /// Logs exceptions that occur while retrieving the server response /// - /// - /// - /// + /// + /// + /// /// - private void OnErrorFakeOuterBooleanSerializeDefaultImplementation(Exception exception, string pathFormat, string path, Option body) + private void OnErrorFakeOuterBooleanSerializeDefaultImplementation(Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, Option body) { - bool suppressDefaultLog = false; - OnErrorFakeOuterBooleanSerialize(ref suppressDefaultLog, exception, pathFormat, path, body); - if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while sending the request to the server."); + bool suppressDefaultLogLocalVar = false; + OnErrorFakeOuterBooleanSerialize(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, body); + if (!suppressDefaultLogLocalVar) + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling /// - /// - /// - /// - /// + /// + /// + /// + /// /// - partial void OnErrorFakeOuterBooleanSerialize(ref bool suppressDefaultLog, Exception exception, string pathFormat, string path, Option body); + partial void OnErrorFakeOuterBooleanSerialize(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, Option body); /// /// Test serialization of outer boolean types @@ -1737,27 +1737,27 @@ namespace Org.OpenAPITools.Api /// /// Logs exceptions that occur while retrieving the server response /// - /// - /// - /// + /// + /// + /// /// - private void OnErrorFakeOuterCompositeSerializeDefaultImplementation(Exception exception, string pathFormat, string path, Option outerComposite) + private void OnErrorFakeOuterCompositeSerializeDefaultImplementation(Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, Option outerComposite) { - bool suppressDefaultLog = false; - OnErrorFakeOuterCompositeSerialize(ref suppressDefaultLog, exception, pathFormat, path, outerComposite); - if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while sending the request to the server."); + bool suppressDefaultLogLocalVar = false; + OnErrorFakeOuterCompositeSerialize(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, outerComposite); + if (!suppressDefaultLogLocalVar) + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling /// - /// - /// - /// - /// + /// + /// + /// + /// /// - partial void OnErrorFakeOuterCompositeSerialize(ref bool suppressDefaultLog, Exception exception, string pathFormat, string path, Option outerComposite); + partial void OnErrorFakeOuterCompositeSerialize(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, Option outerComposite); /// /// Test serialization of object with outer number type @@ -1956,27 +1956,27 @@ namespace Org.OpenAPITools.Api /// /// Logs exceptions that occur while retrieving the server response /// - /// - /// - /// + /// + /// + /// /// - private void OnErrorFakeOuterNumberSerializeDefaultImplementation(Exception exception, string pathFormat, string path, Option body) + private void OnErrorFakeOuterNumberSerializeDefaultImplementation(Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, Option body) { - bool suppressDefaultLog = false; - OnErrorFakeOuterNumberSerialize(ref suppressDefaultLog, exception, pathFormat, path, body); - if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while sending the request to the server."); + bool suppressDefaultLogLocalVar = false; + OnErrorFakeOuterNumberSerialize(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, body); + if (!suppressDefaultLogLocalVar) + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling /// - /// - /// - /// - /// + /// + /// + /// + /// /// - partial void OnErrorFakeOuterNumberSerialize(ref bool suppressDefaultLog, Exception exception, string pathFormat, string path, Option body); + partial void OnErrorFakeOuterNumberSerialize(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, Option body); /// /// Test serialization of outer number types @@ -2186,29 +2186,29 @@ namespace Org.OpenAPITools.Api /// /// Logs exceptions that occur while retrieving the server response /// - /// - /// - /// + /// + /// + /// /// /// - private void OnErrorFakeOuterStringSerializeDefaultImplementation(Exception exception, string pathFormat, string path, Guid requiredStringUuid, Option body) + private void OnErrorFakeOuterStringSerializeDefaultImplementation(Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, Guid requiredStringUuid, Option body) { - bool suppressDefaultLog = false; - OnErrorFakeOuterStringSerialize(ref suppressDefaultLog, exception, pathFormat, path, requiredStringUuid, body); - if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while sending the request to the server."); + bool suppressDefaultLogLocalVar = false; + OnErrorFakeOuterStringSerialize(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, requiredStringUuid, body); + if (!suppressDefaultLogLocalVar) + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling /// - /// - /// - /// - /// + /// + /// + /// + /// /// /// - partial void OnErrorFakeOuterStringSerialize(ref bool suppressDefaultLog, Exception exception, string pathFormat, string path, Guid requiredStringUuid, Option body); + partial void OnErrorFakeOuterStringSerialize(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, Guid requiredStringUuid, Option body); /// /// Test serialization of outer string types @@ -2411,25 +2411,25 @@ namespace Org.OpenAPITools.Api /// /// Logs exceptions that occur while retrieving the server response /// - /// - /// - /// - private void OnErrorGetArrayOfEnumsDefaultImplementation(Exception exception, string pathFormat, string path) + /// + /// + /// + private void OnErrorGetArrayOfEnumsDefaultImplementation(Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar) { - bool suppressDefaultLog = false; - OnErrorGetArrayOfEnums(ref suppressDefaultLog, exception, pathFormat, path); - if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while sending the request to the server."); + bool suppressDefaultLogLocalVar = false; + OnErrorGetArrayOfEnums(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar); + if (!suppressDefaultLogLocalVar) + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling /// - /// - /// - /// - /// - partial void OnErrorGetArrayOfEnums(ref bool suppressDefaultLog, Exception exception, string pathFormat, string path); + /// + /// + /// + /// + partial void OnErrorGetArrayOfEnums(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar); /// /// Array of Enums @@ -2604,25 +2604,25 @@ namespace Org.OpenAPITools.Api /// /// Logs exceptions that occur while retrieving the server response /// - /// - /// - /// - private void OnErrorGetMixedAnyOfDefaultImplementation(Exception exception, string pathFormat, string path) + /// + /// + /// + private void OnErrorGetMixedAnyOfDefaultImplementation(Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar) { - bool suppressDefaultLog = false; - OnErrorGetMixedAnyOf(ref suppressDefaultLog, exception, pathFormat, path); - if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while sending the request to the server."); + bool suppressDefaultLogLocalVar = false; + OnErrorGetMixedAnyOf(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar); + if (!suppressDefaultLogLocalVar) + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling /// - /// - /// - /// - /// - partial void OnErrorGetMixedAnyOf(ref bool suppressDefaultLog, Exception exception, string pathFormat, string path); + /// + /// + /// + /// + partial void OnErrorGetMixedAnyOf(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar); /// /// Test mixed type anyOf deserialization @@ -2797,25 +2797,25 @@ namespace Org.OpenAPITools.Api /// /// Logs exceptions that occur while retrieving the server response /// - /// - /// - /// - private void OnErrorGetMixedOneOfDefaultImplementation(Exception exception, string pathFormat, string path) + /// + /// + /// + private void OnErrorGetMixedOneOfDefaultImplementation(Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar) { - bool suppressDefaultLog = false; - OnErrorGetMixedOneOf(ref suppressDefaultLog, exception, pathFormat, path); - if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while sending the request to the server."); + bool suppressDefaultLogLocalVar = false; + OnErrorGetMixedOneOf(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar); + if (!suppressDefaultLogLocalVar) + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling /// - /// - /// - /// - /// - partial void OnErrorGetMixedOneOf(ref bool suppressDefaultLog, Exception exception, string pathFormat, string path); + /// + /// + /// + /// + partial void OnErrorGetMixedOneOf(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar); /// /// Test mixed type oneOf deserialization @@ -3005,27 +3005,27 @@ namespace Org.OpenAPITools.Api /// /// Logs exceptions that occur while retrieving the server response /// - /// - /// - /// + /// + /// + /// /// - private void OnErrorTestAdditionalPropertiesReferenceDefaultImplementation(Exception exception, string pathFormat, string path, Dictionary requestBody) + private void OnErrorTestAdditionalPropertiesReferenceDefaultImplementation(Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, Dictionary requestBody) { - bool suppressDefaultLog = false; - OnErrorTestAdditionalPropertiesReference(ref suppressDefaultLog, exception, pathFormat, path, requestBody); - if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while sending the request to the server."); + bool suppressDefaultLogLocalVar = false; + OnErrorTestAdditionalPropertiesReference(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, requestBody); + if (!suppressDefaultLogLocalVar) + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling /// - /// - /// - /// - /// + /// + /// + /// + /// /// - partial void OnErrorTestAdditionalPropertiesReference(ref bool suppressDefaultLog, Exception exception, string pathFormat, string path, Dictionary requestBody); + partial void OnErrorTestAdditionalPropertiesReference(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, Dictionary requestBody); /// /// test referenced additionalProperties @@ -3194,27 +3194,27 @@ namespace Org.OpenAPITools.Api /// /// Logs exceptions that occur while retrieving the server response /// - /// - /// - /// + /// + /// + /// /// - private void OnErrorTestBodyWithFileSchemaDefaultImplementation(Exception exception, string pathFormat, string path, FileSchemaTestClass fileSchemaTestClass) + private void OnErrorTestBodyWithFileSchemaDefaultImplementation(Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, FileSchemaTestClass fileSchemaTestClass) { - bool suppressDefaultLog = false; - OnErrorTestBodyWithFileSchema(ref suppressDefaultLog, exception, pathFormat, path, fileSchemaTestClass); - if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while sending the request to the server."); + bool suppressDefaultLogLocalVar = false; + OnErrorTestBodyWithFileSchema(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, fileSchemaTestClass); + if (!suppressDefaultLogLocalVar) + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling /// - /// - /// - /// - /// + /// + /// + /// + /// /// - partial void OnErrorTestBodyWithFileSchema(ref bool suppressDefaultLog, Exception exception, string pathFormat, string path, FileSchemaTestClass fileSchemaTestClass); + partial void OnErrorTestBodyWithFileSchema(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, FileSchemaTestClass fileSchemaTestClass); /// /// For this test, the body for this request much reference a schema named `File`. @@ -3389,29 +3389,29 @@ namespace Org.OpenAPITools.Api /// /// Logs exceptions that occur while retrieving the server response /// - /// - /// - /// + /// + /// + /// /// /// - private void OnErrorTestBodyWithQueryParamsDefaultImplementation(Exception exception, string pathFormat, string path, string query, User user) + private void OnErrorTestBodyWithQueryParamsDefaultImplementation(Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, string query, User user) { - bool suppressDefaultLog = false; - OnErrorTestBodyWithQueryParams(ref suppressDefaultLog, exception, pathFormat, path, query, user); - if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while sending the request to the server."); + bool suppressDefaultLogLocalVar = false; + OnErrorTestBodyWithQueryParams(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, query, user); + if (!suppressDefaultLogLocalVar) + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling /// - /// - /// - /// - /// + /// + /// + /// + /// /// /// - partial void OnErrorTestBodyWithQueryParams(ref bool suppressDefaultLog, Exception exception, string pathFormat, string path, string query, User user); + partial void OnErrorTestBodyWithQueryParams(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, string query, User user); /// /// @@ -3588,27 +3588,27 @@ namespace Org.OpenAPITools.Api /// /// Logs exceptions that occur while retrieving the server response /// - /// - /// - /// + /// + /// + /// /// - private void OnErrorTestClientModelDefaultImplementation(Exception exception, string pathFormat, string path, ModelClient modelClient) + private void OnErrorTestClientModelDefaultImplementation(Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, ModelClient modelClient) { - bool suppressDefaultLog = false; - OnErrorTestClientModel(ref suppressDefaultLog, exception, pathFormat, path, modelClient); - if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while sending the request to the server."); + bool suppressDefaultLogLocalVar = false; + OnErrorTestClientModel(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, modelClient); + if (!suppressDefaultLogLocalVar) + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling /// - /// - /// - /// - /// + /// + /// + /// + /// /// - partial void OnErrorTestClientModel(ref bool suppressDefaultLog, Exception exception, string pathFormat, string path, ModelClient modelClient); + partial void OnErrorTestClientModel(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, ModelClient modelClient); /// /// To test \"client\" model To test \"client\" model @@ -3863,9 +3863,9 @@ namespace Org.OpenAPITools.Api /// /// Logs exceptions that occur while retrieving the server response /// - /// - /// - /// + /// + /// + /// /// /// /// @@ -3880,21 +3880,21 @@ namespace Org.OpenAPITools.Api /// /// /// - private void OnErrorTestEndpointParametersDefaultImplementation(Exception exception, string pathFormat, string path, decimal number, string patternWithoutDelimiter, byte[] varByte, double varDouble, Option binary, Option callback, Option date, Option dateTime, Option int32, Option int64, Option integer, Option password, Option varFloat, Option varString) + private void OnErrorTestEndpointParametersDefaultImplementation(Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, decimal number, string patternWithoutDelimiter, byte[] varByte, double varDouble, Option binary, Option callback, Option date, Option dateTime, Option int32, Option int64, Option integer, Option password, Option varFloat, Option varString) { - bool suppressDefaultLog = false; - OnErrorTestEndpointParameters(ref suppressDefaultLog, exception, pathFormat, path, number, patternWithoutDelimiter, varByte, varDouble, binary, callback, date, dateTime, int32, int64, integer, password, varFloat, varString); - if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while sending the request to the server."); + bool suppressDefaultLogLocalVar = false; + OnErrorTestEndpointParameters(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, number, patternWithoutDelimiter, varByte, varDouble, binary, callback, date, dateTime, int32, int64, integer, password, varFloat, varString); + if (!suppressDefaultLogLocalVar) + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling /// - /// - /// - /// - /// + /// + /// + /// + /// /// /// /// @@ -3909,7 +3909,7 @@ namespace Org.OpenAPITools.Api /// /// /// - partial void OnErrorTestEndpointParameters(ref bool suppressDefaultLog, Exception exception, string pathFormat, string path, decimal number, string patternWithoutDelimiter, byte[] varByte, double varDouble, Option binary, Option callback, Option date, Option dateTime, Option int32, Option int64, Option integer, Option password, Option varFloat, Option varString); + partial void OnErrorTestEndpointParameters(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, decimal number, string patternWithoutDelimiter, byte[] varByte, double varDouble, Option binary, Option callback, Option date, Option dateTime, Option int32, Option int64, Option integer, Option password, Option varFloat, Option varString); /// /// Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트 Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트 @@ -4197,9 +4197,9 @@ namespace Org.OpenAPITools.Api /// /// Logs exceptions that occur while retrieving the server response /// - /// - /// - /// + /// + /// + /// /// /// /// @@ -4208,21 +4208,21 @@ namespace Org.OpenAPITools.Api /// /// /// - private void OnErrorTestEnumParametersDefaultImplementation(Exception exception, string pathFormat, string path, Option enumFormString, Option> enumFormStringArray, Option enumHeaderString, Option> enumHeaderStringArray, Option enumQueryDouble, Option enumQueryInteger, Option enumQueryString, Option> enumQueryStringArray) + private void OnErrorTestEnumParametersDefaultImplementation(Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, Option enumFormString, Option> enumFormStringArray, Option enumHeaderString, Option> enumHeaderStringArray, Option enumQueryDouble, Option enumQueryInteger, Option enumQueryString, Option> enumQueryStringArray) { - bool suppressDefaultLog = false; - OnErrorTestEnumParameters(ref suppressDefaultLog, exception, pathFormat, path, enumFormString, enumFormStringArray, enumHeaderString, enumHeaderStringArray, enumQueryDouble, enumQueryInteger, enumQueryString, enumQueryStringArray); - if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while sending the request to the server."); + bool suppressDefaultLogLocalVar = false; + OnErrorTestEnumParameters(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, enumFormString, enumFormStringArray, enumHeaderString, enumHeaderStringArray, enumQueryDouble, enumQueryInteger, enumQueryString, enumQueryStringArray); + if (!suppressDefaultLogLocalVar) + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling /// - /// - /// - /// - /// + /// + /// + /// + /// /// /// /// @@ -4231,7 +4231,7 @@ namespace Org.OpenAPITools.Api /// /// /// - partial void OnErrorTestEnumParameters(ref bool suppressDefaultLog, Exception exception, string pathFormat, string path, Option enumFormString, Option> enumFormStringArray, Option enumHeaderString, Option> enumHeaderStringArray, Option enumQueryDouble, Option enumQueryInteger, Option enumQueryString, Option> enumQueryStringArray); + partial void OnErrorTestEnumParameters(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, Option enumFormString, Option> enumFormStringArray, Option enumHeaderString, Option> enumHeaderStringArray, Option enumQueryDouble, Option enumQueryInteger, Option enumQueryString, Option> enumQueryStringArray); /// /// To test enum parameters To test enum parameters @@ -4449,37 +4449,37 @@ namespace Org.OpenAPITools.Api /// /// Logs exceptions that occur while retrieving the server response /// - /// - /// - /// + /// + /// + /// /// /// /// /// /// /// - private void OnErrorTestGroupParametersDefaultImplementation(Exception exception, string pathFormat, string path, bool requiredBooleanGroup, long requiredInt64Group, int requiredStringGroup, Option booleanGroup, Option int64Group, Option stringGroup) + private void OnErrorTestGroupParametersDefaultImplementation(Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, bool requiredBooleanGroup, long requiredInt64Group, int requiredStringGroup, Option booleanGroup, Option int64Group, Option stringGroup) { - bool suppressDefaultLog = false; - OnErrorTestGroupParameters(ref suppressDefaultLog, exception, pathFormat, path, requiredBooleanGroup, requiredInt64Group, requiredStringGroup, booleanGroup, int64Group, stringGroup); - if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while sending the request to the server."); + bool suppressDefaultLogLocalVar = false; + OnErrorTestGroupParameters(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, requiredBooleanGroup, requiredInt64Group, requiredStringGroup, booleanGroup, int64Group, stringGroup); + if (!suppressDefaultLogLocalVar) + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling /// - /// - /// - /// - /// + /// + /// + /// + /// /// /// /// /// /// /// - partial void OnErrorTestGroupParameters(ref bool suppressDefaultLog, Exception exception, string pathFormat, string path, bool requiredBooleanGroup, long requiredInt64Group, int requiredStringGroup, Option booleanGroup, Option int64Group, Option stringGroup); + partial void OnErrorTestGroupParameters(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, bool requiredBooleanGroup, long requiredInt64Group, int requiredStringGroup, Option booleanGroup, Option int64Group, Option stringGroup); /// /// Fake endpoint to test group parameters (optional) Fake endpoint to test group parameters (optional) @@ -4671,27 +4671,27 @@ namespace Org.OpenAPITools.Api /// /// Logs exceptions that occur while retrieving the server response /// - /// - /// - /// + /// + /// + /// /// - private void OnErrorTestInlineAdditionalPropertiesDefaultImplementation(Exception exception, string pathFormat, string path, Dictionary requestBody) + private void OnErrorTestInlineAdditionalPropertiesDefaultImplementation(Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, Dictionary requestBody) { - bool suppressDefaultLog = false; - OnErrorTestInlineAdditionalProperties(ref suppressDefaultLog, exception, pathFormat, path, requestBody); - if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while sending the request to the server."); + bool suppressDefaultLogLocalVar = false; + OnErrorTestInlineAdditionalProperties(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, requestBody); + if (!suppressDefaultLogLocalVar) + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling /// - /// - /// - /// - /// + /// + /// + /// + /// /// - partial void OnErrorTestInlineAdditionalProperties(ref bool suppressDefaultLog, Exception exception, string pathFormat, string path, Dictionary requestBody); + partial void OnErrorTestInlineAdditionalProperties(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, Dictionary requestBody); /// /// test inline additionalProperties @@ -4860,27 +4860,27 @@ namespace Org.OpenAPITools.Api /// /// Logs exceptions that occur while retrieving the server response /// - /// - /// - /// + /// + /// + /// /// - private void OnErrorTestInlineFreeformAdditionalPropertiesDefaultImplementation(Exception exception, string pathFormat, string path, TestInlineFreeformAdditionalPropertiesRequest testInlineFreeformAdditionalPropertiesRequest) + private void OnErrorTestInlineFreeformAdditionalPropertiesDefaultImplementation(Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, TestInlineFreeformAdditionalPropertiesRequest testInlineFreeformAdditionalPropertiesRequest) { - bool suppressDefaultLog = false; - OnErrorTestInlineFreeformAdditionalProperties(ref suppressDefaultLog, exception, pathFormat, path, testInlineFreeformAdditionalPropertiesRequest); - if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while sending the request to the server."); + bool suppressDefaultLogLocalVar = false; + OnErrorTestInlineFreeformAdditionalProperties(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, testInlineFreeformAdditionalPropertiesRequest); + if (!suppressDefaultLogLocalVar) + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling /// - /// - /// - /// - /// + /// + /// + /// + /// /// - partial void OnErrorTestInlineFreeformAdditionalProperties(ref bool suppressDefaultLog, Exception exception, string pathFormat, string path, TestInlineFreeformAdditionalPropertiesRequest testInlineFreeformAdditionalPropertiesRequest); + partial void OnErrorTestInlineFreeformAdditionalProperties(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, TestInlineFreeformAdditionalPropertiesRequest testInlineFreeformAdditionalPropertiesRequest); /// /// test inline free-form additionalProperties @@ -5055,29 +5055,29 @@ namespace Org.OpenAPITools.Api /// /// Logs exceptions that occur while retrieving the server response /// - /// - /// - /// + /// + /// + /// /// /// - private void OnErrorTestJsonFormDataDefaultImplementation(Exception exception, string pathFormat, string path, string param, string param2) + private void OnErrorTestJsonFormDataDefaultImplementation(Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, string param, string param2) { - bool suppressDefaultLog = false; - OnErrorTestJsonFormData(ref suppressDefaultLog, exception, pathFormat, path, param, param2); - if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while sending the request to the server."); + bool suppressDefaultLogLocalVar = false; + OnErrorTestJsonFormData(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, param, param2); + if (!suppressDefaultLogLocalVar) + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling /// - /// - /// - /// - /// + /// + /// + /// + /// /// /// - partial void OnErrorTestJsonFormData(ref bool suppressDefaultLog, Exception exception, string pathFormat, string path, string param, string param2); + partial void OnErrorTestJsonFormData(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, string param, string param2); /// /// test json serialization of form data @@ -5296,9 +5296,9 @@ namespace Org.OpenAPITools.Api /// /// Logs exceptions that occur while retrieving the server response /// - /// - /// - /// + /// + /// + /// /// /// /// @@ -5308,21 +5308,21 @@ namespace Org.OpenAPITools.Api /// /// /// - private void OnErrorTestQueryParameterCollectionFormatDefaultImplementation(Exception exception, string pathFormat, string path, List context, List http, List ioutil, List pipe, string requiredNotNullable, List url, Option notRequiredNotNullable, Option notRequiredNullable, string requiredNullable) + private void OnErrorTestQueryParameterCollectionFormatDefaultImplementation(Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, List context, List http, List ioutil, List pipe, string requiredNotNullable, List url, Option notRequiredNotNullable, Option notRequiredNullable, string requiredNullable) { - bool suppressDefaultLog = false; - OnErrorTestQueryParameterCollectionFormat(ref suppressDefaultLog, exception, pathFormat, path, context, http, ioutil, pipe, requiredNotNullable, url, notRequiredNotNullable, notRequiredNullable, requiredNullable); - if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while sending the request to the server."); + bool suppressDefaultLogLocalVar = false; + OnErrorTestQueryParameterCollectionFormat(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, context, http, ioutil, pipe, requiredNotNullable, url, notRequiredNotNullable, notRequiredNullable, requiredNullable); + if (!suppressDefaultLogLocalVar) + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling /// - /// - /// - /// - /// + /// + /// + /// + /// /// /// /// @@ -5332,7 +5332,7 @@ namespace Org.OpenAPITools.Api /// /// /// - partial void OnErrorTestQueryParameterCollectionFormat(ref bool suppressDefaultLog, Exception exception, string pathFormat, string path, List context, List http, List ioutil, List pipe, string requiredNotNullable, List url, Option notRequiredNotNullable, Option notRequiredNullable, string requiredNullable); + partial void OnErrorTestQueryParameterCollectionFormat(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, List context, List http, List ioutil, List pipe, string requiredNotNullable, List url, Option notRequiredNotNullable, Option notRequiredNullable, string requiredNullable); /// /// To test the collection format in query parameters @@ -5521,27 +5521,27 @@ namespace Org.OpenAPITools.Api /// /// Logs exceptions that occur while retrieving the server response /// - /// - /// - /// + /// + /// + /// /// - private void OnErrorTestStringMapReferenceDefaultImplementation(Exception exception, string pathFormat, string path, Dictionary requestBody) + private void OnErrorTestStringMapReferenceDefaultImplementation(Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, Dictionary requestBody) { - bool suppressDefaultLog = false; - OnErrorTestStringMapReference(ref suppressDefaultLog, exception, pathFormat, path, requestBody); - if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while sending the request to the server."); + bool suppressDefaultLogLocalVar = false; + OnErrorTestStringMapReference(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, requestBody); + if (!suppressDefaultLogLocalVar) + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling /// - /// - /// - /// - /// + /// + /// + /// + /// /// - partial void OnErrorTestStringMapReference(ref bool suppressDefaultLog, Exception exception, string pathFormat, string path, Dictionary requestBody); + partial void OnErrorTestStringMapReference(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, Dictionary requestBody); /// /// test referenced string map diff --git a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Api/FakeClassnameTags123Api.cs b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Api/FakeClassnameTags123Api.cs index 612bc3a16f5..6417fde05b9 100644 --- a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Api/FakeClassnameTags123Api.cs +++ b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Api/FakeClassnameTags123Api.cs @@ -206,27 +206,27 @@ namespace Org.OpenAPITools.Api /// /// Logs exceptions that occur while retrieving the server response /// - /// - /// - /// + /// + /// + /// /// - private void OnErrorTestClassnameDefaultImplementation(Exception exception, string pathFormat, string path, ModelClient modelClient) + private void OnErrorTestClassnameDefaultImplementation(Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, ModelClient modelClient) { - bool suppressDefaultLog = false; - OnErrorTestClassname(ref suppressDefaultLog, exception, pathFormat, path, modelClient); - if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while sending the request to the server."); + bool suppressDefaultLogLocalVar = false; + OnErrorTestClassname(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, modelClient); + if (!suppressDefaultLogLocalVar) + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling /// - /// - /// - /// - /// + /// + /// + /// + /// /// - partial void OnErrorTestClassname(ref bool suppressDefaultLog, Exception exception, string pathFormat, string path, ModelClient modelClient); + partial void OnErrorTestClassname(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, ModelClient modelClient); /// /// To test class name in snake case To test class name in snake case diff --git a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Api/PetApi.cs b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Api/PetApi.cs index 92fbe7e6e8e..db54750a432 100644 --- a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Api/PetApi.cs +++ b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Api/PetApi.cs @@ -710,27 +710,27 @@ namespace Org.OpenAPITools.Api /// /// Logs exceptions that occur while retrieving the server response /// - /// - /// - /// + /// + /// + /// /// - private void OnErrorAddPetDefaultImplementation(Exception exception, string pathFormat, string path, Pet pet) + private void OnErrorAddPetDefaultImplementation(Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, Pet pet) { - bool suppressDefaultLog = false; - OnErrorAddPet(ref suppressDefaultLog, exception, pathFormat, path, pet); - if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while sending the request to the server."); + bool suppressDefaultLogLocalVar = false; + OnErrorAddPet(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, pet); + if (!suppressDefaultLogLocalVar) + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling /// - /// - /// - /// - /// + /// + /// + /// + /// /// - partial void OnErrorAddPet(ref bool suppressDefaultLog, Exception exception, string pathFormat, string path, Pet pet); + partial void OnErrorAddPet(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, Pet pet); /// /// Add a new pet to the store @@ -923,29 +923,29 @@ namespace Org.OpenAPITools.Api /// /// Logs exceptions that occur while retrieving the server response /// - /// - /// - /// + /// + /// + /// /// /// - private void OnErrorDeletePetDefaultImplementation(Exception exception, string pathFormat, string path, long petId, Option apiKey) + private void OnErrorDeletePetDefaultImplementation(Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, long petId, Option apiKey) { - bool suppressDefaultLog = false; - OnErrorDeletePet(ref suppressDefaultLog, exception, pathFormat, path, petId, apiKey); - if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while sending the request to the server."); + bool suppressDefaultLogLocalVar = false; + OnErrorDeletePet(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, petId, apiKey); + if (!suppressDefaultLogLocalVar) + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling /// - /// - /// - /// - /// + /// + /// + /// + /// /// /// - partial void OnErrorDeletePet(ref bool suppressDefaultLog, Exception exception, string pathFormat, string path, long petId, Option apiKey); + partial void OnErrorDeletePet(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, long petId, Option apiKey); /// /// Deletes a pet @@ -1117,27 +1117,27 @@ namespace Org.OpenAPITools.Api /// /// Logs exceptions that occur while retrieving the server response /// - /// - /// - /// + /// + /// + /// /// - private void OnErrorFindPetsByStatusDefaultImplementation(Exception exception, string pathFormat, string path, List status) + private void OnErrorFindPetsByStatusDefaultImplementation(Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, List status) { - bool suppressDefaultLog = false; - OnErrorFindPetsByStatus(ref suppressDefaultLog, exception, pathFormat, path, status); - if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while sending the request to the server."); + bool suppressDefaultLogLocalVar = false; + OnErrorFindPetsByStatus(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, status); + if (!suppressDefaultLogLocalVar) + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling /// - /// - /// - /// - /// + /// + /// + /// + /// /// - partial void OnErrorFindPetsByStatus(ref bool suppressDefaultLog, Exception exception, string pathFormat, string path, List status); + partial void OnErrorFindPetsByStatus(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, List status); /// /// Finds Pets by status Multiple status values can be provided with comma separated strings @@ -1393,27 +1393,27 @@ namespace Org.OpenAPITools.Api /// /// Logs exceptions that occur while retrieving the server response /// - /// - /// - /// + /// + /// + /// /// - private void OnErrorFindPetsByTagsDefaultImplementation(Exception exception, string pathFormat, string path, List tags) + private void OnErrorFindPetsByTagsDefaultImplementation(Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, List tags) { - bool suppressDefaultLog = false; - OnErrorFindPetsByTags(ref suppressDefaultLog, exception, pathFormat, path, tags); - if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while sending the request to the server."); + bool suppressDefaultLogLocalVar = false; + OnErrorFindPetsByTags(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, tags); + if (!suppressDefaultLogLocalVar) + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling /// - /// - /// - /// - /// + /// + /// + /// + /// /// - partial void OnErrorFindPetsByTags(ref bool suppressDefaultLog, Exception exception, string pathFormat, string path, List tags); + partial void OnErrorFindPetsByTags(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, List tags); /// /// Finds Pets by tags Multiple tags can be provided with comma separated strings. Use tag1, tag2, tag3 for testing. @@ -1632,27 +1632,27 @@ namespace Org.OpenAPITools.Api /// /// Logs exceptions that occur while retrieving the server response /// - /// - /// - /// + /// + /// + /// /// - private void OnErrorGetPetByIdDefaultImplementation(Exception exception, string pathFormat, string path, long petId) + private void OnErrorGetPetByIdDefaultImplementation(Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, long petId) { - bool suppressDefaultLog = false; - OnErrorGetPetById(ref suppressDefaultLog, exception, pathFormat, path, petId); - if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while sending the request to the server."); + bool suppressDefaultLogLocalVar = false; + OnErrorGetPetById(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, petId); + if (!suppressDefaultLogLocalVar) + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling /// - /// - /// - /// - /// + /// + /// + /// + /// /// - partial void OnErrorGetPetById(ref bool suppressDefaultLog, Exception exception, string pathFormat, string path, long petId); + partial void OnErrorGetPetById(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, long petId); /// /// Find pet by ID Returns a single pet @@ -1877,27 +1877,27 @@ namespace Org.OpenAPITools.Api /// /// Logs exceptions that occur while retrieving the server response /// - /// - /// - /// + /// + /// + /// /// - private void OnErrorUpdatePetDefaultImplementation(Exception exception, string pathFormat, string path, Pet pet) + private void OnErrorUpdatePetDefaultImplementation(Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, Pet pet) { - bool suppressDefaultLog = false; - OnErrorUpdatePet(ref suppressDefaultLog, exception, pathFormat, path, pet); - if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while sending the request to the server."); + bool suppressDefaultLogLocalVar = false; + OnErrorUpdatePet(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, pet); + if (!suppressDefaultLogLocalVar) + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling /// - /// - /// - /// - /// + /// + /// + /// + /// /// - partial void OnErrorUpdatePet(ref bool suppressDefaultLog, Exception exception, string pathFormat, string path, Pet pet); + partial void OnErrorUpdatePet(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, Pet pet); /// /// Update an existing pet @@ -2108,31 +2108,31 @@ namespace Org.OpenAPITools.Api /// /// Logs exceptions that occur while retrieving the server response /// - /// - /// - /// + /// + /// + /// /// /// /// - private void OnErrorUpdatePetWithFormDefaultImplementation(Exception exception, string pathFormat, string path, long petId, Option name, Option status) + private void OnErrorUpdatePetWithFormDefaultImplementation(Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, long petId, Option name, Option status) { - bool suppressDefaultLog = false; - OnErrorUpdatePetWithForm(ref suppressDefaultLog, exception, pathFormat, path, petId, name, status); - if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while sending the request to the server."); + bool suppressDefaultLogLocalVar = false; + OnErrorUpdatePetWithForm(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, petId, name, status); + if (!suppressDefaultLogLocalVar) + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling /// - /// - /// - /// - /// + /// + /// + /// + /// /// /// /// - partial void OnErrorUpdatePetWithForm(ref bool suppressDefaultLog, Exception exception, string pathFormat, string path, long petId, Option name, Option status); + partial void OnErrorUpdatePetWithForm(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, long petId, Option name, Option status); /// /// Updates a pet in the store with form data @@ -2333,31 +2333,31 @@ namespace Org.OpenAPITools.Api /// /// Logs exceptions that occur while retrieving the server response /// - /// - /// - /// + /// + /// + /// /// /// /// - private void OnErrorUploadFileDefaultImplementation(Exception exception, string pathFormat, string path, long petId, Option additionalMetadata, Option file) + private void OnErrorUploadFileDefaultImplementation(Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, long petId, Option additionalMetadata, Option file) { - bool suppressDefaultLog = false; - OnErrorUploadFile(ref suppressDefaultLog, exception, pathFormat, path, petId, additionalMetadata, file); - if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while sending the request to the server."); + bool suppressDefaultLogLocalVar = false; + OnErrorUploadFile(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, petId, additionalMetadata, file); + if (!suppressDefaultLogLocalVar) + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling /// - /// - /// - /// - /// + /// + /// + /// + /// /// /// /// - partial void OnErrorUploadFile(ref bool suppressDefaultLog, Exception exception, string pathFormat, string path, long petId, Option additionalMetadata, Option file); + partial void OnErrorUploadFile(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, long petId, Option additionalMetadata, Option file); /// /// uploads an image @@ -2598,31 +2598,31 @@ namespace Org.OpenAPITools.Api /// /// Logs exceptions that occur while retrieving the server response /// - /// - /// - /// + /// + /// + /// /// /// /// - private void OnErrorUploadFileWithRequiredFileDefaultImplementation(Exception exception, string pathFormat, string path, long petId, System.IO.Stream requiredFile, Option additionalMetadata) + private void OnErrorUploadFileWithRequiredFileDefaultImplementation(Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, long petId, System.IO.Stream requiredFile, Option additionalMetadata) { - bool suppressDefaultLog = false; - OnErrorUploadFileWithRequiredFile(ref suppressDefaultLog, exception, pathFormat, path, petId, requiredFile, additionalMetadata); - if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while sending the request to the server."); + bool suppressDefaultLogLocalVar = false; + OnErrorUploadFileWithRequiredFile(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, petId, requiredFile, additionalMetadata); + if (!suppressDefaultLogLocalVar) + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling /// - /// - /// - /// - /// + /// + /// + /// + /// /// /// /// - partial void OnErrorUploadFileWithRequiredFile(ref bool suppressDefaultLog, Exception exception, string pathFormat, string path, long petId, System.IO.Stream requiredFile, Option additionalMetadata); + partial void OnErrorUploadFileWithRequiredFile(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, long petId, System.IO.Stream requiredFile, Option additionalMetadata); /// /// uploads an image (required) diff --git a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Api/StoreApi.cs b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Api/StoreApi.cs index 823c5a23c02..52a7f2d5612 100644 --- a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Api/StoreApi.cs +++ b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Api/StoreApi.cs @@ -393,27 +393,27 @@ namespace Org.OpenAPITools.Api /// /// Logs exceptions that occur while retrieving the server response /// - /// - /// - /// + /// + /// + /// /// - private void OnErrorDeleteOrderDefaultImplementation(Exception exception, string pathFormat, string path, string orderId) + private void OnErrorDeleteOrderDefaultImplementation(Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, string orderId) { - bool suppressDefaultLog = false; - OnErrorDeleteOrder(ref suppressDefaultLog, exception, pathFormat, path, orderId); - if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while sending the request to the server."); + bool suppressDefaultLogLocalVar = false; + OnErrorDeleteOrder(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, orderId); + if (!suppressDefaultLogLocalVar) + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling /// - /// - /// - /// - /// + /// + /// + /// + /// /// - partial void OnErrorDeleteOrder(ref bool suppressDefaultLog, Exception exception, string pathFormat, string path, string orderId); + partial void OnErrorDeleteOrder(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, string orderId); /// /// Delete purchase order by ID For valid response try integer IDs with value < 1000. Anything above 1000 or nonintegers will generate API errors @@ -560,25 +560,25 @@ namespace Org.OpenAPITools.Api /// /// Logs exceptions that occur while retrieving the server response /// - /// - /// - /// - private void OnErrorGetInventoryDefaultImplementation(Exception exception, string pathFormat, string path) + /// + /// + /// + private void OnErrorGetInventoryDefaultImplementation(Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar) { - bool suppressDefaultLog = false; - OnErrorGetInventory(ref suppressDefaultLog, exception, pathFormat, path); - if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while sending the request to the server."); + bool suppressDefaultLogLocalVar = false; + OnErrorGetInventory(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar); + if (!suppressDefaultLogLocalVar) + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling /// - /// - /// - /// - /// - partial void OnErrorGetInventory(ref bool suppressDefaultLog, Exception exception, string pathFormat, string path); + /// + /// + /// + /// + partial void OnErrorGetInventory(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar); /// /// Returns pet inventories by status Returns a map of status codes to quantities @@ -766,27 +766,27 @@ namespace Org.OpenAPITools.Api /// /// Logs exceptions that occur while retrieving the server response /// - /// - /// - /// + /// + /// + /// /// - private void OnErrorGetOrderByIdDefaultImplementation(Exception exception, string pathFormat, string path, long orderId) + private void OnErrorGetOrderByIdDefaultImplementation(Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, long orderId) { - bool suppressDefaultLog = false; - OnErrorGetOrderById(ref suppressDefaultLog, exception, pathFormat, path, orderId); - if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while sending the request to the server."); + bool suppressDefaultLogLocalVar = false; + OnErrorGetOrderById(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, orderId); + if (!suppressDefaultLogLocalVar) + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling /// - /// - /// - /// - /// + /// + /// + /// + /// /// - partial void OnErrorGetOrderById(ref bool suppressDefaultLog, Exception exception, string pathFormat, string path, long orderId); + partial void OnErrorGetOrderById(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, long orderId); /// /// Find purchase order by ID For valid response try integer IDs with value <= 5 or > 10. Other values will generate exceptions @@ -994,27 +994,27 @@ namespace Org.OpenAPITools.Api /// /// Logs exceptions that occur while retrieving the server response /// - /// - /// - /// + /// + /// + /// /// - private void OnErrorPlaceOrderDefaultImplementation(Exception exception, string pathFormat, string path, Order order) + private void OnErrorPlaceOrderDefaultImplementation(Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, Order order) { - bool suppressDefaultLog = false; - OnErrorPlaceOrder(ref suppressDefaultLog, exception, pathFormat, path, order); - if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while sending the request to the server."); + bool suppressDefaultLogLocalVar = false; + OnErrorPlaceOrder(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, order); + if (!suppressDefaultLogLocalVar) + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling /// - /// - /// - /// - /// + /// + /// + /// + /// /// - partial void OnErrorPlaceOrder(ref bool suppressDefaultLog, Exception exception, string pathFormat, string path, Order order); + partial void OnErrorPlaceOrder(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, Order order); /// /// Place an order for a pet diff --git a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Api/UserApi.cs b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Api/UserApi.cs index b9f0d653ffa..d29929bbd0f 100644 --- a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Api/UserApi.cs +++ b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Api/UserApi.cs @@ -635,27 +635,27 @@ namespace Org.OpenAPITools.Api /// /// Logs exceptions that occur while retrieving the server response /// - /// - /// - /// + /// + /// + /// /// - private void OnErrorCreateUserDefaultImplementation(Exception exception, string pathFormat, string path, User user) + private void OnErrorCreateUserDefaultImplementation(Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, User user) { - bool suppressDefaultLog = false; - OnErrorCreateUser(ref suppressDefaultLog, exception, pathFormat, path, user); - if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while sending the request to the server."); + bool suppressDefaultLogLocalVar = false; + OnErrorCreateUser(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, user); + if (!suppressDefaultLogLocalVar) + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling /// - /// - /// - /// - /// + /// + /// + /// + /// /// - partial void OnErrorCreateUser(ref bool suppressDefaultLog, Exception exception, string pathFormat, string path, User user); + partial void OnErrorCreateUser(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, User user); /// /// Create user This can only be done by the logged in user. @@ -824,27 +824,27 @@ namespace Org.OpenAPITools.Api /// /// Logs exceptions that occur while retrieving the server response /// - /// - /// - /// + /// + /// + /// /// - private void OnErrorCreateUsersWithArrayInputDefaultImplementation(Exception exception, string pathFormat, string path, List user) + private void OnErrorCreateUsersWithArrayInputDefaultImplementation(Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, List user) { - bool suppressDefaultLog = false; - OnErrorCreateUsersWithArrayInput(ref suppressDefaultLog, exception, pathFormat, path, user); - if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while sending the request to the server."); + bool suppressDefaultLogLocalVar = false; + OnErrorCreateUsersWithArrayInput(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, user); + if (!suppressDefaultLogLocalVar) + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling /// - /// - /// - /// - /// + /// + /// + /// + /// /// - partial void OnErrorCreateUsersWithArrayInput(ref bool suppressDefaultLog, Exception exception, string pathFormat, string path, List user); + partial void OnErrorCreateUsersWithArrayInput(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, List user); /// /// Creates list of users with given input array @@ -1013,27 +1013,27 @@ namespace Org.OpenAPITools.Api /// /// Logs exceptions that occur while retrieving the server response /// - /// - /// - /// + /// + /// + /// /// - private void OnErrorCreateUsersWithListInputDefaultImplementation(Exception exception, string pathFormat, string path, List user) + private void OnErrorCreateUsersWithListInputDefaultImplementation(Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, List user) { - bool suppressDefaultLog = false; - OnErrorCreateUsersWithListInput(ref suppressDefaultLog, exception, pathFormat, path, user); - if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while sending the request to the server."); + bool suppressDefaultLogLocalVar = false; + OnErrorCreateUsersWithListInput(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, user); + if (!suppressDefaultLogLocalVar) + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling /// - /// - /// - /// - /// + /// + /// + /// + /// /// - partial void OnErrorCreateUsersWithListInput(ref bool suppressDefaultLog, Exception exception, string pathFormat, string path, List user); + partial void OnErrorCreateUsersWithListInput(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, List user); /// /// Creates list of users with given input array @@ -1202,27 +1202,27 @@ namespace Org.OpenAPITools.Api /// /// Logs exceptions that occur while retrieving the server response /// - /// - /// - /// + /// + /// + /// /// - private void OnErrorDeleteUserDefaultImplementation(Exception exception, string pathFormat, string path, string username) + private void OnErrorDeleteUserDefaultImplementation(Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, string username) { - bool suppressDefaultLog = false; - OnErrorDeleteUser(ref suppressDefaultLog, exception, pathFormat, path, username); - if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while sending the request to the server."); + bool suppressDefaultLogLocalVar = false; + OnErrorDeleteUser(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, username); + if (!suppressDefaultLogLocalVar) + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling /// - /// - /// - /// - /// + /// + /// + /// + /// /// - partial void OnErrorDeleteUser(ref bool suppressDefaultLog, Exception exception, string pathFormat, string path, string username); + partial void OnErrorDeleteUser(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, string username); /// /// Delete user This can only be done by the logged in user. @@ -1384,27 +1384,27 @@ namespace Org.OpenAPITools.Api /// /// Logs exceptions that occur while retrieving the server response /// - /// - /// - /// + /// + /// + /// /// - private void OnErrorGetUserByNameDefaultImplementation(Exception exception, string pathFormat, string path, string username) + private void OnErrorGetUserByNameDefaultImplementation(Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, string username) { - bool suppressDefaultLog = false; - OnErrorGetUserByName(ref suppressDefaultLog, exception, pathFormat, path, username); - if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while sending the request to the server."); + bool suppressDefaultLogLocalVar = false; + OnErrorGetUserByName(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, username); + if (!suppressDefaultLogLocalVar) + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling /// - /// - /// - /// - /// + /// + /// + /// + /// /// - partial void OnErrorGetUserByName(ref bool suppressDefaultLog, Exception exception, string pathFormat, string path, string username); + partial void OnErrorGetUserByName(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, string username); /// /// Get user by user name @@ -1664,29 +1664,29 @@ namespace Org.OpenAPITools.Api /// /// Logs exceptions that occur while retrieving the server response /// - /// - /// - /// + /// + /// + /// /// /// - private void OnErrorLoginUserDefaultImplementation(Exception exception, string pathFormat, string path, string password, string username) + private void OnErrorLoginUserDefaultImplementation(Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, string password, string username) { - bool suppressDefaultLog = false; - OnErrorLoginUser(ref suppressDefaultLog, exception, pathFormat, path, password, username); - if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while sending the request to the server."); + bool suppressDefaultLogLocalVar = false; + OnErrorLoginUser(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, password, username); + if (!suppressDefaultLogLocalVar) + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling /// - /// - /// - /// - /// + /// + /// + /// + /// /// /// - partial void OnErrorLoginUser(ref bool suppressDefaultLog, Exception exception, string pathFormat, string path, string password, string username); + partial void OnErrorLoginUser(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, string password, string username); /// /// Logs user into the system @@ -1883,25 +1883,25 @@ namespace Org.OpenAPITools.Api /// /// Logs exceptions that occur while retrieving the server response /// - /// - /// - /// - private void OnErrorLogoutUserDefaultImplementation(Exception exception, string pathFormat, string path) + /// + /// + /// + private void OnErrorLogoutUserDefaultImplementation(Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar) { - bool suppressDefaultLog = false; - OnErrorLogoutUser(ref suppressDefaultLog, exception, pathFormat, path); - if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while sending the request to the server."); + bool suppressDefaultLogLocalVar = false; + OnErrorLogoutUser(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar); + if (!suppressDefaultLogLocalVar) + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling /// - /// - /// - /// - /// - partial void OnErrorLogoutUser(ref bool suppressDefaultLog, Exception exception, string pathFormat, string path); + /// + /// + /// + /// + partial void OnErrorLogoutUser(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar); /// /// Logs out current logged in user session @@ -2056,29 +2056,29 @@ namespace Org.OpenAPITools.Api /// /// Logs exceptions that occur while retrieving the server response /// - /// - /// - /// + /// + /// + /// /// /// - private void OnErrorUpdateUserDefaultImplementation(Exception exception, string pathFormat, string path, User user, string username) + private void OnErrorUpdateUserDefaultImplementation(Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, User user, string username) { - bool suppressDefaultLog = false; - OnErrorUpdateUser(ref suppressDefaultLog, exception, pathFormat, path, user, username); - if (!suppressDefaultLog) - Logger.LogError(exception, "An error occurred while sending the request to the server."); + bool suppressDefaultLogLocalVar = false; + OnErrorUpdateUser(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, user, username); + if (!suppressDefaultLogLocalVar) + Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } /// /// A partial method that gives developers a way to provide customized exception handling /// - /// - /// - /// - /// + /// + /// + /// + /// /// /// - partial void OnErrorUpdateUser(ref bool suppressDefaultLog, Exception exception, string pathFormat, string path, User user, string username); + partial void OnErrorUpdateUser(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, User user, string username); /// /// Updated user This can only be done by the logged in user.