diff --git a/modules/openapi-generator/src/main/resources/csharp-functions/ApiClient.mustache b/modules/openapi-generator/src/main/resources/csharp-functions/ApiClient.mustache index 7e54ed98b644..eebc1e594c97 100644 --- a/modules/openapi-generator/src/main/resources/csharp-functions/ApiClient.mustache +++ b/modules/openapi-generator/src/main/resources/csharp-functions/ApiClient.mustache @@ -183,14 +183,14 @@ namespace {{packageName}}.Client /// Allows for extending request processing for generated code. /// /// The RestSharp request object - partial void InterceptRequest(IRestRequest request); + public virtual void InterceptRequest(IRestRequest request) { } /// /// Allows for extending response processing for generated code. /// /// The RestSharp request object /// The RestSharp response object - partial void InterceptResponse(IRestRequest request, IRestResponse response); + public virtual void InterceptResponse(IRestRequest request, IRestResponse response) { } /// /// Initializes a new instance of the , defaulting to the global configurations' base url. diff --git a/modules/openapi-generator/src/main/resources/csharp-functions/libraries/httpclient/ApiClient.mustache b/modules/openapi-generator/src/main/resources/csharp-functions/libraries/httpclient/ApiClient.mustache index 17e260a8139f..21fcb281701a 100644 --- a/modules/openapi-generator/src/main/resources/csharp-functions/libraries/httpclient/ApiClient.mustache +++ b/modules/openapi-generator/src/main/resources/csharp-functions/libraries/httpclient/ApiClient.mustache @@ -393,8 +393,8 @@ namespace {{packageName}}.Client return request; } - partial void InterceptRequest(HttpRequestMessage req); - partial void InterceptResponse(HttpRequestMessage req, HttpResponseMessage response); + public virtual void InterceptRequest(HttpRequestMessage req) { } + public virtual void InterceptResponse(HttpRequestMessage req, HttpResponseMessage response) { } private async Task> ToApiResponse(HttpResponseMessage response, object responseData, Uri uri) { diff --git a/modules/openapi-generator/src/main/resources/csharp/ApiClient.mustache b/modules/openapi-generator/src/main/resources/csharp/ApiClient.mustache index a63d1c2be9c1..21a3bcc758f8 100644 --- a/modules/openapi-generator/src/main/resources/csharp/ApiClient.mustache +++ b/modules/openapi-generator/src/main/resources/csharp/ApiClient.mustache @@ -191,14 +191,14 @@ namespace {{packageName}}.Client /// Allows for extending request processing for generated code. /// /// The RestSharp request object - partial void InterceptRequest(RestRequest request); + public virtual void InterceptRequest(RestRequest request) { } /// /// Allows for extending response processing for generated code. /// /// The RestSharp request object /// The RestSharp response object - partial void InterceptResponse(RestRequest request, RestResponse response); + public virtual void InterceptResponse(RestRequest request, RestResponse response) { } /// /// Initializes a new instance of the , defaulting to the global configurations' base url. diff --git a/modules/openapi-generator/src/main/resources/csharp/libraries/generichost/ApiResponse`1.mustache b/modules/openapi-generator/src/main/resources/csharp/libraries/generichost/ApiResponse`1.mustache index 1b12e4173931..be69c7d020dd 100644 --- a/modules/openapi-generator/src/main/resources/csharp/libraries/generichost/ApiResponse`1.mustache +++ b/modules/openapi-generator/src/main/resources/csharp/libraries/generichost/ApiResponse`1.mustache @@ -143,7 +143,7 @@ namespace {{packageName}}.{{clientPackage}} OnCreated(httpRequestMessage, httpResponseMessage); } - partial void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage); + public virtual void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage) { } } {{#x-http-statuses-with-return}} 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 bd8d6fae4933..5bf69ffda5d0 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 @@ -241,7 +241,7 @@ namespace {{packageName}}.{{apiPackage}} {{#allParams}} {{#-first}} - partial void Format{{operationId}}({{#allParams}}{{#isPrimitiveType}}ref {{/isPrimitiveType}}{{^required}}Option<{{/required}}{{{dataType}}}{{>NullConditionalParameter}}{{^required}}>{{/required}} {{paramName}}{{^-last}}, {{/-last}}{{/allParams}}); + public virtual void Format{{operationId}}({{#allParams}}{{#isPrimitiveType}}ref {{/isPrimitiveType}}{{^required}}Option<{{/required}}{{{dataType}}}{{>NullConditionalParameter}}{{^required}}>{{/required}} {{paramName}}{{^-last}}, {{/-last}}{{/allParams}}) { } {{/-first}} {{/allParams}} @@ -298,7 +298,7 @@ namespace {{packageName}}.{{apiPackage}} {{#allParams}} /// {{/allParams}} - partial void After{{operationId}}({{#lambda.joinWithComma}}ref bool suppressDefaultLog {{interfacePrefix}}{{operationId}}ApiResponse apiResponseLocalVar {{#allParams}}{{^required}}Option<{{/required}}{{{dataType}}}{{>NullConditionalParameter}}{{^required}}>{{/required}} {{paramName}} {{/allParams}}{{/lambda.joinWithComma}}); + public virtual void After{{operationId}}({{#lambda.joinWithComma}}ref bool suppressDefaultLog {{interfacePrefix}}{{operationId}}ApiResponse apiResponseLocalVar {{#allParams}}{{^required}}Option<{{/required}}{{{dataType}}}{{>NullConditionalParameter}}{{^required}}>{{/required}} {{paramName}} {{/allParams}}{{/lambda.joinWithComma}}) { } /// /// Logs exceptions that occur while retrieving the server response @@ -326,7 +326,7 @@ namespace {{packageName}}.{{apiPackage}} {{#allParams}} /// {{/allParams}} - 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}}); + public virtual 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}} @@ -709,7 +709,7 @@ namespace {{packageName}}.{{apiPackage}} OnCreated(httpRequestMessage, httpResponseMessage); } - partial void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage); + public virtual void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage) { } {{#responses}} {{#vendorExtensions.x-http-status-is-default}} @@ -786,7 +786,7 @@ namespace {{packageName}}.{{apiPackage}} {{/lambda.trimTrailingWithNewLine}} } - partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); + public virtual void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode) { } {{/-last}} {{/responses}} } diff --git a/modules/openapi-generator/src/main/resources/csharp/libraries/generichost/modelGeneric.mustache b/modules/openapi-generator/src/main/resources/csharp/libraries/generichost/modelGeneric.mustache index 0f338dd25b57..289ae424c4bb 100644 --- a/modules/openapi-generator/src/main/resources/csharp/libraries/generichost/modelGeneric.mustache +++ b/modules/openapi-generator/src/main/resources/csharp/libraries/generichost/modelGeneric.mustache @@ -76,7 +76,7 @@ } {{/composedSchemas.oneOf}} - partial void OnCreated(); + public virtual void OnCreated() { } {{#vars}} {{#items.isEnum}} diff --git a/modules/openapi-generator/src/main/resources/csharp/libraries/httpclient/ApiClient.mustache b/modules/openapi-generator/src/main/resources/csharp/libraries/httpclient/ApiClient.mustache index cefe6be9ff86..cbf6307a4962 100644 --- a/modules/openapi-generator/src/main/resources/csharp/libraries/httpclient/ApiClient.mustache +++ b/modules/openapi-generator/src/main/resources/csharp/libraries/httpclient/ApiClient.mustache @@ -419,8 +419,8 @@ namespace {{packageName}}.Client return request; } - partial void InterceptRequest(HttpRequestMessage req); - partial void InterceptResponse(HttpRequestMessage req, HttpResponseMessage response); + public virtual void InterceptRequest(HttpRequestMessage req) { } + public virtual void InterceptResponse(HttpRequestMessage req, HttpResponseMessage response) { } private async Task> ToApiResponse(HttpResponseMessage response, object responseData, Uri uri) { diff --git a/modules/openapi-generator/src/main/resources/csharp/libraries/unityWebRequest/ApiClient.mustache b/modules/openapi-generator/src/main/resources/csharp/libraries/unityWebRequest/ApiClient.mustache index df7b9d054226..0e1b7062188a 100644 --- a/modules/openapi-generator/src/main/resources/csharp/libraries/unityWebRequest/ApiClient.mustache +++ b/modules/openapi-generator/src/main/resources/csharp/libraries/unityWebRequest/ApiClient.mustache @@ -340,8 +340,8 @@ namespace {{packageName}}.Client } - partial void InterceptRequest(UnityWebRequest req, string path, RequestOptions options, IReadableConfiguration configuration); - partial void InterceptResponse(UnityWebRequest req, string path, RequestOptions options, IReadableConfiguration configuration, ref object responseData); + public virtual void InterceptRequest(UnityWebRequest req, string path, RequestOptions options, IReadableConfiguration configuration) { } + public virtual void InterceptResponse(UnityWebRequest req, string path, RequestOptions options, IReadableConfiguration configuration, ref object responseData) { } private ApiResponse ToApiResponse(UnityWebRequest request, object responseData) { diff --git a/samples/client/echo_api/csharp-restsharp/src/Org.OpenAPITools/Client/ApiClient.cs b/samples/client/echo_api/csharp-restsharp/src/Org.OpenAPITools/Client/ApiClient.cs index 102b13d3043f..08bddf9d11f8 100644 --- a/samples/client/echo_api/csharp-restsharp/src/Org.OpenAPITools/Client/ApiClient.cs +++ b/samples/client/echo_api/csharp-restsharp/src/Org.OpenAPITools/Client/ApiClient.cs @@ -191,14 +191,14 @@ public partial class ApiClient : ISynchronousClient, IAsynchronousClient /// Allows for extending request processing for generated code. /// /// The RestSharp request object - partial void InterceptRequest(RestRequest request); + public virtual void InterceptRequest(RestRequest request) { } /// /// Allows for extending response processing for generated code. /// /// The RestSharp request object /// The RestSharp response object - partial void InterceptResponse(RestRequest request, RestResponse response); + public virtual void InterceptResponse(RestRequest request, RestResponse response) { } /// /// Initializes a new instance of the , defaulting to the global configurations' base url. diff --git a/samples/client/others/csharp-complex-files/src/Org.OpenAPITools/Client/ApiClient.cs b/samples/client/others/csharp-complex-files/src/Org.OpenAPITools/Client/ApiClient.cs index 0aeff507af0f..55d6aa108817 100644 --- a/samples/client/others/csharp-complex-files/src/Org.OpenAPITools/Client/ApiClient.cs +++ b/samples/client/others/csharp-complex-files/src/Org.OpenAPITools/Client/ApiClient.cs @@ -191,14 +191,14 @@ public partial class ApiClient : ISynchronousClient, IAsynchronousClient /// Allows for extending request processing for generated code. /// /// The RestSharp request object - partial void InterceptRequest(RestRequest request); + public virtual void InterceptRequest(RestRequest request) { } /// /// Allows for extending response processing for generated code. /// /// The RestSharp request object /// The RestSharp response object - partial void InterceptResponse(RestRequest request, RestResponse response); + public virtual void InterceptResponse(RestRequest request, RestResponse response) { } /// /// Initializes a new instance of the , defaulting to the global configurations' base url. diff --git a/samples/client/petstore/csharp/generichost/latest/Tags/src/Org.OpenAPITools/Api/APIKEYSApi.cs b/samples/client/petstore/csharp/generichost/latest/Tags/src/Org.OpenAPITools/Api/APIKEYSApi.cs index 01bfb94ecedb..2a56485e633b 100644 --- a/samples/client/petstore/csharp/generichost/latest/Tags/src/Org.OpenAPITools/Api/APIKEYSApi.cs +++ b/samples/client/petstore/csharp/generichost/latest/Tags/src/Org.OpenAPITools/Api/APIKEYSApi.cs @@ -144,7 +144,7 @@ public APIKEYSApi(ILogger logger, ILoggerFactory loggerFactory, Http ApiKeyProvider = apiKeyProvider; } - partial void FormatGetApiKeysId_1(ref int id); + public virtual void FormatGetApiKeysId_1(ref int id) { } /// /// Processes the server response @@ -165,7 +165,7 @@ private void AfterGetApiKeysId_1DefaultImplementation(IGetApiKeysId_1ApiResponse /// /// /// - partial void AfterGetApiKeysId_1(ref bool suppressDefaultLog, IGetApiKeysId_1ApiResponse apiResponseLocalVar, int id); + public virtual void AfterGetApiKeysId_1(ref bool suppressDefaultLog, IGetApiKeysId_1ApiResponse apiResponseLocalVar, int id) { } /// /// Logs exceptions that occur while retrieving the server response @@ -190,7 +190,7 @@ private void OnErrorGetApiKeysId_1DefaultImplementation(Exception exceptionLocal /// /// /// - partial void OnErrorGetApiKeysId_1(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, int id); + public virtual void OnErrorGetApiKeysId_1(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, int id) { } /// /// Show API Key Show API Key @@ -289,7 +289,7 @@ public GetApiKeysId_1ApiResponse(ILogger logger, Syst OnCreated(httpRequestMessage, httpResponseMessage); } - partial void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage); + public virtual void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage) { } /// /// Returns true if the response is 400 BadRequest @@ -305,7 +305,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } - partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); + public virtual void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode) { } } } } diff --git a/samples/client/petstore/csharp/generichost/latest/Tags/src/Org.OpenAPITools/Api/APIKeys0Api.cs b/samples/client/petstore/csharp/generichost/latest/Tags/src/Org.OpenAPITools/Api/APIKeys0Api.cs index 01f8b7046396..d20c60b72e20 100644 --- a/samples/client/petstore/csharp/generichost/latest/Tags/src/Org.OpenAPITools/Api/APIKeys0Api.cs +++ b/samples/client/petstore/csharp/generichost/latest/Tags/src/Org.OpenAPITools/Api/APIKeys0Api.cs @@ -144,7 +144,7 @@ public APIKeysApi(ILogger logger, ILoggerFactory loggerFactory, Http ApiKeyProvider = apiKeyProvider; } - partial void FormatGetApiKeysId_0(ref int id); + public virtual void FormatGetApiKeysId_0(ref int id) { } /// /// Processes the server response @@ -165,7 +165,7 @@ private void AfterGetApiKeysId_0DefaultImplementation(IGetApiKeysId_0ApiResponse /// /// /// - partial void AfterGetApiKeysId_0(ref bool suppressDefaultLog, IGetApiKeysId_0ApiResponse apiResponseLocalVar, int id); + public virtual void AfterGetApiKeysId_0(ref bool suppressDefaultLog, IGetApiKeysId_0ApiResponse apiResponseLocalVar, int id) { } /// /// Logs exceptions that occur while retrieving the server response @@ -190,7 +190,7 @@ private void OnErrorGetApiKeysId_0DefaultImplementation(Exception exceptionLocal /// /// /// - partial void OnErrorGetApiKeysId_0(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, int id); + public virtual void OnErrorGetApiKeysId_0(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, int id) { } /// /// Show API Key Show API Key @@ -289,7 +289,7 @@ public GetApiKeysId_0ApiResponse(ILogger logger, Syst OnCreated(httpRequestMessage, httpResponseMessage); } - partial void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage); + public virtual void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage) { } /// /// Returns true if the response is 400 BadRequest @@ -305,7 +305,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } - partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); + public virtual void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode) { } } } } diff --git a/samples/client/petstore/csharp/generichost/latest/Tags/src/Org.OpenAPITools/Api/ApiKeys1Api.cs b/samples/client/petstore/csharp/generichost/latest/Tags/src/Org.OpenAPITools/Api/ApiKeys1Api.cs index be13fa923c79..5846669e41c2 100644 --- a/samples/client/petstore/csharp/generichost/latest/Tags/src/Org.OpenAPITools/Api/ApiKeys1Api.cs +++ b/samples/client/petstore/csharp/generichost/latest/Tags/src/Org.OpenAPITools/Api/ApiKeys1Api.cs @@ -144,7 +144,7 @@ public ApiKeysApi(ILogger logger, ILoggerFactory loggerFactory, Http ApiKeyProvider = apiKeyProvider; } - partial void FormatGetApiKeysId(ref int id); + public virtual void FormatGetApiKeysId(ref int id) { } /// /// Processes the server response @@ -165,7 +165,7 @@ private void AfterGetApiKeysIdDefaultImplementation(IGetApiKeysIdApiResponse api /// /// /// - partial void AfterGetApiKeysId(ref bool suppressDefaultLog, IGetApiKeysIdApiResponse apiResponseLocalVar, int id); + public virtual void AfterGetApiKeysId(ref bool suppressDefaultLog, IGetApiKeysIdApiResponse apiResponseLocalVar, int id) { } /// /// Logs exceptions that occur while retrieving the server response @@ -190,7 +190,7 @@ private void OnErrorGetApiKeysIdDefaultImplementation(Exception exceptionLocalVa /// /// /// - partial void OnErrorGetApiKeysId(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, int id); + public virtual void OnErrorGetApiKeysId(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, int id) { } /// /// Show API Key Show API Key @@ -289,7 +289,7 @@ public GetApiKeysIdApiResponse(ILogger logger, System.N OnCreated(httpRequestMessage, httpResponseMessage); } - partial void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage); + public virtual void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage) { } /// /// Returns true if the response is 400 BadRequest @@ -305,7 +305,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } - partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); + public virtual void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode) { } } } } diff --git a/samples/client/petstore/csharp/generichost/latest/Tags/src/Org.OpenAPITools/Client/ApiResponse`1.cs b/samples/client/petstore/csharp/generichost/latest/Tags/src/Org.OpenAPITools/Client/ApiResponse`1.cs index faa5d765bedd..dda899225348 100644 --- a/samples/client/petstore/csharp/generichost/latest/Tags/src/Org.OpenAPITools/Client/ApiResponse`1.cs +++ b/samples/client/petstore/csharp/generichost/latest/Tags/src/Org.OpenAPITools/Client/ApiResponse`1.cs @@ -148,6 +148,6 @@ public ApiResponse(global::System.Net.Http.HttpRequestMessage httpRequestMessage OnCreated(httpRequestMessage, httpResponseMessage); } - partial void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage); + public virtual void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage) { } } } 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 4e25fbff5735..6343c43f984b 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 @@ -135,7 +135,7 @@ public DefaultApi(ILogger logger, ILoggerFactory loggerFactory, Http Events = defaultApiEvents; } - partial void FormatList(ref string personId); + public virtual void FormatList(ref string personId) { } /// /// Validates the request parameters @@ -167,7 +167,7 @@ private void AfterListDefaultImplementation(IListApiResponse apiResponseLocalVar /// /// /// - partial void AfterList(ref bool suppressDefaultLog, IListApiResponse apiResponseLocalVar, string personId); + public virtual void AfterList(ref bool suppressDefaultLog, IListApiResponse apiResponseLocalVar, string personId) { } /// /// Logs exceptions that occur while retrieving the server response @@ -192,7 +192,7 @@ private void OnErrorListDefaultImplementation(Exception exceptionLocalVar, strin /// /// /// - partial void OnErrorList(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, string personId); + public virtual void OnErrorList(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, string personId) { } /// /// @@ -301,7 +301,7 @@ public ListApiResponse(ILogger logger, System.Net.Http.HttpRequ OnCreated(httpRequestMessage, httpResponseMessage); } - partial void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage); + public virtual void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage) { } /// /// Returns true if the response is 200 Ok @@ -349,7 +349,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } - partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); + public virtual void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode) { } } } } diff --git a/samples/client/petstore/csharp/generichost/net4.7/AllOf/src/Org.OpenAPITools/Client/ApiResponse`1.cs b/samples/client/petstore/csharp/generichost/net4.7/AllOf/src/Org.OpenAPITools/Client/ApiResponse`1.cs index 0d99f099669a..ff9315000500 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/AllOf/src/Org.OpenAPITools/Client/ApiResponse`1.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/AllOf/src/Org.OpenAPITools/Client/ApiResponse`1.cs @@ -145,7 +145,7 @@ public ApiResponse(global::System.Net.Http.HttpRequestMessage httpRequestMessage OnCreated(httpRequestMessage, httpResponseMessage); } - partial void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage); + public virtual void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage) { } } /// diff --git a/samples/client/petstore/csharp/generichost/net4.7/AllOf/src/Org.OpenAPITools/Model/Adult.cs b/samples/client/petstore/csharp/generichost/net4.7/AllOf/src/Org.OpenAPITools/Model/Adult.cs index 3cdde4b29d96..53a43ba64157 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/AllOf/src/Org.OpenAPITools/Model/Adult.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/AllOf/src/Org.OpenAPITools/Model/Adult.cs @@ -42,7 +42,7 @@ public Adult(Option> children = default, Option firstName = OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Used to track the state of Children diff --git a/samples/client/petstore/csharp/generichost/net4.7/AllOf/src/Org.OpenAPITools/Model/Child.cs b/samples/client/petstore/csharp/generichost/net4.7/AllOf/src/Org.OpenAPITools/Model/Child.cs index 7f96dcd8b664..666c2ad390f0 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/AllOf/src/Org.OpenAPITools/Model/Child.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/AllOf/src/Org.OpenAPITools/Model/Child.cs @@ -44,7 +44,7 @@ public Child(Option age = default, Option firstName = default, Opt OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Used to track the state of Age diff --git a/samples/client/petstore/csharp/generichost/net4.7/AllOf/src/Org.OpenAPITools/Model/Person.cs b/samples/client/petstore/csharp/generichost/net4.7/AllOf/src/Org.OpenAPITools/Model/Person.cs index 6c9261c98790..1ddfc0aadbcb 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/AllOf/src/Org.OpenAPITools/Model/Person.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/AllOf/src/Org.OpenAPITools/Model/Person.cs @@ -42,7 +42,7 @@ public Person(Option firstName = default, Option lastName = defa OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Used to track the state of FirstName 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 c2a2d862a621..d44541294945 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 @@ -150,7 +150,7 @@ private void AfterRootGetDefaultImplementation(IRootGetApiResponse apiResponseLo /// /// /// - partial void AfterRootGet(ref bool suppressDefaultLog, IRootGetApiResponse apiResponseLocalVar); + public virtual void AfterRootGet(ref bool suppressDefaultLog, IRootGetApiResponse apiResponseLocalVar) { } /// /// Logs exceptions that occur while retrieving the server response @@ -173,7 +173,7 @@ private void OnErrorRootGetDefaultImplementation(Exception exceptionLocalVar, st /// /// /// - partial void OnErrorRootGet(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar); + public virtual void OnErrorRootGet(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar) { } /// /// @@ -275,7 +275,7 @@ public RootGetApiResponse(ILogger logger, System.Net.Http.Ht OnCreated(httpRequestMessage, httpResponseMessage); } - partial void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage); + public virtual void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage) { } /// /// Returns true if the response is 200 Ok @@ -323,7 +323,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } - partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); + public virtual void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode) { } } } } diff --git a/samples/client/petstore/csharp/generichost/net4.7/AnyOf/src/Org.OpenAPITools/Client/ApiResponse`1.cs b/samples/client/petstore/csharp/generichost/net4.7/AnyOf/src/Org.OpenAPITools/Client/ApiResponse`1.cs index 96bba8467893..64ecfe9c19c3 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/AnyOf/src/Org.OpenAPITools/Client/ApiResponse`1.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/AnyOf/src/Org.OpenAPITools/Client/ApiResponse`1.cs @@ -145,7 +145,7 @@ public ApiResponse(global::System.Net.Http.HttpRequestMessage httpRequestMessage OnCreated(httpRequestMessage, httpResponseMessage); } - partial void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage); + public virtual void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage) { } } /// diff --git a/samples/client/petstore/csharp/generichost/net4.7/AnyOf/src/Org.OpenAPITools/Model/Apple.cs b/samples/client/petstore/csharp/generichost/net4.7/AnyOf/src/Org.OpenAPITools/Model/Apple.cs index 7867e6645419..aa7d16779f8e 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/AnyOf/src/Org.OpenAPITools/Model/Apple.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/AnyOf/src/Org.OpenAPITools/Model/Apple.cs @@ -40,7 +40,7 @@ public Apple(Option kind = default) OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Used to track the state of Kind diff --git a/samples/client/petstore/csharp/generichost/net4.7/AnyOf/src/Org.OpenAPITools/Model/Banana.cs b/samples/client/petstore/csharp/generichost/net4.7/AnyOf/src/Org.OpenAPITools/Model/Banana.cs index 15899a012afd..de0714efe6cc 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/AnyOf/src/Org.OpenAPITools/Model/Banana.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/AnyOf/src/Org.OpenAPITools/Model/Banana.cs @@ -40,7 +40,7 @@ public Banana(Option count = default) OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Used to track the state of Count diff --git a/samples/client/petstore/csharp/generichost/net4.7/AnyOf/src/Org.OpenAPITools/Model/Fruit.cs b/samples/client/petstore/csharp/generichost/net4.7/AnyOf/src/Org.OpenAPITools/Model/Fruit.cs index cd1e938ffb37..f902efc8ecc2 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/AnyOf/src/Org.OpenAPITools/Model/Fruit.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/AnyOf/src/Org.OpenAPITools/Model/Fruit.cs @@ -43,7 +43,7 @@ public Fruit(Option apple, Option banana, Option color = OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Used to track the state of Apple 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 c2a2d862a621..d44541294945 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 @@ -150,7 +150,7 @@ private void AfterRootGetDefaultImplementation(IRootGetApiResponse apiResponseLo /// /// /// - partial void AfterRootGet(ref bool suppressDefaultLog, IRootGetApiResponse apiResponseLocalVar); + public virtual void AfterRootGet(ref bool suppressDefaultLog, IRootGetApiResponse apiResponseLocalVar) { } /// /// Logs exceptions that occur while retrieving the server response @@ -173,7 +173,7 @@ private void OnErrorRootGetDefaultImplementation(Exception exceptionLocalVar, st /// /// /// - partial void OnErrorRootGet(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar); + public virtual void OnErrorRootGet(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar) { } /// /// @@ -275,7 +275,7 @@ public RootGetApiResponse(ILogger logger, System.Net.Http.Ht OnCreated(httpRequestMessage, httpResponseMessage); } - partial void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage); + public virtual void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage) { } /// /// Returns true if the response is 200 Ok @@ -323,7 +323,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } - partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); + public virtual void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode) { } } } } diff --git a/samples/client/petstore/csharp/generichost/net4.7/AnyOfNoCompare/src/Org.OpenAPITools/Client/ApiResponse`1.cs b/samples/client/petstore/csharp/generichost/net4.7/AnyOfNoCompare/src/Org.OpenAPITools/Client/ApiResponse`1.cs index 96bba8467893..64ecfe9c19c3 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/AnyOfNoCompare/src/Org.OpenAPITools/Client/ApiResponse`1.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/AnyOfNoCompare/src/Org.OpenAPITools/Client/ApiResponse`1.cs @@ -145,7 +145,7 @@ public ApiResponse(global::System.Net.Http.HttpRequestMessage httpRequestMessage OnCreated(httpRequestMessage, httpResponseMessage); } - partial void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage); + public virtual void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage) { } } /// diff --git a/samples/client/petstore/csharp/generichost/net4.7/AnyOfNoCompare/src/Org.OpenAPITools/Model/Apple.cs b/samples/client/petstore/csharp/generichost/net4.7/AnyOfNoCompare/src/Org.OpenAPITools/Model/Apple.cs index 70534c23212e..2f0824a2e462 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/AnyOfNoCompare/src/Org.OpenAPITools/Model/Apple.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/AnyOfNoCompare/src/Org.OpenAPITools/Model/Apple.cs @@ -39,7 +39,7 @@ public Apple(Option kind = default) OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Used to track the state of Kind diff --git a/samples/client/petstore/csharp/generichost/net4.7/AnyOfNoCompare/src/Org.OpenAPITools/Model/Banana.cs b/samples/client/petstore/csharp/generichost/net4.7/AnyOfNoCompare/src/Org.OpenAPITools/Model/Banana.cs index bdb8dcaba25b..492d05e98bf9 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/AnyOfNoCompare/src/Org.OpenAPITools/Model/Banana.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/AnyOfNoCompare/src/Org.OpenAPITools/Model/Banana.cs @@ -39,7 +39,7 @@ public Banana(Option count = default) OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Used to track the state of Count diff --git a/samples/client/petstore/csharp/generichost/net4.7/AnyOfNoCompare/src/Org.OpenAPITools/Model/Fruit.cs b/samples/client/petstore/csharp/generichost/net4.7/AnyOfNoCompare/src/Org.OpenAPITools/Model/Fruit.cs index de8c3fcf7b7b..246fad611e67 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/AnyOfNoCompare/src/Org.OpenAPITools/Model/Fruit.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/AnyOfNoCompare/src/Org.OpenAPITools/Model/Fruit.cs @@ -42,7 +42,7 @@ public Fruit(Option apple, Option banana, Option color = OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Used to track the state of Apple 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 1fd1ffef4feb..db88b37887ed 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 @@ -170,7 +170,7 @@ public AnotherFakeApi(ILogger logger, ILoggerFactory loggerFacto OauthTokenProvider = oauthTokenProvider; } - partial void FormatCall123TestSpecialTags(ModelClient modelClient); + public virtual void FormatCall123TestSpecialTags(ModelClient modelClient) { } /// /// Validates the request parameters @@ -202,7 +202,7 @@ private void AfterCall123TestSpecialTagsDefaultImplementation(ICall123TestSpecia /// /// /// - partial void AfterCall123TestSpecialTags(ref bool suppressDefaultLog, ICall123TestSpecialTagsApiResponse apiResponseLocalVar, ModelClient modelClient); + public virtual void AfterCall123TestSpecialTags(ref bool suppressDefaultLog, ICall123TestSpecialTagsApiResponse apiResponseLocalVar, ModelClient modelClient) { } /// /// Logs exceptions that occur while retrieving the server response @@ -227,7 +227,7 @@ private void OnErrorCall123TestSpecialTagsDefaultImplementation(Exception except /// /// /// - partial void OnErrorCall123TestSpecialTags(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, ModelClient modelClient); + public virtual 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 @@ -348,7 +348,7 @@ public Call123TestSpecialTagsApiResponse(ILogger /// Returns true if the response is 200 Ok @@ -396,7 +396,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } - partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); + public virtual void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode) { } } } } 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 879c3ecdb9ad..9cd2655e8814 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 @@ -399,7 +399,7 @@ private void AfterFooGetDefaultImplementation(IFooGetApiResponse apiResponseLoca /// /// /// - partial void AfterFooGet(ref bool suppressDefaultLog, IFooGetApiResponse apiResponseLocalVar); + public virtual void AfterFooGet(ref bool suppressDefaultLog, IFooGetApiResponse apiResponseLocalVar) { } /// /// Logs exceptions that occur while retrieving the server response @@ -422,7 +422,7 @@ private void OnErrorFooGetDefaultImplementation(Exception exceptionLocalVar, str /// /// /// - partial void OnErrorFooGet(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar); + public virtual void OnErrorFooGet(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar) { } /// /// @@ -524,7 +524,7 @@ public FooGetApiResponse(ILogger logger, System.Net.Http.Http OnCreated(httpRequestMessage, httpResponseMessage); } - partial void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage); + public virtual void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage) { } /// /// Returns true if the response is the default response type @@ -572,10 +572,10 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } - partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); + public virtual void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode) { } } - partial void FormatGetCountry(ref string country); + public virtual void FormatGetCountry(ref string country) { } /// /// Validates the request parameters @@ -607,7 +607,7 @@ private void AfterGetCountryDefaultImplementation(IGetCountryApiResponse apiResp /// /// /// - partial void AfterGetCountry(ref bool suppressDefaultLog, IGetCountryApiResponse apiResponseLocalVar, string country); + public virtual void AfterGetCountry(ref bool suppressDefaultLog, IGetCountryApiResponse apiResponseLocalVar, string country) { } /// /// Logs exceptions that occur while retrieving the server response @@ -632,7 +632,7 @@ private void OnErrorGetCountryDefaultImplementation(Exception exceptionLocalVar, /// /// /// - partial void OnErrorGetCountry(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, string country); + public virtual void OnErrorGetCountry(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, string country) { } /// /// @@ -751,7 +751,7 @@ public GetCountryApiResponse(ILogger logger, System.Net.H OnCreated(httpRequestMessage, httpResponseMessage); } - partial void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage); + public virtual void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage) { } /// /// Returns true if the response is 200 Ok @@ -767,7 +767,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } - partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); + public virtual void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode) { } } /// @@ -787,7 +787,7 @@ private void AfterHelloDefaultImplementation(IHelloApiResponse apiResponseLocalV /// /// /// - partial void AfterHello(ref bool suppressDefaultLog, IHelloApiResponse apiResponseLocalVar); + public virtual void AfterHello(ref bool suppressDefaultLog, IHelloApiResponse apiResponseLocalVar) { } /// /// Logs exceptions that occur while retrieving the server response @@ -810,7 +810,7 @@ private void OnErrorHelloDefaultImplementation(Exception exceptionLocalVar, stri /// /// /// - partial void OnErrorHello(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar); + public virtual void OnErrorHello(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar) { } /// /// Hello Hello @@ -912,7 +912,7 @@ public HelloApiResponse(ILogger logger, System.Net.Http.HttpRe OnCreated(httpRequestMessage, httpResponseMessage); } - partial void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage); + public virtual void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage) { } /// /// Returns true if the response is 200 Ok @@ -960,7 +960,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } - partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); + public virtual void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode) { } } /// @@ -980,7 +980,7 @@ private void AfterRolesReportGetDefaultImplementation(IRolesReportGetApiResponse /// /// /// - partial void AfterRolesReportGet(ref bool suppressDefaultLog, IRolesReportGetApiResponse apiResponseLocalVar); + public virtual void AfterRolesReportGet(ref bool suppressDefaultLog, IRolesReportGetApiResponse apiResponseLocalVar) { } /// /// Logs exceptions that occur while retrieving the server response @@ -1003,7 +1003,7 @@ private void OnErrorRolesReportGetDefaultImplementation(Exception exceptionLocal /// /// /// - partial void OnErrorRolesReportGet(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar); + public virtual void OnErrorRolesReportGet(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar) { } /// /// @@ -1105,7 +1105,7 @@ public RolesReportGetApiResponse(ILogger logger, Syst OnCreated(httpRequestMessage, httpResponseMessage); } - partial void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage); + public virtual void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage) { } /// /// Returns true if the response is 200 Ok @@ -1153,7 +1153,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } - partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); + public virtual void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode) { } } /// @@ -1173,7 +1173,7 @@ private void AfterTestDefaultImplementation(ITestApiResponse apiResponseLocalVar /// /// /// - partial void AfterTest(ref bool suppressDefaultLog, ITestApiResponse apiResponseLocalVar); + public virtual void AfterTest(ref bool suppressDefaultLog, ITestApiResponse apiResponseLocalVar) { } /// /// Logs exceptions that occur while retrieving the server response @@ -1196,7 +1196,7 @@ private void OnErrorTestDefaultImplementation(Exception exceptionLocalVar, strin /// /// /// - partial void OnErrorTest(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar); + public virtual void OnErrorTest(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar) { } /// /// Retrieve an existing Notificationtest's Elements @@ -1298,7 +1298,7 @@ public TestApiResponse(ILogger logger, System.Net.Http.HttpRequ OnCreated(httpRequestMessage, httpResponseMessage); } - partial void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage); + public virtual void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage) { } /// /// Returns true if the response is 200 Ok @@ -1346,7 +1346,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } - partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); + public virtual void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode) { } } } } 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 38f936207662..fee7217256d5 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 @@ -1308,7 +1308,7 @@ private void AfterFakeHealthGetDefaultImplementation(IFakeHealthGetApiResponse a /// /// /// - partial void AfterFakeHealthGet(ref bool suppressDefaultLog, IFakeHealthGetApiResponse apiResponseLocalVar); + public virtual void AfterFakeHealthGet(ref bool suppressDefaultLog, IFakeHealthGetApiResponse apiResponseLocalVar) { } /// /// Logs exceptions that occur while retrieving the server response @@ -1331,7 +1331,7 @@ private void OnErrorFakeHealthGetDefaultImplementation(Exception exceptionLocalV /// /// /// - partial void OnErrorFakeHealthGet(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar); + public virtual void OnErrorFakeHealthGet(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar) { } /// /// Health check endpoint @@ -1433,7 +1433,7 @@ public FakeHealthGetApiResponse(ILogger logger, System OnCreated(httpRequestMessage, httpResponseMessage); } - partial void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage); + public virtual void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage) { } /// /// Returns true if the response is 200 Ok @@ -1481,10 +1481,10 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } - partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); + public virtual void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode) { } } - partial void FormatFakeOuterBooleanSerialize(ref Option body); + public virtual void FormatFakeOuterBooleanSerialize(ref Option body) { } /// /// Processes the server response @@ -1505,7 +1505,7 @@ private void AfterFakeOuterBooleanSerializeDefaultImplementation(IFakeOuterBoole /// /// /// - partial void AfterFakeOuterBooleanSerialize(ref bool suppressDefaultLog, IFakeOuterBooleanSerializeApiResponse apiResponseLocalVar, Option body); + public virtual void AfterFakeOuterBooleanSerialize(ref bool suppressDefaultLog, IFakeOuterBooleanSerializeApiResponse apiResponseLocalVar, Option body) { } /// /// Logs exceptions that occur while retrieving the server response @@ -1530,7 +1530,7 @@ private void OnErrorFakeOuterBooleanSerializeDefaultImplementation(Exception exc /// /// /// - partial void OnErrorFakeOuterBooleanSerialize(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, Option body); + public virtual void OnErrorFakeOuterBooleanSerialize(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, Option body) { } /// /// Test serialization of outer boolean types @@ -1650,7 +1650,7 @@ public FakeOuterBooleanSerializeApiResponse(ILogger /// Returns true if the response is 200 Ok @@ -1698,10 +1698,10 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } - partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); + public virtual void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode) { } } - partial void FormatFakeOuterCompositeSerialize(Option outerComposite); + public virtual void FormatFakeOuterCompositeSerialize(Option outerComposite) { } /// /// Validates the request parameters @@ -1733,7 +1733,7 @@ private void AfterFakeOuterCompositeSerializeDefaultImplementation(IFakeOuterCom /// /// /// - partial void AfterFakeOuterCompositeSerialize(ref bool suppressDefaultLog, IFakeOuterCompositeSerializeApiResponse apiResponseLocalVar, Option outerComposite); + public virtual void AfterFakeOuterCompositeSerialize(ref bool suppressDefaultLog, IFakeOuterCompositeSerializeApiResponse apiResponseLocalVar, Option outerComposite) { } /// /// Logs exceptions that occur while retrieving the server response @@ -1758,7 +1758,7 @@ private void OnErrorFakeOuterCompositeSerializeDefaultImplementation(Exception e /// /// /// - partial void OnErrorFakeOuterCompositeSerialize(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, Option outerComposite); + public virtual void OnErrorFakeOuterCompositeSerialize(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, Option outerComposite) { } /// /// Test serialization of object with outer number type @@ -1880,7 +1880,7 @@ public FakeOuterCompositeSerializeApiResponse(ILogger /// Returns true if the response is 200 Ok @@ -1928,10 +1928,10 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } - partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); + public virtual void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode) { } } - partial void FormatFakeOuterNumberSerialize(ref Option body); + public virtual void FormatFakeOuterNumberSerialize(ref Option body) { } /// /// Processes the server response @@ -1952,7 +1952,7 @@ private void AfterFakeOuterNumberSerializeDefaultImplementation(IFakeOuterNumber /// /// /// - partial void AfterFakeOuterNumberSerialize(ref bool suppressDefaultLog, IFakeOuterNumberSerializeApiResponse apiResponseLocalVar, Option body); + public virtual void AfterFakeOuterNumberSerialize(ref bool suppressDefaultLog, IFakeOuterNumberSerializeApiResponse apiResponseLocalVar, Option body) { } /// /// Logs exceptions that occur while retrieving the server response @@ -1977,7 +1977,7 @@ private void OnErrorFakeOuterNumberSerializeDefaultImplementation(Exception exce /// /// /// - partial void OnErrorFakeOuterNumberSerialize(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, Option body); + public virtual void OnErrorFakeOuterNumberSerialize(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, Option body) { } /// /// Test serialization of outer number types @@ -2097,7 +2097,7 @@ public FakeOuterNumberSerializeApiResponse(ILogger /// Returns true if the response is 200 Ok @@ -2145,10 +2145,10 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } - partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); + public virtual void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode) { } } - partial void FormatFakeOuterStringSerialize(ref Guid requiredStringUuid, ref Option body); + public virtual void FormatFakeOuterStringSerialize(ref Guid requiredStringUuid, ref Option body) { } /// /// Validates the request parameters @@ -2182,7 +2182,7 @@ private void AfterFakeOuterStringSerializeDefaultImplementation(IFakeOuterString /// /// /// - partial void AfterFakeOuterStringSerialize(ref bool suppressDefaultLog, IFakeOuterStringSerializeApiResponse apiResponseLocalVar, Guid requiredStringUuid, Option body); + public virtual void AfterFakeOuterStringSerialize(ref bool suppressDefaultLog, IFakeOuterStringSerializeApiResponse apiResponseLocalVar, Guid requiredStringUuid, Option body) { } /// /// Logs exceptions that occur while retrieving the server response @@ -2209,7 +2209,7 @@ private void OnErrorFakeOuterStringSerializeDefaultImplementation(Exception exce /// /// /// - partial void OnErrorFakeOuterStringSerialize(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, Guid requiredStringUuid, Option body); + public virtual void OnErrorFakeOuterStringSerialize(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, Guid requiredStringUuid, Option body) { } /// /// Test serialization of outer string types @@ -2339,7 +2339,7 @@ public FakeOuterStringSerializeApiResponse(ILogger /// Returns true if the response is 200 Ok @@ -2387,7 +2387,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } - partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); + public virtual void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode) { } } /// @@ -2407,7 +2407,7 @@ private void AfterGetArrayOfEnumsDefaultImplementation(IGetArrayOfEnumsApiRespon /// /// /// - partial void AfterGetArrayOfEnums(ref bool suppressDefaultLog, IGetArrayOfEnumsApiResponse apiResponseLocalVar); + public virtual void AfterGetArrayOfEnums(ref bool suppressDefaultLog, IGetArrayOfEnumsApiResponse apiResponseLocalVar) { } /// /// Logs exceptions that occur while retrieving the server response @@ -2430,7 +2430,7 @@ private void OnErrorGetArrayOfEnumsDefaultImplementation(Exception exceptionLoca /// /// /// - partial void OnErrorGetArrayOfEnums(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar); + public virtual void OnErrorGetArrayOfEnums(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar) { } /// /// Array of Enums @@ -2532,7 +2532,7 @@ public GetArrayOfEnumsApiResponse(ILogger logger, Sy OnCreated(httpRequestMessage, httpResponseMessage); } - partial void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage); + public virtual void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage) { } /// /// Returns true if the response is 200 Ok @@ -2580,7 +2580,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } - partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); + public virtual void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode) { } } /// @@ -2600,7 +2600,7 @@ private void AfterGetMixedAnyOfDefaultImplementation(IGetMixedAnyOfApiResponse a /// /// /// - partial void AfterGetMixedAnyOf(ref bool suppressDefaultLog, IGetMixedAnyOfApiResponse apiResponseLocalVar); + public virtual void AfterGetMixedAnyOf(ref bool suppressDefaultLog, IGetMixedAnyOfApiResponse apiResponseLocalVar) { } /// /// Logs exceptions that occur while retrieving the server response @@ -2623,7 +2623,7 @@ private void OnErrorGetMixedAnyOfDefaultImplementation(Exception exceptionLocalV /// /// /// - partial void OnErrorGetMixedAnyOf(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar); + public virtual void OnErrorGetMixedAnyOf(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar) { } /// /// Test mixed type anyOf deserialization @@ -2725,7 +2725,7 @@ public GetMixedAnyOfApiResponse(ILogger logger, System OnCreated(httpRequestMessage, httpResponseMessage); } - partial void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage); + public virtual void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage) { } /// /// Returns true if the response is 200 Ok @@ -2773,7 +2773,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } - partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); + public virtual void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode) { } } /// @@ -2793,7 +2793,7 @@ private void AfterGetMixedOneOfDefaultImplementation(IGetMixedOneOfApiResponse a /// /// /// - partial void AfterGetMixedOneOf(ref bool suppressDefaultLog, IGetMixedOneOfApiResponse apiResponseLocalVar); + public virtual void AfterGetMixedOneOf(ref bool suppressDefaultLog, IGetMixedOneOfApiResponse apiResponseLocalVar) { } /// /// Logs exceptions that occur while retrieving the server response @@ -2816,7 +2816,7 @@ private void OnErrorGetMixedOneOfDefaultImplementation(Exception exceptionLocalV /// /// /// - partial void OnErrorGetMixedOneOf(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar); + public virtual void OnErrorGetMixedOneOf(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar) { } /// /// Test mixed type oneOf deserialization @@ -2918,7 +2918,7 @@ public GetMixedOneOfApiResponse(ILogger logger, System OnCreated(httpRequestMessage, httpResponseMessage); } - partial void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage); + public virtual void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage) { } /// /// Returns true if the response is 200 Ok @@ -2966,10 +2966,10 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } - partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); + public virtual void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode) { } } - partial void FormatTestAdditionalPropertiesReference(Dictionary requestBody); + public virtual void FormatTestAdditionalPropertiesReference(Dictionary requestBody) { } /// /// Validates the request parameters @@ -3001,7 +3001,7 @@ private void AfterTestAdditionalPropertiesReferenceDefaultImplementation(ITestAd /// /// /// - partial void AfterTestAdditionalPropertiesReference(ref bool suppressDefaultLog, ITestAdditionalPropertiesReferenceApiResponse apiResponseLocalVar, Dictionary requestBody); + public virtual void AfterTestAdditionalPropertiesReference(ref bool suppressDefaultLog, ITestAdditionalPropertiesReferenceApiResponse apiResponseLocalVar, Dictionary requestBody) { } /// /// Logs exceptions that occur while retrieving the server response @@ -3026,7 +3026,7 @@ private void OnErrorTestAdditionalPropertiesReferenceDefaultImplementation(Excep /// /// /// - partial void OnErrorTestAdditionalPropertiesReference(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, Dictionary requestBody); + public virtual void OnErrorTestAdditionalPropertiesReference(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, Dictionary requestBody) { } /// /// test referenced additionalProperties @@ -3139,7 +3139,7 @@ public TestAdditionalPropertiesReferenceApiResponse(ILogger /// Returns true if the response is 200 Ok @@ -3155,10 +3155,10 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } - partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); + public virtual void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode) { } } - partial void FormatTestBodyWithFileSchema(FileSchemaTestClass fileSchemaTestClass); + public virtual void FormatTestBodyWithFileSchema(FileSchemaTestClass fileSchemaTestClass) { } /// /// Validates the request parameters @@ -3190,7 +3190,7 @@ private void AfterTestBodyWithFileSchemaDefaultImplementation(ITestBodyWithFileS /// /// /// - partial void AfterTestBodyWithFileSchema(ref bool suppressDefaultLog, ITestBodyWithFileSchemaApiResponse apiResponseLocalVar, FileSchemaTestClass fileSchemaTestClass); + public virtual void AfterTestBodyWithFileSchema(ref bool suppressDefaultLog, ITestBodyWithFileSchemaApiResponse apiResponseLocalVar, FileSchemaTestClass fileSchemaTestClass) { } /// /// Logs exceptions that occur while retrieving the server response @@ -3215,7 +3215,7 @@ private void OnErrorTestBodyWithFileSchemaDefaultImplementation(Exception except /// /// /// - partial void OnErrorTestBodyWithFileSchema(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, FileSchemaTestClass fileSchemaTestClass); + public virtual 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`. @@ -3328,7 +3328,7 @@ public TestBodyWithFileSchemaApiResponse(ILogger /// Returns true if the response is 200 Ok @@ -3344,10 +3344,10 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } - partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); + public virtual void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode) { } } - partial void FormatTestBodyWithQueryParams(ref string query, User user); + public virtual void FormatTestBodyWithQueryParams(ref string query, User user) { } /// /// Validates the request parameters @@ -3385,7 +3385,7 @@ private void AfterTestBodyWithQueryParamsDefaultImplementation(ITestBodyWithQuer /// /// /// - partial void AfterTestBodyWithQueryParams(ref bool suppressDefaultLog, ITestBodyWithQueryParamsApiResponse apiResponseLocalVar, string query, User user); + public virtual void AfterTestBodyWithQueryParams(ref bool suppressDefaultLog, ITestBodyWithQueryParamsApiResponse apiResponseLocalVar, string query, User user) { } /// /// Logs exceptions that occur while retrieving the server response @@ -3412,7 +3412,7 @@ private void OnErrorTestBodyWithQueryParamsDefaultImplementation(Exception excep /// /// /// - partial void OnErrorTestBodyWithQueryParams(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, string query, User user); + public virtual void OnErrorTestBodyWithQueryParams(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, string query, User user) { } /// /// @@ -3533,7 +3533,7 @@ public TestBodyWithQueryParamsApiResponse(ILogger /// Returns true if the response is 200 Ok @@ -3549,10 +3549,10 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } - partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); + public virtual void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode) { } } - partial void FormatTestClientModel(ModelClient modelClient); + public virtual void FormatTestClientModel(ModelClient modelClient) { } /// /// Validates the request parameters @@ -3584,7 +3584,7 @@ private void AfterTestClientModelDefaultImplementation(ITestClientModelApiRespon /// /// /// - partial void AfterTestClientModel(ref bool suppressDefaultLog, ITestClientModelApiResponse apiResponseLocalVar, ModelClient modelClient); + public virtual void AfterTestClientModel(ref bool suppressDefaultLog, ITestClientModelApiResponse apiResponseLocalVar, ModelClient modelClient) { } /// /// Logs exceptions that occur while retrieving the server response @@ -3609,7 +3609,7 @@ private void OnErrorTestClientModelDefaultImplementation(Exception exceptionLoca /// /// /// - partial void OnErrorTestClientModel(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, ModelClient modelClient); + public virtual void OnErrorTestClientModel(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, ModelClient modelClient) { } /// /// To test \"client\" model To test \"client\" model @@ -3730,7 +3730,7 @@ public TestClientModelApiResponse(ILogger logger, Sy OnCreated(httpRequestMessage, httpResponseMessage); } - partial void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage); + public virtual void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage) { } /// /// Returns true if the response is 200 Ok @@ -3778,10 +3778,10 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } - partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); + public virtual void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode) { } } - partial void FormatTestEndpointParameters(ref decimal number, ref string patternWithoutDelimiter, ref byte[] varByte, ref double varDouble, ref Option binary, ref Option callback, ref Option date, ref Option dateTime, ref Option int32, ref Option int64, ref Option integer, ref Option password, ref Option varFloat, ref Option varString); + public virtual void FormatTestEndpointParameters(ref decimal number, ref string patternWithoutDelimiter, ref byte[] varByte, ref double varDouble, ref Option binary, ref Option callback, ref Option date, ref Option dateTime, ref Option int32, ref Option int64, ref Option integer, ref Option password, ref Option varFloat, ref Option varString) { } /// /// Validates the request parameters @@ -3859,7 +3859,7 @@ private void AfterTestEndpointParametersDefaultImplementation(ITestEndpointParam /// /// /// - partial void AfterTestEndpointParameters(ref bool suppressDefaultLog, ITestEndpointParametersApiResponse apiResponseLocalVar, 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); + public virtual void AfterTestEndpointParameters(ref bool suppressDefaultLog, ITestEndpointParametersApiResponse apiResponseLocalVar, 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) { } /// /// Logs exceptions that occur while retrieving the server response @@ -3910,7 +3910,7 @@ private void OnErrorTestEndpointParametersDefaultImplementation(Exception except /// /// /// - 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); + public virtual 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 假端點 偽のエンドポイント 가짜 엔드 포인트 @@ -4102,7 +4102,7 @@ public TestEndpointParametersApiResponse(ILogger /// Returns true if the response is 400 BadRequest @@ -4124,10 +4124,10 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } - partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); + public virtual void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode) { } } - partial void FormatTestEnumParameters(ref Option enumFormString, Option> enumFormStringArray, ref Option enumHeaderString, Option> enumHeaderStringArray, ref Option enumQueryDouble, ref Option enumQueryInteger, ref Option enumQueryString, Option> enumQueryStringArray); + public virtual void FormatTestEnumParameters(ref Option enumFormString, Option> enumFormStringArray, ref Option enumHeaderString, Option> enumHeaderStringArray, ref Option enumQueryDouble, ref Option enumQueryInteger, ref Option enumQueryString, Option> enumQueryStringArray) { } /// /// Validates the request parameters @@ -4181,7 +4181,7 @@ private void AfterTestEnumParametersDefaultImplementation(ITestEnumParametersApi /// /// /// - partial void AfterTestEnumParameters(ref bool suppressDefaultLog, ITestEnumParametersApiResponse apiResponseLocalVar, Option enumFormString, Option> enumFormStringArray, Option enumHeaderString, Option> enumHeaderStringArray, Option enumQueryDouble, Option enumQueryInteger, Option enumQueryString, Option> enumQueryStringArray); + public virtual void AfterTestEnumParameters(ref bool suppressDefaultLog, ITestEnumParametersApiResponse apiResponseLocalVar, Option enumFormString, Option> enumFormStringArray, Option enumHeaderString, Option> enumHeaderStringArray, Option enumQueryDouble, Option enumQueryInteger, Option enumQueryString, Option> enumQueryStringArray) { } /// /// Logs exceptions that occur while retrieving the server response @@ -4220,7 +4220,7 @@ private void OnErrorTestEnumParametersDefaultImplementation(Exception exceptionL /// /// /// - 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); + public virtual 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 @@ -4377,7 +4377,7 @@ public TestEnumParametersApiResponse(ILogger logg OnCreated(httpRequestMessage, httpResponseMessage); } - partial void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage); + public virtual void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage) { } /// /// Returns true if the response is 400 BadRequest @@ -4399,10 +4399,10 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } - partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); + public virtual void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode) { } } - partial void FormatTestGroupParameters(ref bool requiredBooleanGroup, ref long requiredInt64Group, ref int requiredStringGroup, ref Option booleanGroup, ref Option int64Group, ref Option stringGroup); + public virtual void FormatTestGroupParameters(ref bool requiredBooleanGroup, ref long requiredInt64Group, ref int requiredStringGroup, ref Option booleanGroup, ref Option int64Group, ref Option stringGroup) { } /// /// Processes the server response @@ -4433,7 +4433,7 @@ private void AfterTestGroupParametersDefaultImplementation(ITestGroupParametersA /// /// /// - partial void AfterTestGroupParameters(ref bool suppressDefaultLog, ITestGroupParametersApiResponse apiResponseLocalVar, bool requiredBooleanGroup, long requiredInt64Group, int requiredStringGroup, Option booleanGroup, Option int64Group, Option stringGroup); + public virtual void AfterTestGroupParameters(ref bool suppressDefaultLog, ITestGroupParametersApiResponse apiResponseLocalVar, bool requiredBooleanGroup, long requiredInt64Group, int requiredStringGroup, Option booleanGroup, Option int64Group, Option stringGroup) { } /// /// Logs exceptions that occur while retrieving the server response @@ -4468,7 +4468,7 @@ private void OnErrorTestGroupParametersDefaultImplementation(Exception exception /// /// /// - partial void OnErrorTestGroupParameters(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, bool requiredBooleanGroup, long requiredInt64Group, int requiredStringGroup, Option booleanGroup, Option int64Group, Option stringGroup); + public virtual 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) @@ -4604,7 +4604,7 @@ public TestGroupParametersApiResponse(ILogger lo OnCreated(httpRequestMessage, httpResponseMessage); } - partial void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage); + public virtual void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage) { } /// /// Returns true if the response is 400 BadRequest @@ -4620,10 +4620,10 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } - partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); + public virtual void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode) { } } - partial void FormatTestInlineAdditionalProperties(Dictionary requestBody); + public virtual void FormatTestInlineAdditionalProperties(Dictionary requestBody) { } /// /// Validates the request parameters @@ -4655,7 +4655,7 @@ private void AfterTestInlineAdditionalPropertiesDefaultImplementation(ITestInlin /// /// /// - partial void AfterTestInlineAdditionalProperties(ref bool suppressDefaultLog, ITestInlineAdditionalPropertiesApiResponse apiResponseLocalVar, Dictionary requestBody); + public virtual void AfterTestInlineAdditionalProperties(ref bool suppressDefaultLog, ITestInlineAdditionalPropertiesApiResponse apiResponseLocalVar, Dictionary requestBody) { } /// /// Logs exceptions that occur while retrieving the server response @@ -4680,7 +4680,7 @@ private void OnErrorTestInlineAdditionalPropertiesDefaultImplementation(Exceptio /// /// /// - partial void OnErrorTestInlineAdditionalProperties(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, Dictionary requestBody); + public virtual void OnErrorTestInlineAdditionalProperties(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, Dictionary requestBody) { } /// /// test inline additionalProperties @@ -4793,7 +4793,7 @@ public TestInlineAdditionalPropertiesApiResponse(ILogger /// Returns true if the response is 200 Ok @@ -4809,10 +4809,10 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } - partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); + public virtual void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode) { } } - partial void FormatTestInlineFreeformAdditionalProperties(TestInlineFreeformAdditionalPropertiesRequest testInlineFreeformAdditionalPropertiesRequest); + public virtual void FormatTestInlineFreeformAdditionalProperties(TestInlineFreeformAdditionalPropertiesRequest testInlineFreeformAdditionalPropertiesRequest) { } /// /// Validates the request parameters @@ -4844,7 +4844,7 @@ private void AfterTestInlineFreeformAdditionalPropertiesDefaultImplementation(IT /// /// /// - partial void AfterTestInlineFreeformAdditionalProperties(ref bool suppressDefaultLog, ITestInlineFreeformAdditionalPropertiesApiResponse apiResponseLocalVar, TestInlineFreeformAdditionalPropertiesRequest testInlineFreeformAdditionalPropertiesRequest); + public virtual void AfterTestInlineFreeformAdditionalProperties(ref bool suppressDefaultLog, ITestInlineFreeformAdditionalPropertiesApiResponse apiResponseLocalVar, TestInlineFreeformAdditionalPropertiesRequest testInlineFreeformAdditionalPropertiesRequest) { } /// /// Logs exceptions that occur while retrieving the server response @@ -4869,7 +4869,7 @@ private void OnErrorTestInlineFreeformAdditionalPropertiesDefaultImplementation( /// /// /// - partial void OnErrorTestInlineFreeformAdditionalProperties(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, TestInlineFreeformAdditionalPropertiesRequest testInlineFreeformAdditionalPropertiesRequest); + public virtual void OnErrorTestInlineFreeformAdditionalProperties(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, TestInlineFreeformAdditionalPropertiesRequest testInlineFreeformAdditionalPropertiesRequest) { } /// /// test inline free-form additionalProperties @@ -4982,7 +4982,7 @@ public TestInlineFreeformAdditionalPropertiesApiResponse(ILogger /// Returns true if the response is 200 Ok @@ -4998,10 +4998,10 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } - partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); + public virtual void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode) { } } - partial void FormatTestJsonFormData(ref string param, ref string param2); + public virtual void FormatTestJsonFormData(ref string param, ref string param2) { } /// /// Validates the request parameters @@ -5039,7 +5039,7 @@ private void AfterTestJsonFormDataDefaultImplementation(ITestJsonFormDataApiResp /// /// /// - partial void AfterTestJsonFormData(ref bool suppressDefaultLog, ITestJsonFormDataApiResponse apiResponseLocalVar, string param, string param2); + public virtual void AfterTestJsonFormData(ref bool suppressDefaultLog, ITestJsonFormDataApiResponse apiResponseLocalVar, string param, string param2) { } /// /// Logs exceptions that occur while retrieving the server response @@ -5066,7 +5066,7 @@ private void OnErrorTestJsonFormDataDefaultImplementation(Exception exceptionLoc /// /// /// - partial void OnErrorTestJsonFormData(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, string param, string param2); + public virtual void OnErrorTestJsonFormData(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, string param, string param2) { } /// /// test json serialization of form data @@ -5189,7 +5189,7 @@ public TestJsonFormDataApiResponse(ILogger logger, OnCreated(httpRequestMessage, httpResponseMessage); } - partial void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage); + public virtual void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage) { } /// /// Returns true if the response is 200 Ok @@ -5205,10 +5205,10 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } - partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); + public virtual void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode) { } } - partial void FormatTestQueryParameterCollectionFormat(List context, List http, List ioutil, List pipe, ref string requiredNotNullable, List url, ref Option notRequiredNotNullable, ref Option notRequiredNullable, ref string requiredNullable); + public virtual void FormatTestQueryParameterCollectionFormat(List context, List http, List ioutil, List pipe, ref string requiredNotNullable, List url, ref Option notRequiredNotNullable, ref Option notRequiredNullable, ref string requiredNullable) { } /// /// Validates the request parameters @@ -5280,7 +5280,7 @@ private void AfterTestQueryParameterCollectionFormatDefaultImplementation(ITestQ /// /// /// - partial void AfterTestQueryParameterCollectionFormat(ref bool suppressDefaultLog, ITestQueryParameterCollectionFormatApiResponse apiResponseLocalVar, List context, List http, List ioutil, List pipe, string requiredNotNullable, List url, Option notRequiredNotNullable, Option notRequiredNullable, string requiredNullable); + public virtual void AfterTestQueryParameterCollectionFormat(ref bool suppressDefaultLog, ITestQueryParameterCollectionFormatApiResponse apiResponseLocalVar, List context, List http, List ioutil, List pipe, string requiredNotNullable, List url, Option notRequiredNotNullable, Option notRequiredNullable, string requiredNullable) { } /// /// Logs exceptions that occur while retrieving the server response @@ -5321,7 +5321,7 @@ private void OnErrorTestQueryParameterCollectionFormatDefaultImplementation(Exce /// /// /// - 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); + public virtual 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 @@ -5454,7 +5454,7 @@ public TestQueryParameterCollectionFormatApiResponse(ILogger /// Returns true if the response is 200 Ok @@ -5470,10 +5470,10 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } - partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); + public virtual void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode) { } } - partial void FormatTestStringMapReference(Dictionary requestBody); + public virtual void FormatTestStringMapReference(Dictionary requestBody) { } /// /// Validates the request parameters @@ -5505,7 +5505,7 @@ private void AfterTestStringMapReferenceDefaultImplementation(ITestStringMapRefe /// /// /// - partial void AfterTestStringMapReference(ref bool suppressDefaultLog, ITestStringMapReferenceApiResponse apiResponseLocalVar, Dictionary requestBody); + public virtual void AfterTestStringMapReference(ref bool suppressDefaultLog, ITestStringMapReferenceApiResponse apiResponseLocalVar, Dictionary requestBody) { } /// /// Logs exceptions that occur while retrieving the server response @@ -5530,7 +5530,7 @@ private void OnErrorTestStringMapReferenceDefaultImplementation(Exception except /// /// /// - partial void OnErrorTestStringMapReference(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, Dictionary requestBody); + public virtual void OnErrorTestStringMapReference(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, Dictionary requestBody) { } /// /// test referenced string map @@ -5643,7 +5643,7 @@ public TestStringMapReferenceApiResponse(ILogger /// Returns true if the response is 200 Ok @@ -5659,7 +5659,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } - partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); + public virtual void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode) { } } } } 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 010a227c8b27..bb046ae443a5 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 @@ -170,7 +170,7 @@ public FakeClassnameTags123Api(ILogger logger, ILoggerF OauthTokenProvider = oauthTokenProvider; } - partial void FormatTestClassname(ModelClient modelClient); + public virtual void FormatTestClassname(ModelClient modelClient) { } /// /// Validates the request parameters @@ -202,7 +202,7 @@ private void AfterTestClassnameDefaultImplementation(ITestClassnameApiResponse a /// /// /// - partial void AfterTestClassname(ref bool suppressDefaultLog, ITestClassnameApiResponse apiResponseLocalVar, ModelClient modelClient); + public virtual void AfterTestClassname(ref bool suppressDefaultLog, ITestClassnameApiResponse apiResponseLocalVar, ModelClient modelClient) { } /// /// Logs exceptions that occur while retrieving the server response @@ -227,7 +227,7 @@ private void OnErrorTestClassnameDefaultImplementation(Exception exceptionLocalV /// /// /// - partial void OnErrorTestClassname(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, ModelClient modelClient); + public virtual 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 @@ -361,7 +361,7 @@ public TestClassnameApiResponse(ILogger logger, System OnCreated(httpRequestMessage, httpResponseMessage); } - partial void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage); + public virtual void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage) { } /// /// Returns true if the response is 200 Ok @@ -409,7 +409,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } - partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); + public virtual void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode) { } } } } 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 6f1add615397..42ae49bd8dbf 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 @@ -674,7 +674,7 @@ public PetApi(ILogger logger, ILoggerFactory loggerFactory, HttpClient h OauthTokenProvider = oauthTokenProvider; } - partial void FormatAddPet(Pet pet); + public virtual void FormatAddPet(Pet pet) { } /// /// Validates the request parameters @@ -706,7 +706,7 @@ private void AfterAddPetDefaultImplementation(IAddPetApiResponse apiResponseLoca /// /// /// - partial void AfterAddPet(ref bool suppressDefaultLog, IAddPetApiResponse apiResponseLocalVar, Pet pet); + public virtual void AfterAddPet(ref bool suppressDefaultLog, IAddPetApiResponse apiResponseLocalVar, Pet pet) { } /// /// Logs exceptions that occur while retrieving the server response @@ -731,7 +731,7 @@ private void OnErrorAddPetDefaultImplementation(Exception exceptionLocalVar, str /// /// /// - partial void OnErrorAddPet(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, Pet pet); + public virtual void OnErrorAddPet(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, Pet pet) { } /// /// Add a new pet to the store @@ -866,7 +866,7 @@ public AddPetApiResponse(ILogger logger, System.Net.Http.Http OnCreated(httpRequestMessage, httpResponseMessage); } - partial void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage); + public virtual void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage) { } /// /// Returns true if the response is 405 MethodNotAllowed @@ -882,10 +882,10 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } - partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); + public virtual void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode) { } } - partial void FormatDeletePet(ref long petId, ref Option apiKey); + public virtual void FormatDeletePet(ref long petId, ref Option apiKey) { } /// /// Validates the request parameters @@ -919,7 +919,7 @@ private void AfterDeletePetDefaultImplementation(IDeletePetApiResponse apiRespon /// /// /// - partial void AfterDeletePet(ref bool suppressDefaultLog, IDeletePetApiResponse apiResponseLocalVar, long petId, Option apiKey); + public virtual void AfterDeletePet(ref bool suppressDefaultLog, IDeletePetApiResponse apiResponseLocalVar, long petId, Option apiKey) { } /// /// Logs exceptions that occur while retrieving the server response @@ -946,7 +946,7 @@ private void OnErrorDeletePetDefaultImplementation(Exception exceptionLocalVar, /// /// /// - partial void OnErrorDeletePet(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, long petId, Option apiKey); + public virtual void OnErrorDeletePet(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, long petId, Option apiKey) { } /// /// Deletes a pet @@ -1062,7 +1062,7 @@ public DeletePetApiResponse(ILogger logger, System.Net.Htt OnCreated(httpRequestMessage, httpResponseMessage); } - partial void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage); + public virtual void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage) { } /// /// Returns true if the response is 400 BadRequest @@ -1078,10 +1078,10 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } - partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); + public virtual void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode) { } } - partial void FormatFindPetsByStatus(List status); + public virtual void FormatFindPetsByStatus(List status) { } /// /// Validates the request parameters @@ -1113,7 +1113,7 @@ private void AfterFindPetsByStatusDefaultImplementation(IFindPetsByStatusApiResp /// /// /// - partial void AfterFindPetsByStatus(ref bool suppressDefaultLog, IFindPetsByStatusApiResponse apiResponseLocalVar, List status); + public virtual void AfterFindPetsByStatus(ref bool suppressDefaultLog, IFindPetsByStatusApiResponse apiResponseLocalVar, List status) { } /// /// Logs exceptions that occur while retrieving the server response @@ -1138,7 +1138,7 @@ private void OnErrorFindPetsByStatusDefaultImplementation(Exception exceptionLoc /// /// /// - partial void OnErrorFindPetsByStatus(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, List status); + public virtual 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 @@ -1274,7 +1274,7 @@ public FindPetsByStatusApiResponse(ILogger logger, OnCreated(httpRequestMessage, httpResponseMessage); } - partial void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage); + public virtual void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage) { } /// /// Returns true if the response is 200 Ok @@ -1354,10 +1354,10 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } - partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); + public virtual void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode) { } } - partial void FormatFindPetsByTags(List tags); + public virtual void FormatFindPetsByTags(List tags) { } /// /// Validates the request parameters @@ -1389,7 +1389,7 @@ private void AfterFindPetsByTagsDefaultImplementation(IFindPetsByTagsApiResponse /// /// /// - partial void AfterFindPetsByTags(ref bool suppressDefaultLog, IFindPetsByTagsApiResponse apiResponseLocalVar, List tags); + public virtual void AfterFindPetsByTags(ref bool suppressDefaultLog, IFindPetsByTagsApiResponse apiResponseLocalVar, List tags) { } /// /// Logs exceptions that occur while retrieving the server response @@ -1414,7 +1414,7 @@ private void OnErrorFindPetsByTagsDefaultImplementation(Exception exceptionLocal /// /// /// - partial void OnErrorFindPetsByTags(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, List tags); + public virtual 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. @@ -1550,7 +1550,7 @@ public FindPetsByTagsApiResponse(ILogger logger, Syst OnCreated(httpRequestMessage, httpResponseMessage); } - partial void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage); + public virtual void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage) { } /// /// Returns true if the response is 200 Ok @@ -1604,10 +1604,10 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } - partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); + public virtual void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode) { } } - partial void FormatGetPetById(ref long petId); + public virtual void FormatGetPetById(ref long petId) { } /// /// Processes the server response @@ -1628,7 +1628,7 @@ private void AfterGetPetByIdDefaultImplementation(IGetPetByIdApiResponse apiResp /// /// /// - partial void AfterGetPetById(ref bool suppressDefaultLog, IGetPetByIdApiResponse apiResponseLocalVar, long petId); + public virtual void AfterGetPetById(ref bool suppressDefaultLog, IGetPetByIdApiResponse apiResponseLocalVar, long petId) { } /// /// Logs exceptions that occur while retrieving the server response @@ -1653,7 +1653,7 @@ private void OnErrorGetPetByIdDefaultImplementation(Exception exceptionLocalVar, /// /// /// - partial void OnErrorGetPetById(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, long petId); + public virtual void OnErrorGetPetById(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, long petId) { } /// /// Find pet by ID Returns a single pet @@ -1778,7 +1778,7 @@ public GetPetByIdApiResponse(ILogger logger, System.Net.H OnCreated(httpRequestMessage, httpResponseMessage); } - partial void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage); + public virtual void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage) { } /// /// Returns true if the response is 200 Ok @@ -1838,10 +1838,10 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } - partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); + public virtual void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode) { } } - partial void FormatUpdatePet(Pet pet); + public virtual void FormatUpdatePet(Pet pet) { } /// /// Validates the request parameters @@ -1873,7 +1873,7 @@ private void AfterUpdatePetDefaultImplementation(IUpdatePetApiResponse apiRespon /// /// /// - partial void AfterUpdatePet(ref bool suppressDefaultLog, IUpdatePetApiResponse apiResponseLocalVar, Pet pet); + public virtual void AfterUpdatePet(ref bool suppressDefaultLog, IUpdatePetApiResponse apiResponseLocalVar, Pet pet) { } /// /// Logs exceptions that occur while retrieving the server response @@ -1898,7 +1898,7 @@ private void OnErrorUpdatePetDefaultImplementation(Exception exceptionLocalVar, /// /// /// - partial void OnErrorUpdatePet(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, Pet pet); + public virtual void OnErrorUpdatePet(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, Pet pet) { } /// /// Update an existing pet @@ -2033,7 +2033,7 @@ public UpdatePetApiResponse(ILogger logger, System.Net.Htt OnCreated(httpRequestMessage, httpResponseMessage); } - partial void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage); + public virtual void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage) { } /// /// Returns true if the response is 400 BadRequest @@ -2061,10 +2061,10 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } - partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); + public virtual void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode) { } } - partial void FormatUpdatePetWithForm(ref long petId, ref Option name, ref Option status); + public virtual void FormatUpdatePetWithForm(ref long petId, ref Option name, ref Option status) { } /// /// Validates the request parameters @@ -2104,7 +2104,7 @@ private void AfterUpdatePetWithFormDefaultImplementation(IUpdatePetWithFormApiRe /// /// /// - partial void AfterUpdatePetWithForm(ref bool suppressDefaultLog, IUpdatePetWithFormApiResponse apiResponseLocalVar, long petId, Option name, Option status); + public virtual void AfterUpdatePetWithForm(ref bool suppressDefaultLog, IUpdatePetWithFormApiResponse apiResponseLocalVar, long petId, Option name, Option status) { } /// /// Logs exceptions that occur while retrieving the server response @@ -2133,7 +2133,7 @@ private void OnErrorUpdatePetWithFormDefaultImplementation(Exception exceptionLo /// /// /// - partial void OnErrorUpdatePetWithForm(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, long petId, Option name, Option status); + public virtual 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 @@ -2270,7 +2270,7 @@ public UpdatePetWithFormApiResponse(ILogger logger OnCreated(httpRequestMessage, httpResponseMessage); } - partial void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage); + public virtual void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage) { } /// /// Returns true if the response is 405 MethodNotAllowed @@ -2286,10 +2286,10 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } - partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); + public virtual void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode) { } } - partial void FormatUploadFile(ref long petId, ref Option additionalMetadata, ref Option file); + public virtual void FormatUploadFile(ref long petId, ref Option additionalMetadata, ref Option file) { } /// /// Validates the request parameters @@ -2329,7 +2329,7 @@ private void AfterUploadFileDefaultImplementation(IUploadFileApiResponse apiResp /// /// /// - partial void AfterUploadFile(ref bool suppressDefaultLog, IUploadFileApiResponse apiResponseLocalVar, long petId, Option additionalMetadata, Option file); + public virtual void AfterUploadFile(ref bool suppressDefaultLog, IUploadFileApiResponse apiResponseLocalVar, long petId, Option additionalMetadata, Option file) { } /// /// Logs exceptions that occur while retrieving the server response @@ -2358,7 +2358,7 @@ private void OnErrorUploadFileDefaultImplementation(Exception exceptionLocalVar, /// /// /// - partial void OnErrorUploadFile(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, long petId, Option additionalMetadata, Option file); + public virtual void OnErrorUploadFile(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, long petId, Option additionalMetadata, Option file) { } /// /// uploads an image @@ -2503,7 +2503,7 @@ public UploadFileApiResponse(ILogger logger, System.Net.H OnCreated(httpRequestMessage, httpResponseMessage); } - partial void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage); + public virtual void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage) { } /// /// Returns true if the response is 200 Ok @@ -2551,10 +2551,10 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } - partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); + public virtual void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode) { } } - partial void FormatUploadFileWithRequiredFile(ref long petId, ref System.IO.Stream requiredFile, ref Option additionalMetadata); + public virtual void FormatUploadFileWithRequiredFile(ref long petId, ref System.IO.Stream requiredFile, ref Option additionalMetadata) { } /// /// Validates the request parameters @@ -2594,7 +2594,7 @@ private void AfterUploadFileWithRequiredFileDefaultImplementation(IUploadFileWit /// /// /// - partial void AfterUploadFileWithRequiredFile(ref bool suppressDefaultLog, IUploadFileWithRequiredFileApiResponse apiResponseLocalVar, long petId, System.IO.Stream requiredFile, Option additionalMetadata); + public virtual void AfterUploadFileWithRequiredFile(ref bool suppressDefaultLog, IUploadFileWithRequiredFileApiResponse apiResponseLocalVar, long petId, System.IO.Stream requiredFile, Option additionalMetadata) { } /// /// Logs exceptions that occur while retrieving the server response @@ -2623,7 +2623,7 @@ private void OnErrorUploadFileWithRequiredFileDefaultImplementation(Exception ex /// /// /// - partial void OnErrorUploadFileWithRequiredFile(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, long petId, System.IO.Stream requiredFile, Option additionalMetadata); + public virtual void OnErrorUploadFileWithRequiredFile(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, long petId, System.IO.Stream requiredFile, Option additionalMetadata) { } /// /// uploads an image (required) @@ -2768,7 +2768,7 @@ public UploadFileWithRequiredFileApiResponse(ILogger /// Returns true if the response is 200 Ok @@ -2816,7 +2816,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } - partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); + public virtual void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode) { } } } } 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 2cb0523731c5..dd6999ab6093 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 @@ -357,7 +357,7 @@ public StoreApi(ILogger logger, ILoggerFactory loggerFactory, HttpClie OauthTokenProvider = oauthTokenProvider; } - partial void FormatDeleteOrder(ref string orderId); + public virtual void FormatDeleteOrder(ref string orderId) { } /// /// Validates the request parameters @@ -389,7 +389,7 @@ private void AfterDeleteOrderDefaultImplementation(IDeleteOrderApiResponse apiRe /// /// /// - partial void AfterDeleteOrder(ref bool suppressDefaultLog, IDeleteOrderApiResponse apiResponseLocalVar, string orderId); + public virtual void AfterDeleteOrder(ref bool suppressDefaultLog, IDeleteOrderApiResponse apiResponseLocalVar, string orderId) { } /// /// Logs exceptions that occur while retrieving the server response @@ -414,7 +414,7 @@ private void OnErrorDeleteOrderDefaultImplementation(Exception exceptionLocalVar /// /// /// - partial void OnErrorDeleteOrder(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, string orderId); + public virtual 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 @@ -514,7 +514,7 @@ public DeleteOrderApiResponse(ILogger logger, System.Net OnCreated(httpRequestMessage, httpResponseMessage); } - partial void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage); + public virtual void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage) { } /// /// Returns true if the response is 400 BadRequest @@ -536,7 +536,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } - partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); + public virtual void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode) { } } /// @@ -556,7 +556,7 @@ private void AfterGetInventoryDefaultImplementation(IGetInventoryApiResponse api /// /// /// - partial void AfterGetInventory(ref bool suppressDefaultLog, IGetInventoryApiResponse apiResponseLocalVar); + public virtual void AfterGetInventory(ref bool suppressDefaultLog, IGetInventoryApiResponse apiResponseLocalVar) { } /// /// Logs exceptions that occur while retrieving the server response @@ -579,7 +579,7 @@ private void OnErrorGetInventoryDefaultImplementation(Exception exceptionLocalVa /// /// /// - partial void OnErrorGetInventory(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar); + public virtual void OnErrorGetInventory(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar) { } /// /// Returns pet inventories by status Returns a map of status codes to quantities @@ -690,7 +690,7 @@ public GetInventoryApiResponse(ILogger logger, System.N OnCreated(httpRequestMessage, httpResponseMessage); } - partial void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage); + public virtual void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage) { } /// /// Returns true if the response is 200 Ok @@ -738,10 +738,10 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } - partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); + public virtual void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode) { } } - partial void FormatGetOrderById(ref long orderId); + public virtual void FormatGetOrderById(ref long orderId) { } /// /// Processes the server response @@ -762,7 +762,7 @@ private void AfterGetOrderByIdDefaultImplementation(IGetOrderByIdApiResponse api /// /// /// - partial void AfterGetOrderById(ref bool suppressDefaultLog, IGetOrderByIdApiResponse apiResponseLocalVar, long orderId); + public virtual void AfterGetOrderById(ref bool suppressDefaultLog, IGetOrderByIdApiResponse apiResponseLocalVar, long orderId) { } /// /// Logs exceptions that occur while retrieving the server response @@ -787,7 +787,7 @@ private void OnErrorGetOrderByIdDefaultImplementation(Exception exceptionLocalVa /// /// /// - partial void OnErrorGetOrderById(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, long orderId); + public virtual 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 @@ -895,7 +895,7 @@ public GetOrderByIdApiResponse(ILogger logger, System.N OnCreated(httpRequestMessage, httpResponseMessage); } - partial void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage); + public virtual void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage) { } /// /// Returns true if the response is 200 Ok @@ -955,10 +955,10 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } - partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); + public virtual void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode) { } } - partial void FormatPlaceOrder(Order order); + public virtual void FormatPlaceOrder(Order order) { } /// /// Validates the request parameters @@ -990,7 +990,7 @@ private void AfterPlaceOrderDefaultImplementation(IPlaceOrderApiResponse apiResp /// /// /// - partial void AfterPlaceOrder(ref bool suppressDefaultLog, IPlaceOrderApiResponse apiResponseLocalVar, Order order); + public virtual void AfterPlaceOrder(ref bool suppressDefaultLog, IPlaceOrderApiResponse apiResponseLocalVar, Order order) { } /// /// Logs exceptions that occur while retrieving the server response @@ -1015,7 +1015,7 @@ private void OnErrorPlaceOrderDefaultImplementation(Exception exceptionLocalVar, /// /// /// - partial void OnErrorPlaceOrder(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, Order order); + public virtual void OnErrorPlaceOrder(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, Order order) { } /// /// Place an order for a pet @@ -1137,7 +1137,7 @@ public PlaceOrderApiResponse(ILogger logger, System.Net.H OnCreated(httpRequestMessage, httpResponseMessage); } - partial void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage); + public virtual void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage) { } /// /// Returns true if the response is 200 Ok @@ -1191,7 +1191,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } - partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); + public virtual void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode) { } } } } 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 46a87aed2c07..88d7459aa526 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 @@ -599,7 +599,7 @@ public UserApi(ILogger logger, ILoggerFactory loggerFactory, HttpClient OauthTokenProvider = oauthTokenProvider; } - partial void FormatCreateUser(User user); + public virtual void FormatCreateUser(User user) { } /// /// Validates the request parameters @@ -631,7 +631,7 @@ private void AfterCreateUserDefaultImplementation(ICreateUserApiResponse apiResp /// /// /// - partial void AfterCreateUser(ref bool suppressDefaultLog, ICreateUserApiResponse apiResponseLocalVar, User user); + public virtual void AfterCreateUser(ref bool suppressDefaultLog, ICreateUserApiResponse apiResponseLocalVar, User user) { } /// /// Logs exceptions that occur while retrieving the server response @@ -656,7 +656,7 @@ private void OnErrorCreateUserDefaultImplementation(Exception exceptionLocalVar, /// /// /// - partial void OnErrorCreateUser(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, User user); + public virtual 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. @@ -769,7 +769,7 @@ public CreateUserApiResponse(ILogger logger, System.Net.H OnCreated(httpRequestMessage, httpResponseMessage); } - partial void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage); + public virtual void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage) { } /// /// Returns true if the response is the default response type @@ -785,10 +785,10 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } - partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); + public virtual void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode) { } } - partial void FormatCreateUsersWithArrayInput(List user); + public virtual void FormatCreateUsersWithArrayInput(List user) { } /// /// Validates the request parameters @@ -820,7 +820,7 @@ private void AfterCreateUsersWithArrayInputDefaultImplementation(ICreateUsersWit /// /// /// - partial void AfterCreateUsersWithArrayInput(ref bool suppressDefaultLog, ICreateUsersWithArrayInputApiResponse apiResponseLocalVar, List user); + public virtual void AfterCreateUsersWithArrayInput(ref bool suppressDefaultLog, ICreateUsersWithArrayInputApiResponse apiResponseLocalVar, List user) { } /// /// Logs exceptions that occur while retrieving the server response @@ -845,7 +845,7 @@ private void OnErrorCreateUsersWithArrayInputDefaultImplementation(Exception exc /// /// /// - partial void OnErrorCreateUsersWithArrayInput(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, List user); + public virtual void OnErrorCreateUsersWithArrayInput(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, List user) { } /// /// Creates list of users with given input array @@ -958,7 +958,7 @@ public CreateUsersWithArrayInputApiResponse(ILogger /// Returns true if the response is the default response type @@ -974,10 +974,10 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } - partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); + public virtual void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode) { } } - partial void FormatCreateUsersWithListInput(List user); + public virtual void FormatCreateUsersWithListInput(List user) { } /// /// Validates the request parameters @@ -1009,7 +1009,7 @@ private void AfterCreateUsersWithListInputDefaultImplementation(ICreateUsersWith /// /// /// - partial void AfterCreateUsersWithListInput(ref bool suppressDefaultLog, ICreateUsersWithListInputApiResponse apiResponseLocalVar, List user); + public virtual void AfterCreateUsersWithListInput(ref bool suppressDefaultLog, ICreateUsersWithListInputApiResponse apiResponseLocalVar, List user) { } /// /// Logs exceptions that occur while retrieving the server response @@ -1034,7 +1034,7 @@ private void OnErrorCreateUsersWithListInputDefaultImplementation(Exception exce /// /// /// - partial void OnErrorCreateUsersWithListInput(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, List user); + public virtual void OnErrorCreateUsersWithListInput(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, List user) { } /// /// Creates list of users with given input array @@ -1147,7 +1147,7 @@ public CreateUsersWithListInputApiResponse(ILogger /// Returns true if the response is the default response type @@ -1163,10 +1163,10 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } - partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); + public virtual void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode) { } } - partial void FormatDeleteUser(ref string username); + public virtual void FormatDeleteUser(ref string username) { } /// /// Validates the request parameters @@ -1198,7 +1198,7 @@ private void AfterDeleteUserDefaultImplementation(IDeleteUserApiResponse apiResp /// /// /// - partial void AfterDeleteUser(ref bool suppressDefaultLog, IDeleteUserApiResponse apiResponseLocalVar, string username); + public virtual void AfterDeleteUser(ref bool suppressDefaultLog, IDeleteUserApiResponse apiResponseLocalVar, string username) { } /// /// Logs exceptions that occur while retrieving the server response @@ -1223,7 +1223,7 @@ private void OnErrorDeleteUserDefaultImplementation(Exception exceptionLocalVar, /// /// /// - partial void OnErrorDeleteUser(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, string username); + public virtual 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. @@ -1323,7 +1323,7 @@ public DeleteUserApiResponse(ILogger logger, System.Net.H OnCreated(httpRequestMessage, httpResponseMessage); } - partial void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage); + public virtual void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage) { } /// /// Returns true if the response is 400 BadRequest @@ -1345,10 +1345,10 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } - partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); + public virtual void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode) { } } - partial void FormatGetUserByName(ref string username); + public virtual void FormatGetUserByName(ref string username) { } /// /// Validates the request parameters @@ -1380,7 +1380,7 @@ private void AfterGetUserByNameDefaultImplementation(IGetUserByNameApiResponse a /// /// /// - partial void AfterGetUserByName(ref bool suppressDefaultLog, IGetUserByNameApiResponse apiResponseLocalVar, string username); + public virtual void AfterGetUserByName(ref bool suppressDefaultLog, IGetUserByNameApiResponse apiResponseLocalVar, string username) { } /// /// Logs exceptions that occur while retrieving the server response @@ -1405,7 +1405,7 @@ private void OnErrorGetUserByNameDefaultImplementation(Exception exceptionLocalV /// /// /// - partial void OnErrorGetUserByName(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, string username); + public virtual void OnErrorGetUserByName(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, string username) { } /// /// Get user by user name @@ -1515,7 +1515,7 @@ public GetUserByNameApiResponse(ILogger logger, System OnCreated(httpRequestMessage, httpResponseMessage); } - partial void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage); + public virtual void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage) { } /// /// Returns true if the response is 200 Ok @@ -1619,10 +1619,10 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } - partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); + public virtual void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode) { } } - partial void FormatLoginUser(ref string password, ref string username); + public virtual void FormatLoginUser(ref string password, ref string username) { } /// /// Validates the request parameters @@ -1660,7 +1660,7 @@ private void AfterLoginUserDefaultImplementation(ILoginUserApiResponse apiRespon /// /// /// - partial void AfterLoginUser(ref bool suppressDefaultLog, ILoginUserApiResponse apiResponseLocalVar, string password, string username); + public virtual void AfterLoginUser(ref bool suppressDefaultLog, ILoginUserApiResponse apiResponseLocalVar, string password, string username) { } /// /// Logs exceptions that occur while retrieving the server response @@ -1687,7 +1687,7 @@ private void OnErrorLoginUserDefaultImplementation(Exception exceptionLocalVar, /// /// /// - partial void OnErrorLoginUser(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, string password, string username); + public virtual void OnErrorLoginUser(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, string password, string username) { } /// /// Logs user into the system @@ -1805,7 +1805,7 @@ public LoginUserApiResponse(ILogger logger, System.Net.Htt OnCreated(httpRequestMessage, httpResponseMessage); } - partial void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage); + public virtual void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage) { } /// /// Returns true if the response is 200 Ok @@ -1859,7 +1859,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } - partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); + public virtual void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode) { } } /// @@ -1879,7 +1879,7 @@ private void AfterLogoutUserDefaultImplementation(ILogoutUserApiResponse apiResp /// /// /// - partial void AfterLogoutUser(ref bool suppressDefaultLog, ILogoutUserApiResponse apiResponseLocalVar); + public virtual void AfterLogoutUser(ref bool suppressDefaultLog, ILogoutUserApiResponse apiResponseLocalVar) { } /// /// Logs exceptions that occur while retrieving the server response @@ -1902,7 +1902,7 @@ private void OnErrorLogoutUserDefaultImplementation(Exception exceptionLocalVar, /// /// /// - partial void OnErrorLogoutUser(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar); + public virtual void OnErrorLogoutUser(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar) { } /// /// Logs out current logged in user session @@ -1995,7 +1995,7 @@ public LogoutUserApiResponse(ILogger logger, System.Net.H OnCreated(httpRequestMessage, httpResponseMessage); } - partial void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage); + public virtual void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage) { } /// /// Returns true if the response is the default response type @@ -2011,10 +2011,10 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } - partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); + public virtual void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode) { } } - partial void FormatUpdateUser(User user, ref string username); + public virtual void FormatUpdateUser(User user, ref string username) { } /// /// Validates the request parameters @@ -2052,7 +2052,7 @@ private void AfterUpdateUserDefaultImplementation(IUpdateUserApiResponse apiResp /// /// /// - partial void AfterUpdateUser(ref bool suppressDefaultLog, IUpdateUserApiResponse apiResponseLocalVar, User user, string username); + public virtual void AfterUpdateUser(ref bool suppressDefaultLog, IUpdateUserApiResponse apiResponseLocalVar, User user, string username) { } /// /// Logs exceptions that occur while retrieving the server response @@ -2079,7 +2079,7 @@ private void OnErrorUpdateUserDefaultImplementation(Exception exceptionLocalVar, /// /// /// - partial void OnErrorUpdateUser(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, User user, string username); + public virtual 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. @@ -2195,7 +2195,7 @@ public UpdateUserApiResponse(ILogger logger, System.Net.H OnCreated(httpRequestMessage, httpResponseMessage); } - partial void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage); + public virtual void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage) { } /// /// Returns true if the response is 400 BadRequest @@ -2217,7 +2217,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } - partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); + public virtual void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode) { } } } } diff --git a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Client/ApiResponse`1.cs b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Client/ApiResponse`1.cs index 416f7a04e3d6..26f36afb14be 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Client/ApiResponse`1.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Client/ApiResponse`1.cs @@ -145,7 +145,7 @@ public ApiResponse(global::System.Net.Http.HttpRequestMessage httpRequestMessage OnCreated(httpRequestMessage, httpResponseMessage); } - partial void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage); + public virtual void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage) { } } /// diff --git a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/Activity.cs b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/Activity.cs index a5e4bd35e9bc..7c5af7896600 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/Activity.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/Activity.cs @@ -40,7 +40,7 @@ public Activity(Option /// Used to track the state of ActivityOutputs diff --git a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/ActivityOutputElementRepresentation.cs b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/ActivityOutputElementRepresentation.cs index d7b4374e6a7b..3f53511fff0c 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/ActivityOutputElementRepresentation.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/ActivityOutputElementRepresentation.cs @@ -42,7 +42,7 @@ public ActivityOutputElementRepresentation(Option prop1 = default, Optio OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Used to track the state of Prop1 diff --git a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/AdditionalPropertiesClass.cs b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/AdditionalPropertiesClass.cs index ec17222fbc8f..f1db02649575 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/AdditionalPropertiesClass.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/AdditionalPropertiesClass.cs @@ -54,7 +54,7 @@ public AdditionalPropertiesClass(Option anytype1 = default, Option /// Used to track the state of Anytype1 diff --git a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/Animal.cs b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/Animal.cs index 74cb14f52d91..fb7179ed5b86 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/Animal.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/Animal.cs @@ -40,7 +40,7 @@ public Animal(Option color = default) OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// The discriminator diff --git a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/ApiResponse.cs b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/ApiResponse.cs index 77ec0bd5ed2d..6d2870b461f3 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/ApiResponse.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/ApiResponse.cs @@ -44,7 +44,7 @@ public ApiResponse(Option code = default, Option message = default OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Used to track the state of Code diff --git a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/Apple.cs b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/Apple.cs index df3bc9af06cc..d021ad2d4958 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/Apple.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/Apple.cs @@ -44,7 +44,7 @@ public Apple(Option colorCode = default, Option cultivar = defau OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Used to track the state of ColorCode diff --git a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/AppleReq.cs b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/AppleReq.cs index 1cc72ecd59d3..73f39589fe21 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/AppleReq.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/AppleReq.cs @@ -42,7 +42,7 @@ public AppleReq(string cultivar, Option mealy = default) OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Gets or Sets Cultivar diff --git a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/ArrayOfArrayOfNumberOnly.cs b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/ArrayOfArrayOfNumberOnly.cs index d2398a452eee..697f6c964a19 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/ArrayOfArrayOfNumberOnly.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/ArrayOfArrayOfNumberOnly.cs @@ -40,7 +40,7 @@ public ArrayOfArrayOfNumberOnly(Option>> arrayArrayNumber = d OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Used to track the state of ArrayArrayNumber diff --git a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/ArrayOfNumberOnly.cs b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/ArrayOfNumberOnly.cs index cce8d5d564b6..b1bba9d4e9b1 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/ArrayOfNumberOnly.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/ArrayOfNumberOnly.cs @@ -40,7 +40,7 @@ public ArrayOfNumberOnly(Option> arrayNumber = default) OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Used to track the state of ArrayNumber diff --git a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/ArrayTest.cs b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/ArrayTest.cs index 3fbc72e2f5ab..4200504840ed 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/ArrayTest.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/ArrayTest.cs @@ -44,7 +44,7 @@ public ArrayTest(Option>> arrayArrayOfInteger = default, Option< OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Used to track the state of ArrayArrayOfInteger diff --git a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/Banana.cs b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/Banana.cs index d92ba4ae6aef..cdd4c9cc4ce4 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/Banana.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/Banana.cs @@ -40,7 +40,7 @@ public Banana(Option lengthCm = default) OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Used to track the state of LengthCm diff --git a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/BananaReq.cs b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/BananaReq.cs index c9734cbe3808..371a8d61c67b 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/BananaReq.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/BananaReq.cs @@ -42,7 +42,7 @@ public BananaReq(decimal lengthCm, Option sweet = default) OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Gets or Sets LengthCm diff --git a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/BasquePig.cs b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/BasquePig.cs index 9938d89e008d..3bb04d8e04e1 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/BasquePig.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/BasquePig.cs @@ -40,7 +40,7 @@ public BasquePig(string className) OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Gets or Sets ClassName diff --git a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/Capitalization.cs b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/Capitalization.cs index a1fb0b3eb574..c9d0f8a45227 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/Capitalization.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/Capitalization.cs @@ -50,7 +50,7 @@ public Capitalization(Option aTTNAME = default, Option capitalCa OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Used to track the state of ATT_NAME diff --git a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/Cat.cs b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/Cat.cs index 0ffe1228015d..4b85228b4b74 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/Cat.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/Cat.cs @@ -41,7 +41,7 @@ public Cat(Option color = default, Option declawed = default) : b OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// The discriminator diff --git a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/Category.cs b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/Category.cs index f483d87f36c8..a0dfa1015567 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/Category.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/Category.cs @@ -42,7 +42,7 @@ public Category(Option id = default, string name = @"default-name") OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Used to track the state of Id diff --git a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/ChildCat.cs b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/ChildCat.cs index 8d76e5b9a7ce..42783df35af6 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/ChildCat.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/ChildCat.cs @@ -40,7 +40,7 @@ public ChildCat(Option name = default) : base() OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// The discriminator diff --git a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/ClassModel.cs b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/ClassModel.cs index 7c49d7adb55c..e181a808250b 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/ClassModel.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/ClassModel.cs @@ -40,7 +40,7 @@ public ClassModel(Option @class = default) OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Used to track the state of Class diff --git a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/ComplexQuadrilateral.cs b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/ComplexQuadrilateral.cs index 3023a45610e4..9ed7d63b7732 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/ComplexQuadrilateral.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/ComplexQuadrilateral.cs @@ -42,7 +42,7 @@ public ComplexQuadrilateral(string quadrilateralType, string shapeType) OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Gets or Sets QuadrilateralType diff --git a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/DanishPig.cs b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/DanishPig.cs index 14b2ed3b153f..8377e0f76cf5 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/DanishPig.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/DanishPig.cs @@ -40,7 +40,7 @@ public DanishPig(string className) OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Gets or Sets ClassName diff --git a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/DateOnlyClass.cs b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/DateOnlyClass.cs index 1c478cf336df..d67efe6868d1 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/DateOnlyClass.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/DateOnlyClass.cs @@ -40,7 +40,7 @@ public DateOnlyClass(Option dateOnlyProperty = default) OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Used to track the state of DateOnlyProperty diff --git a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/DeprecatedObject.cs b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/DeprecatedObject.cs index 08067c5cc07c..3e5a4c2ed04c 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/DeprecatedObject.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/DeprecatedObject.cs @@ -40,7 +40,7 @@ public DeprecatedObject(Option name = default) OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Used to track the state of Name diff --git a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/Dog.cs b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/Dog.cs index 605dc512434b..f6cb7298cf5f 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/Dog.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/Dog.cs @@ -41,7 +41,7 @@ public Dog(Option breed = default, Option color = default) : bas OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// The discriminator diff --git a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/Drawing.cs b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/Drawing.cs index a853b96144e2..a37514a314cc 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/Drawing.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/Drawing.cs @@ -46,7 +46,7 @@ public Drawing(Option mainShape = default, Option nullable OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Used to track the state of MainShape diff --git a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/EnumArrays.cs b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/EnumArrays.cs index 6520bebabc0f..26d0c767c66b 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/EnumArrays.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/EnumArrays.cs @@ -42,7 +42,7 @@ public EnumArrays(Option> arrayEnum = default, Op OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Used to track the state of JustSymbol diff --git a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/EnumTest.cs b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/EnumTest.cs index cb22e561feaf..c4d95e33d06a 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/EnumTest.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/EnumTest.cs @@ -56,7 +56,7 @@ public EnumTest(EnumTestEnumString enumStringRequired, Option /// Gets or Sets EnumStringRequired diff --git a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/EquilateralTriangle.cs b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/EquilateralTriangle.cs index d65c7740e5e8..e68cf480a05f 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/EquilateralTriangle.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/EquilateralTriangle.cs @@ -42,7 +42,7 @@ public EquilateralTriangle(string shapeType, string triangleType) OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Gets or Sets ShapeType diff --git a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/File.cs b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/File.cs index 092f10c09324..0519a20c9bfc 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/File.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/File.cs @@ -40,7 +40,7 @@ public File(Option sourceURI = default) OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Used to track the state of SourceURI diff --git a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/FileSchemaTestClass.cs b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/FileSchemaTestClass.cs index f9d9d9f7a7b8..1924423c7bc7 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/FileSchemaTestClass.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/FileSchemaTestClass.cs @@ -42,7 +42,7 @@ public FileSchemaTestClass(Option file = default, Option> files OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Used to track the state of File diff --git a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/Foo.cs b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/Foo.cs index 3eeca0aa2112..d3fb68454516 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/Foo.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/Foo.cs @@ -40,7 +40,7 @@ public Foo(Option bar = default) OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Used to track the state of Bar diff --git a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/FooGetDefaultResponse.cs b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/FooGetDefaultResponse.cs index c7d043666115..97979c9952d9 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/FooGetDefaultResponse.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/FooGetDefaultResponse.cs @@ -40,7 +40,7 @@ public FooGetDefaultResponse(Option @string = default) OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Used to track the state of String diff --git a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/FormatTest.cs b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/FormatTest.cs index 86d63c7ac5f6..460ee09eae25 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/FormatTest.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/FormatTest.cs @@ -86,7 +86,7 @@ public FormatTest(byte[] @byte, DateTime date, decimal number, string password, OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Gets or Sets Byte diff --git a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/Fruit.cs b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/Fruit.cs index cc8b4530f01c..39f5367f7a2b 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/Fruit.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/Fruit.cs @@ -53,7 +53,7 @@ public Fruit(Banana banana, Option color = default) OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Gets or Sets Apple diff --git a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/FruitReq.cs b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/FruitReq.cs index 1e72875d4d32..fad135111099 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/FruitReq.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/FruitReq.cs @@ -49,7 +49,7 @@ public FruitReq(BananaReq bananaReq) OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Gets or Sets AppleReq diff --git a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/GmFruit.cs b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/GmFruit.cs index 78cb87b61a31..b093b213ea63 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/GmFruit.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/GmFruit.cs @@ -43,7 +43,7 @@ public GmFruit(Option apple, Option banana, Option color OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Used to track the state of Apple diff --git a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/GrandparentAnimal.cs b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/GrandparentAnimal.cs index b23e4826fd6b..6bbb19b1789e 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/GrandparentAnimal.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/GrandparentAnimal.cs @@ -38,7 +38,7 @@ public GrandparentAnimal() OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// The discriminator diff --git a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/HasOnlyReadOnly.cs b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/HasOnlyReadOnly.cs index a4e67f73a8e5..45947ab3cd6a 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/HasOnlyReadOnly.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/HasOnlyReadOnly.cs @@ -42,7 +42,7 @@ internal HasOnlyReadOnly(Option bar = default, Option foo = defa OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Used to track the state of Bar diff --git a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/HealthCheckResult.cs b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/HealthCheckResult.cs index 16afc025fa03..5b841e42fc13 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/HealthCheckResult.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/HealthCheckResult.cs @@ -40,7 +40,7 @@ public HealthCheckResult(Option nullableMessage = default) OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Used to track the state of NullableMessage diff --git a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/IsoscelesTriangle.cs b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/IsoscelesTriangle.cs index cce859524111..651f261659c1 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/IsoscelesTriangle.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/IsoscelesTriangle.cs @@ -42,7 +42,7 @@ public IsoscelesTriangle(string shapeType, string triangleType) OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Gets or Sets ShapeType diff --git a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/List.cs b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/List.cs index 050d58f85c23..ee5738e61a90 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/List.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/List.cs @@ -40,7 +40,7 @@ public List(Option var123List = default) OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Used to track the state of Var123List diff --git a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/LiteralStringClass.cs b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/LiteralStringClass.cs index 522ba51e6cb3..0ab4393a312a 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/LiteralStringClass.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/LiteralStringClass.cs @@ -42,7 +42,7 @@ public LiteralStringClass(Option escapedLiteralString = default, Option< OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Used to track the state of EscapedLiteralString diff --git a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/Mammal.cs b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/Mammal.cs index 267ac8769d31..d9a8cde9cd81 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/Mammal.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/Mammal.cs @@ -59,7 +59,7 @@ public Mammal(Pig pig) OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Gets or Sets Whale diff --git a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/MapTest.cs b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/MapTest.cs index 120a8fb0dd54..070f3e410adc 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/MapTest.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/MapTest.cs @@ -46,7 +46,7 @@ public MapTest(Option> directMap = default, Option /// Used to track the state of DirectMap diff --git a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/MixLog.cs b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/MixLog.cs index d18711f51031..23ded06af5f3 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/MixLog.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/MixLog.cs @@ -102,7 +102,7 @@ public MixLog(string description, DateTime formulaVersionDate, Guid id, DateTime OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Gets or Sets Description diff --git a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/MixedAnyOf.cs b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/MixedAnyOf.cs index c81de3d2f67d..26da905605af 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/MixedAnyOf.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/MixedAnyOf.cs @@ -40,7 +40,7 @@ public MixedAnyOf(Option content = default) OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Used to track the state of Content diff --git a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/MixedAnyOfContent.cs b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/MixedAnyOfContent.cs index 5de026753ef2..4dc98a482ac3 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/MixedAnyOfContent.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/MixedAnyOfContent.cs @@ -47,7 +47,7 @@ public MixedAnyOfContent(Option @string, Option @bool, Option /// Used to track the state of String diff --git a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/MixedOneOf.cs b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/MixedOneOf.cs index 32515bc04405..231aee38015f 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/MixedOneOf.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/MixedOneOf.cs @@ -40,7 +40,7 @@ public MixedOneOf(Option content = default) OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Used to track the state of Content diff --git a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/MixedOneOfContent.cs b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/MixedOneOfContent.cs index 4cb69dae28cd..bd9823fdcbc1 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/MixedOneOfContent.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/MixedOneOfContent.cs @@ -79,7 +79,7 @@ public MixedOneOfContent(MixedSubId mixedSubId) OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Gets or Sets String diff --git a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/MixedPropertiesAndAdditionalPropertiesClass.cs b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/MixedPropertiesAndAdditionalPropertiesClass.cs index 3cef3330300e..11749dd1fe0f 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/MixedPropertiesAndAdditionalPropertiesClass.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/MixedPropertiesAndAdditionalPropertiesClass.cs @@ -46,7 +46,7 @@ public MixedPropertiesAndAdditionalPropertiesClass(Option dateTime = OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Used to track the state of DateTime diff --git a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/MixedSubId.cs b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/MixedSubId.cs index 34198e6f437a..82f0e9116050 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/MixedSubId.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/MixedSubId.cs @@ -40,7 +40,7 @@ public MixedSubId(Option id = default) OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Used to track the state of Id diff --git a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/Model200Response.cs b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/Model200Response.cs index bf37307ad965..33d75857f84d 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/Model200Response.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/Model200Response.cs @@ -42,7 +42,7 @@ public Model200Response(Option @class = default, Option name = def OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Used to track the state of Class diff --git a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/ModelClient.cs b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/ModelClient.cs index 5d459e8b5eb1..f84fbb6a6186 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/ModelClient.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/ModelClient.cs @@ -40,7 +40,7 @@ public ModelClient(Option varClient = default) OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Used to track the state of VarClient diff --git a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/Name.cs b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/Name.cs index b322aaf568ce..814ee7510454 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/Name.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/Name.cs @@ -46,7 +46,7 @@ public Name(int varName, Option property = default, Option snakeCa OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Gets or Sets VarName diff --git a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/NotificationtestGetElementsV1ResponseMPayload.cs b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/NotificationtestGetElementsV1ResponseMPayload.cs index ea8abdda0d78..d6c1a4bf339b 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/NotificationtestGetElementsV1ResponseMPayload.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/NotificationtestGetElementsV1ResponseMPayload.cs @@ -42,7 +42,7 @@ public NotificationtestGetElementsV1ResponseMPayload(List /// Gets or Sets AObjVariableobject diff --git a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/NullableClass.cs b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/NullableClass.cs index 42533f9c7ebf..6e2518705255 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/NullableClass.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/NullableClass.cs @@ -62,7 +62,7 @@ public NullableClass(Option> arrayAndItemsNullableProp = default, O OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Used to track the state of ArrayAndItemsNullableProp diff --git a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/NullableGuidClass.cs b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/NullableGuidClass.cs index 286d13258dce..446d782de457 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/NullableGuidClass.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/NullableGuidClass.cs @@ -40,7 +40,7 @@ public NullableGuidClass(Option uuid = default) OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Used to track the state of Uuid diff --git a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/NullableShape.cs b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/NullableShape.cs index 9a93cb734e9c..995568e86c42 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/NullableShape.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/NullableShape.cs @@ -49,7 +49,7 @@ public NullableShape(Quadrilateral quadrilateral) OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Gets or Sets Triangle diff --git a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/NumberOnly.cs b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/NumberOnly.cs index 29f5a80e6462..bb0c7a57114a 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/NumberOnly.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/NumberOnly.cs @@ -40,7 +40,7 @@ public NumberOnly(Option justNumber = default) OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Used to track the state of JustNumber diff --git a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/ObjectWithDeprecatedFields.cs b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/ObjectWithDeprecatedFields.cs index 83f513bc63bb..0fa7f080b76c 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/ObjectWithDeprecatedFields.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/ObjectWithDeprecatedFields.cs @@ -46,7 +46,7 @@ public ObjectWithDeprecatedFields(Option> bars = default, Option /// Used to track the state of Bars diff --git a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/OneOfString.cs b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/OneOfString.cs index c89963f55a36..999f3ce9a2e5 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/OneOfString.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/OneOfString.cs @@ -39,7 +39,7 @@ internal OneOfString(string @string) OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Gets or Sets String diff --git a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/Order.cs b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/Order.cs index 3dbb629ecf99..e19a9768bbb4 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/Order.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/Order.cs @@ -50,7 +50,7 @@ public Order(Option complete = default, Option id = default, Optio OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Used to track the state of Status diff --git a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/OuterComposite.cs b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/OuterComposite.cs index 92ec1939d1af..5c00052aa141 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/OuterComposite.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/OuterComposite.cs @@ -44,7 +44,7 @@ public OuterComposite(Option myBoolean = default, Option myNumb OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Used to track the state of MyBoolean diff --git a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/ParentPet.cs b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/ParentPet.cs index 83104e900d01..dd6f0777ee48 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/ParentPet.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/ParentPet.cs @@ -38,7 +38,7 @@ public ParentPet() : base() OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// The discriminator diff --git a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/Pet.cs b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/Pet.cs index e4049df78c03..0f5c5a936463 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/Pet.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/Pet.cs @@ -50,7 +50,7 @@ public Pet(string name, List photoUrls, Option category = defa OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Used to track the state of Status diff --git a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/Pig.cs b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/Pig.cs index b6f300c94400..6cbb846229e6 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/Pig.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/Pig.cs @@ -49,7 +49,7 @@ public Pig(DanishPig danishPig) OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Gets or Sets BasquePig diff --git a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/PolymorphicProperty.cs b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/PolymorphicProperty.cs index ddea47edf40c..a0fdf9fa39c7 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/PolymorphicProperty.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/PolymorphicProperty.cs @@ -69,7 +69,7 @@ internal PolymorphicProperty(List list) OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Gets or Sets Bool diff --git a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/Quadrilateral.cs b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/Quadrilateral.cs index e8a2e2439975..a95ca8f058bf 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/Quadrilateral.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/Quadrilateral.cs @@ -49,7 +49,7 @@ public Quadrilateral(ComplexQuadrilateral complexQuadrilateral) OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Gets or Sets SimpleQuadrilateral diff --git a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/QuadrilateralInterface.cs b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/QuadrilateralInterface.cs index 519ed66393ca..08cade10a83f 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/QuadrilateralInterface.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/QuadrilateralInterface.cs @@ -40,7 +40,7 @@ public QuadrilateralInterface(string quadrilateralType) OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Gets or Sets QuadrilateralType diff --git a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/ReadOnlyFirst.cs b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/ReadOnlyFirst.cs index a7cd43316ac8..d39a761c6756 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/ReadOnlyFirst.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/ReadOnlyFirst.cs @@ -42,7 +42,7 @@ public ReadOnlyFirst(Option bar = default, Option baz = default) OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Used to track the state of Bar diff --git a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/RequiredClass.cs b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/RequiredClass.cs index 4eb4f6acc58d..7b0c113f780a 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/RequiredClass.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/RequiredClass.cs @@ -126,7 +126,7 @@ public RequiredClass(DateTime requiredNotNullableDateProp, List required OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Gets or Sets RequiredNotnullableEnumInteger diff --git a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/Return.cs b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/Return.cs index 6a2c4c85eb4a..69091556b453 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/Return.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/Return.cs @@ -46,7 +46,7 @@ public Return(string @lock, string @abstract = default, Option varReturn = OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Gets or Sets Lock diff --git a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/RolesReportsHash.cs b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/RolesReportsHash.cs index 46625cb093a3..8d0cb0a73562 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/RolesReportsHash.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/RolesReportsHash.cs @@ -42,7 +42,7 @@ public RolesReportsHash(Option role = default, Option /// Used to track the state of Role diff --git a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/RolesReportsHashRole.cs b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/RolesReportsHashRole.cs index 29c8760c9722..7378b0edc04a 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/RolesReportsHashRole.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/RolesReportsHashRole.cs @@ -40,7 +40,7 @@ public RolesReportsHashRole(Option name = default) OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Used to track the state of Name diff --git a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/ScaleneTriangle.cs b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/ScaleneTriangle.cs index 5c960eb54744..ae482c9fd59c 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/ScaleneTriangle.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/ScaleneTriangle.cs @@ -42,7 +42,7 @@ public ScaleneTriangle(string shapeType, string triangleType) OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Gets or Sets ShapeType diff --git a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/Shape.cs b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/Shape.cs index c651ac7d2454..bf15bb26ed51 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/Shape.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/Shape.cs @@ -49,7 +49,7 @@ public Shape(Quadrilateral quadrilateral) OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Gets or Sets Triangle diff --git a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/ShapeInterface.cs b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/ShapeInterface.cs index 37db5df64908..192ca6aef087 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/ShapeInterface.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/ShapeInterface.cs @@ -40,7 +40,7 @@ public ShapeInterface(string shapeType) OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Gets or Sets ShapeType diff --git a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/ShapeOrNull.cs b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/ShapeOrNull.cs index 1f0b22030070..c532dcee99f3 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/ShapeOrNull.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/ShapeOrNull.cs @@ -49,7 +49,7 @@ public ShapeOrNull(Quadrilateral quadrilateral) OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Gets or Sets Triangle diff --git a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/SimpleQuadrilateral.cs b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/SimpleQuadrilateral.cs index ffa68d1e75de..0a8314e7ee3b 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/SimpleQuadrilateral.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/SimpleQuadrilateral.cs @@ -42,7 +42,7 @@ public SimpleQuadrilateral(string quadrilateralType, string shapeType) OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Gets or Sets QuadrilateralType diff --git a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/SpecialModelName.cs b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/SpecialModelName.cs index 7ec3c110c2a1..7ba549f145bb 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/SpecialModelName.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/SpecialModelName.cs @@ -42,7 +42,7 @@ public SpecialModelName(Option varSpecialModelName = default, Option /// Used to track the state of VarSpecialModelName diff --git a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/Tag.cs b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/Tag.cs index 4290e8270ff9..38aca81c755b 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/Tag.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/Tag.cs @@ -42,7 +42,7 @@ public Tag(Option id = default, Option name = default) OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Used to track the state of Id diff --git a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordList.cs b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordList.cs index 11d1cd5963c0..49258bcb159f 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordList.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordList.cs @@ -40,7 +40,7 @@ public TestCollectionEndingWithWordList(Option value = default) OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Used to track the state of Value diff --git a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordListObject.cs b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordListObject.cs index 04d04337aa4a..e9467b8f265f 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordListObject.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordListObject.cs @@ -40,7 +40,7 @@ public TestCollectionEndingWithWordListObject(Option /// Used to track the state of TestCollectionEndingWithWordList diff --git a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/TestInlineFreeformAdditionalPropertiesRequest.cs b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/TestInlineFreeformAdditionalPropertiesRequest.cs index 33f5183651a3..407afedd0da9 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/TestInlineFreeformAdditionalPropertiesRequest.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/TestInlineFreeformAdditionalPropertiesRequest.cs @@ -40,7 +40,7 @@ public TestInlineFreeformAdditionalPropertiesRequest(Option someProperty OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Used to track the state of SomeProperty diff --git a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/Triangle.cs b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/Triangle.cs index cf22051519ad..36cae8b499ba 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/Triangle.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/Triangle.cs @@ -59,7 +59,7 @@ public Triangle(ScaleneTriangle scaleneTriangle) OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Gets or Sets EquilateralTriangle diff --git a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/TriangleInterface.cs b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/TriangleInterface.cs index 0f13b0e77451..55f659bdd721 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/TriangleInterface.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/TriangleInterface.cs @@ -40,7 +40,7 @@ public TriangleInterface(string triangleType) OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Gets or Sets TriangleType diff --git a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/User.cs b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/User.cs index e89d58457324..1f6231bd7a9f 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/User.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/User.cs @@ -62,7 +62,7 @@ public User(Option anyTypeProp = default, Option anyTypePropNull OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Used to track the state of AnyTypeProp diff --git a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/Whale.cs b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/Whale.cs index 834e6957c675..8bf23ccec947 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/Whale.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/Whale.cs @@ -44,7 +44,7 @@ public Whale(string className, Option hasBaleen = default, Option OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Gets or Sets ClassName diff --git a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/Zebra.cs b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/Zebra.cs index 0b9bb3c3bc51..4ff4e8914252 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/Zebra.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/Zebra.cs @@ -42,7 +42,7 @@ public Zebra(string className, Option type = default) OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Used to track the state of Type diff --git a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/ZeroBasedEnumClass.cs b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/ZeroBasedEnumClass.cs index d538b722cae0..1e71e30ec6bb 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/ZeroBasedEnumClass.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/ZeroBasedEnumClass.cs @@ -40,7 +40,7 @@ public ZeroBasedEnumClass(Option zeroBasedEnum OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Used to track the state of ZeroBasedEnum 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 c2a2d862a621..d44541294945 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 @@ -150,7 +150,7 @@ private void AfterRootGetDefaultImplementation(IRootGetApiResponse apiResponseLo /// /// /// - partial void AfterRootGet(ref bool suppressDefaultLog, IRootGetApiResponse apiResponseLocalVar); + public virtual void AfterRootGet(ref bool suppressDefaultLog, IRootGetApiResponse apiResponseLocalVar) { } /// /// Logs exceptions that occur while retrieving the server response @@ -173,7 +173,7 @@ private void OnErrorRootGetDefaultImplementation(Exception exceptionLocalVar, st /// /// /// - partial void OnErrorRootGet(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar); + public virtual void OnErrorRootGet(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar) { } /// /// @@ -275,7 +275,7 @@ public RootGetApiResponse(ILogger logger, System.Net.Http.Ht OnCreated(httpRequestMessage, httpResponseMessage); } - partial void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage); + public virtual void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage) { } /// /// Returns true if the response is 200 Ok @@ -323,7 +323,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } - partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); + public virtual void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode) { } } } } diff --git a/samples/client/petstore/csharp/generichost/net4.7/OneOf/src/Org.OpenAPITools/Client/ApiResponse`1.cs b/samples/client/petstore/csharp/generichost/net4.7/OneOf/src/Org.OpenAPITools/Client/ApiResponse`1.cs index 96bba8467893..64ecfe9c19c3 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/OneOf/src/Org.OpenAPITools/Client/ApiResponse`1.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/OneOf/src/Org.OpenAPITools/Client/ApiResponse`1.cs @@ -145,7 +145,7 @@ public ApiResponse(global::System.Net.Http.HttpRequestMessage httpRequestMessage OnCreated(httpRequestMessage, httpResponseMessage); } - partial void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage); + public virtual void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage) { } } /// diff --git a/samples/client/petstore/csharp/generichost/net4.7/OneOf/src/Org.OpenAPITools/Model/Apple.cs b/samples/client/petstore/csharp/generichost/net4.7/OneOf/src/Org.OpenAPITools/Model/Apple.cs index 7867e6645419..aa7d16779f8e 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/OneOf/src/Org.OpenAPITools/Model/Apple.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/OneOf/src/Org.OpenAPITools/Model/Apple.cs @@ -40,7 +40,7 @@ public Apple(Option kind = default) OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Used to track the state of Kind diff --git a/samples/client/petstore/csharp/generichost/net4.7/OneOf/src/Org.OpenAPITools/Model/Banana.cs b/samples/client/petstore/csharp/generichost/net4.7/OneOf/src/Org.OpenAPITools/Model/Banana.cs index 15899a012afd..de0714efe6cc 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/OneOf/src/Org.OpenAPITools/Model/Banana.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/OneOf/src/Org.OpenAPITools/Model/Banana.cs @@ -40,7 +40,7 @@ public Banana(Option count = default) OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Used to track the state of Count diff --git a/samples/client/petstore/csharp/generichost/net4.7/OneOf/src/Org.OpenAPITools/Model/Fruit.cs b/samples/client/petstore/csharp/generichost/net4.7/OneOf/src/Org.OpenAPITools/Model/Fruit.cs index 1d1c7c5388c0..499222fc9e41 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/OneOf/src/Org.OpenAPITools/Model/Fruit.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/OneOf/src/Org.OpenAPITools/Model/Fruit.cs @@ -53,7 +53,7 @@ public Fruit(Banana banana, Option color = default) OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Gets or Sets Apple 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 1fd1ffef4feb..db88b37887ed 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 @@ -170,7 +170,7 @@ public AnotherFakeApi(ILogger logger, ILoggerFactory loggerFacto OauthTokenProvider = oauthTokenProvider; } - partial void FormatCall123TestSpecialTags(ModelClient modelClient); + public virtual void FormatCall123TestSpecialTags(ModelClient modelClient) { } /// /// Validates the request parameters @@ -202,7 +202,7 @@ private void AfterCall123TestSpecialTagsDefaultImplementation(ICall123TestSpecia /// /// /// - partial void AfterCall123TestSpecialTags(ref bool suppressDefaultLog, ICall123TestSpecialTagsApiResponse apiResponseLocalVar, ModelClient modelClient); + public virtual void AfterCall123TestSpecialTags(ref bool suppressDefaultLog, ICall123TestSpecialTagsApiResponse apiResponseLocalVar, ModelClient modelClient) { } /// /// Logs exceptions that occur while retrieving the server response @@ -227,7 +227,7 @@ private void OnErrorCall123TestSpecialTagsDefaultImplementation(Exception except /// /// /// - partial void OnErrorCall123TestSpecialTags(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, ModelClient modelClient); + public virtual 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 @@ -348,7 +348,7 @@ public Call123TestSpecialTagsApiResponse(ILogger /// Returns true if the response is 200 Ok @@ -396,7 +396,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } - partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); + public virtual void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode) { } } } } 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 879c3ecdb9ad..9cd2655e8814 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 @@ -399,7 +399,7 @@ private void AfterFooGetDefaultImplementation(IFooGetApiResponse apiResponseLoca /// /// /// - partial void AfterFooGet(ref bool suppressDefaultLog, IFooGetApiResponse apiResponseLocalVar); + public virtual void AfterFooGet(ref bool suppressDefaultLog, IFooGetApiResponse apiResponseLocalVar) { } /// /// Logs exceptions that occur while retrieving the server response @@ -422,7 +422,7 @@ private void OnErrorFooGetDefaultImplementation(Exception exceptionLocalVar, str /// /// /// - partial void OnErrorFooGet(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar); + public virtual void OnErrorFooGet(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar) { } /// /// @@ -524,7 +524,7 @@ public FooGetApiResponse(ILogger logger, System.Net.Http.Http OnCreated(httpRequestMessage, httpResponseMessage); } - partial void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage); + public virtual void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage) { } /// /// Returns true if the response is the default response type @@ -572,10 +572,10 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } - partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); + public virtual void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode) { } } - partial void FormatGetCountry(ref string country); + public virtual void FormatGetCountry(ref string country) { } /// /// Validates the request parameters @@ -607,7 +607,7 @@ private void AfterGetCountryDefaultImplementation(IGetCountryApiResponse apiResp /// /// /// - partial void AfterGetCountry(ref bool suppressDefaultLog, IGetCountryApiResponse apiResponseLocalVar, string country); + public virtual void AfterGetCountry(ref bool suppressDefaultLog, IGetCountryApiResponse apiResponseLocalVar, string country) { } /// /// Logs exceptions that occur while retrieving the server response @@ -632,7 +632,7 @@ private void OnErrorGetCountryDefaultImplementation(Exception exceptionLocalVar, /// /// /// - partial void OnErrorGetCountry(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, string country); + public virtual void OnErrorGetCountry(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, string country) { } /// /// @@ -751,7 +751,7 @@ public GetCountryApiResponse(ILogger logger, System.Net.H OnCreated(httpRequestMessage, httpResponseMessage); } - partial void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage); + public virtual void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage) { } /// /// Returns true if the response is 200 Ok @@ -767,7 +767,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } - partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); + public virtual void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode) { } } /// @@ -787,7 +787,7 @@ private void AfterHelloDefaultImplementation(IHelloApiResponse apiResponseLocalV /// /// /// - partial void AfterHello(ref bool suppressDefaultLog, IHelloApiResponse apiResponseLocalVar); + public virtual void AfterHello(ref bool suppressDefaultLog, IHelloApiResponse apiResponseLocalVar) { } /// /// Logs exceptions that occur while retrieving the server response @@ -810,7 +810,7 @@ private void OnErrorHelloDefaultImplementation(Exception exceptionLocalVar, stri /// /// /// - partial void OnErrorHello(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar); + public virtual void OnErrorHello(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar) { } /// /// Hello Hello @@ -912,7 +912,7 @@ public HelloApiResponse(ILogger logger, System.Net.Http.HttpRe OnCreated(httpRequestMessage, httpResponseMessage); } - partial void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage); + public virtual void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage) { } /// /// Returns true if the response is 200 Ok @@ -960,7 +960,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } - partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); + public virtual void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode) { } } /// @@ -980,7 +980,7 @@ private void AfterRolesReportGetDefaultImplementation(IRolesReportGetApiResponse /// /// /// - partial void AfterRolesReportGet(ref bool suppressDefaultLog, IRolesReportGetApiResponse apiResponseLocalVar); + public virtual void AfterRolesReportGet(ref bool suppressDefaultLog, IRolesReportGetApiResponse apiResponseLocalVar) { } /// /// Logs exceptions that occur while retrieving the server response @@ -1003,7 +1003,7 @@ private void OnErrorRolesReportGetDefaultImplementation(Exception exceptionLocal /// /// /// - partial void OnErrorRolesReportGet(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar); + public virtual void OnErrorRolesReportGet(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar) { } /// /// @@ -1105,7 +1105,7 @@ public RolesReportGetApiResponse(ILogger logger, Syst OnCreated(httpRequestMessage, httpResponseMessage); } - partial void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage); + public virtual void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage) { } /// /// Returns true if the response is 200 Ok @@ -1153,7 +1153,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } - partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); + public virtual void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode) { } } /// @@ -1173,7 +1173,7 @@ private void AfterTestDefaultImplementation(ITestApiResponse apiResponseLocalVar /// /// /// - partial void AfterTest(ref bool suppressDefaultLog, ITestApiResponse apiResponseLocalVar); + public virtual void AfterTest(ref bool suppressDefaultLog, ITestApiResponse apiResponseLocalVar) { } /// /// Logs exceptions that occur while retrieving the server response @@ -1196,7 +1196,7 @@ private void OnErrorTestDefaultImplementation(Exception exceptionLocalVar, strin /// /// /// - partial void OnErrorTest(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar); + public virtual void OnErrorTest(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar) { } /// /// Retrieve an existing Notificationtest's Elements @@ -1298,7 +1298,7 @@ public TestApiResponse(ILogger logger, System.Net.Http.HttpRequ OnCreated(httpRequestMessage, httpResponseMessage); } - partial void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage); + public virtual void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage) { } /// /// Returns true if the response is 200 Ok @@ -1346,7 +1346,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } - partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); + public virtual void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode) { } } } } 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 b3b0cf5352ff..80e0ca085e6f 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 @@ -1308,7 +1308,7 @@ private void AfterFakeHealthGetDefaultImplementation(IFakeHealthGetApiResponse a /// /// /// - partial void AfterFakeHealthGet(ref bool suppressDefaultLog, IFakeHealthGetApiResponse apiResponseLocalVar); + public virtual void AfterFakeHealthGet(ref bool suppressDefaultLog, IFakeHealthGetApiResponse apiResponseLocalVar) { } /// /// Logs exceptions that occur while retrieving the server response @@ -1331,7 +1331,7 @@ private void OnErrorFakeHealthGetDefaultImplementation(Exception exceptionLocalV /// /// /// - partial void OnErrorFakeHealthGet(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar); + public virtual void OnErrorFakeHealthGet(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar) { } /// /// Health check endpoint @@ -1433,7 +1433,7 @@ public FakeHealthGetApiResponse(ILogger logger, System OnCreated(httpRequestMessage, httpResponseMessage); } - partial void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage); + public virtual void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage) { } /// /// Returns true if the response is 200 Ok @@ -1481,10 +1481,10 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } - partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); + public virtual void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode) { } } - partial void FormatFakeOuterBooleanSerialize(ref Option body); + public virtual void FormatFakeOuterBooleanSerialize(ref Option body) { } /// /// Processes the server response @@ -1505,7 +1505,7 @@ private void AfterFakeOuterBooleanSerializeDefaultImplementation(IFakeOuterBoole /// /// /// - partial void AfterFakeOuterBooleanSerialize(ref bool suppressDefaultLog, IFakeOuterBooleanSerializeApiResponse apiResponseLocalVar, Option body); + public virtual void AfterFakeOuterBooleanSerialize(ref bool suppressDefaultLog, IFakeOuterBooleanSerializeApiResponse apiResponseLocalVar, Option body) { } /// /// Logs exceptions that occur while retrieving the server response @@ -1530,7 +1530,7 @@ private void OnErrorFakeOuterBooleanSerializeDefaultImplementation(Exception exc /// /// /// - partial void OnErrorFakeOuterBooleanSerialize(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, Option body); + public virtual void OnErrorFakeOuterBooleanSerialize(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, Option body) { } /// /// Test serialization of outer boolean types @@ -1650,7 +1650,7 @@ public FakeOuterBooleanSerializeApiResponse(ILogger /// Returns true if the response is 200 Ok @@ -1698,10 +1698,10 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } - partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); + public virtual void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode) { } } - partial void FormatFakeOuterCompositeSerialize(Option outerComposite); + public virtual void FormatFakeOuterCompositeSerialize(Option outerComposite) { } /// /// Validates the request parameters @@ -1733,7 +1733,7 @@ private void AfterFakeOuterCompositeSerializeDefaultImplementation(IFakeOuterCom /// /// /// - partial void AfterFakeOuterCompositeSerialize(ref bool suppressDefaultLog, IFakeOuterCompositeSerializeApiResponse apiResponseLocalVar, Option outerComposite); + public virtual void AfterFakeOuterCompositeSerialize(ref bool suppressDefaultLog, IFakeOuterCompositeSerializeApiResponse apiResponseLocalVar, Option outerComposite) { } /// /// Logs exceptions that occur while retrieving the server response @@ -1758,7 +1758,7 @@ private void OnErrorFakeOuterCompositeSerializeDefaultImplementation(Exception e /// /// /// - partial void OnErrorFakeOuterCompositeSerialize(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, Option outerComposite); + public virtual void OnErrorFakeOuterCompositeSerialize(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, Option outerComposite) { } /// /// Test serialization of object with outer number type @@ -1880,7 +1880,7 @@ public FakeOuterCompositeSerializeApiResponse(ILogger /// Returns true if the response is 200 Ok @@ -1928,10 +1928,10 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } - partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); + public virtual void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode) { } } - partial void FormatFakeOuterNumberSerialize(ref Option body); + public virtual void FormatFakeOuterNumberSerialize(ref Option body) { } /// /// Processes the server response @@ -1952,7 +1952,7 @@ private void AfterFakeOuterNumberSerializeDefaultImplementation(IFakeOuterNumber /// /// /// - partial void AfterFakeOuterNumberSerialize(ref bool suppressDefaultLog, IFakeOuterNumberSerializeApiResponse apiResponseLocalVar, Option body); + public virtual void AfterFakeOuterNumberSerialize(ref bool suppressDefaultLog, IFakeOuterNumberSerializeApiResponse apiResponseLocalVar, Option body) { } /// /// Logs exceptions that occur while retrieving the server response @@ -1977,7 +1977,7 @@ private void OnErrorFakeOuterNumberSerializeDefaultImplementation(Exception exce /// /// /// - partial void OnErrorFakeOuterNumberSerialize(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, Option body); + public virtual void OnErrorFakeOuterNumberSerialize(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, Option body) { } /// /// Test serialization of outer number types @@ -2097,7 +2097,7 @@ public FakeOuterNumberSerializeApiResponse(ILogger /// Returns true if the response is 200 Ok @@ -2145,10 +2145,10 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } - partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); + public virtual void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode) { } } - partial void FormatFakeOuterStringSerialize(ref Guid requiredStringUuid, ref Option body); + public virtual void FormatFakeOuterStringSerialize(ref Guid requiredStringUuid, ref Option body) { } /// /// Validates the request parameters @@ -2182,7 +2182,7 @@ private void AfterFakeOuterStringSerializeDefaultImplementation(IFakeOuterString /// /// /// - partial void AfterFakeOuterStringSerialize(ref bool suppressDefaultLog, IFakeOuterStringSerializeApiResponse apiResponseLocalVar, Guid requiredStringUuid, Option body); + public virtual void AfterFakeOuterStringSerialize(ref bool suppressDefaultLog, IFakeOuterStringSerializeApiResponse apiResponseLocalVar, Guid requiredStringUuid, Option body) { } /// /// Logs exceptions that occur while retrieving the server response @@ -2209,7 +2209,7 @@ private void OnErrorFakeOuterStringSerializeDefaultImplementation(Exception exce /// /// /// - partial void OnErrorFakeOuterStringSerialize(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, Guid requiredStringUuid, Option body); + public virtual void OnErrorFakeOuterStringSerialize(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, Guid requiredStringUuid, Option body) { } /// /// Test serialization of outer string types @@ -2339,7 +2339,7 @@ public FakeOuterStringSerializeApiResponse(ILogger /// Returns true if the response is 200 Ok @@ -2387,7 +2387,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } - partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); + public virtual void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode) { } } /// @@ -2407,7 +2407,7 @@ private void AfterGetArrayOfEnumsDefaultImplementation(IGetArrayOfEnumsApiRespon /// /// /// - partial void AfterGetArrayOfEnums(ref bool suppressDefaultLog, IGetArrayOfEnumsApiResponse apiResponseLocalVar); + public virtual void AfterGetArrayOfEnums(ref bool suppressDefaultLog, IGetArrayOfEnumsApiResponse apiResponseLocalVar) { } /// /// Logs exceptions that occur while retrieving the server response @@ -2430,7 +2430,7 @@ private void OnErrorGetArrayOfEnumsDefaultImplementation(Exception exceptionLoca /// /// /// - partial void OnErrorGetArrayOfEnums(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar); + public virtual void OnErrorGetArrayOfEnums(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar) { } /// /// Array of Enums @@ -2532,7 +2532,7 @@ public GetArrayOfEnumsApiResponse(ILogger logger, Sy OnCreated(httpRequestMessage, httpResponseMessage); } - partial void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage); + public virtual void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage) { } /// /// Returns true if the response is 200 Ok @@ -2580,7 +2580,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } - partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); + public virtual void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode) { } } /// @@ -2600,7 +2600,7 @@ private void AfterGetMixedAnyOfDefaultImplementation(IGetMixedAnyOfApiResponse a /// /// /// - partial void AfterGetMixedAnyOf(ref bool suppressDefaultLog, IGetMixedAnyOfApiResponse apiResponseLocalVar); + public virtual void AfterGetMixedAnyOf(ref bool suppressDefaultLog, IGetMixedAnyOfApiResponse apiResponseLocalVar) { } /// /// Logs exceptions that occur while retrieving the server response @@ -2623,7 +2623,7 @@ private void OnErrorGetMixedAnyOfDefaultImplementation(Exception exceptionLocalV /// /// /// - partial void OnErrorGetMixedAnyOf(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar); + public virtual void OnErrorGetMixedAnyOf(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar) { } /// /// Test mixed type anyOf deserialization @@ -2725,7 +2725,7 @@ public GetMixedAnyOfApiResponse(ILogger logger, System OnCreated(httpRequestMessage, httpResponseMessage); } - partial void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage); + public virtual void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage) { } /// /// Returns true if the response is 200 Ok @@ -2773,7 +2773,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } - partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); + public virtual void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode) { } } /// @@ -2793,7 +2793,7 @@ private void AfterGetMixedOneOfDefaultImplementation(IGetMixedOneOfApiResponse a /// /// /// - partial void AfterGetMixedOneOf(ref bool suppressDefaultLog, IGetMixedOneOfApiResponse apiResponseLocalVar); + public virtual void AfterGetMixedOneOf(ref bool suppressDefaultLog, IGetMixedOneOfApiResponse apiResponseLocalVar) { } /// /// Logs exceptions that occur while retrieving the server response @@ -2816,7 +2816,7 @@ private void OnErrorGetMixedOneOfDefaultImplementation(Exception exceptionLocalV /// /// /// - partial void OnErrorGetMixedOneOf(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar); + public virtual void OnErrorGetMixedOneOf(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar) { } /// /// Test mixed type oneOf deserialization @@ -2918,7 +2918,7 @@ public GetMixedOneOfApiResponse(ILogger logger, System OnCreated(httpRequestMessage, httpResponseMessage); } - partial void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage); + public virtual void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage) { } /// /// Returns true if the response is 200 Ok @@ -2966,10 +2966,10 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } - partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); + public virtual void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode) { } } - partial void FormatTestAdditionalPropertiesReference(Dictionary requestBody); + public virtual void FormatTestAdditionalPropertiesReference(Dictionary requestBody) { } /// /// Validates the request parameters @@ -3001,7 +3001,7 @@ private void AfterTestAdditionalPropertiesReferenceDefaultImplementation(ITestAd /// /// /// - partial void AfterTestAdditionalPropertiesReference(ref bool suppressDefaultLog, ITestAdditionalPropertiesReferenceApiResponse apiResponseLocalVar, Dictionary requestBody); + public virtual void AfterTestAdditionalPropertiesReference(ref bool suppressDefaultLog, ITestAdditionalPropertiesReferenceApiResponse apiResponseLocalVar, Dictionary requestBody) { } /// /// Logs exceptions that occur while retrieving the server response @@ -3026,7 +3026,7 @@ private void OnErrorTestAdditionalPropertiesReferenceDefaultImplementation(Excep /// /// /// - partial void OnErrorTestAdditionalPropertiesReference(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, Dictionary requestBody); + public virtual void OnErrorTestAdditionalPropertiesReference(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, Dictionary requestBody) { } /// /// test referenced additionalProperties @@ -3139,7 +3139,7 @@ public TestAdditionalPropertiesReferenceApiResponse(ILogger /// Returns true if the response is 200 Ok @@ -3155,10 +3155,10 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } - partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); + public virtual void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode) { } } - partial void FormatTestBodyWithFileSchema(FileSchemaTestClass fileSchemaTestClass); + public virtual void FormatTestBodyWithFileSchema(FileSchemaTestClass fileSchemaTestClass) { } /// /// Validates the request parameters @@ -3190,7 +3190,7 @@ private void AfterTestBodyWithFileSchemaDefaultImplementation(ITestBodyWithFileS /// /// /// - partial void AfterTestBodyWithFileSchema(ref bool suppressDefaultLog, ITestBodyWithFileSchemaApiResponse apiResponseLocalVar, FileSchemaTestClass fileSchemaTestClass); + public virtual void AfterTestBodyWithFileSchema(ref bool suppressDefaultLog, ITestBodyWithFileSchemaApiResponse apiResponseLocalVar, FileSchemaTestClass fileSchemaTestClass) { } /// /// Logs exceptions that occur while retrieving the server response @@ -3215,7 +3215,7 @@ private void OnErrorTestBodyWithFileSchemaDefaultImplementation(Exception except /// /// /// - partial void OnErrorTestBodyWithFileSchema(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, FileSchemaTestClass fileSchemaTestClass); + public virtual 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`. @@ -3328,7 +3328,7 @@ public TestBodyWithFileSchemaApiResponse(ILogger /// Returns true if the response is 200 Ok @@ -3344,10 +3344,10 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } - partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); + public virtual void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode) { } } - partial void FormatTestBodyWithQueryParams(ref string query, User user); + public virtual void FormatTestBodyWithQueryParams(ref string query, User user) { } /// /// Validates the request parameters @@ -3385,7 +3385,7 @@ private void AfterTestBodyWithQueryParamsDefaultImplementation(ITestBodyWithQuer /// /// /// - partial void AfterTestBodyWithQueryParams(ref bool suppressDefaultLog, ITestBodyWithQueryParamsApiResponse apiResponseLocalVar, string query, User user); + public virtual void AfterTestBodyWithQueryParams(ref bool suppressDefaultLog, ITestBodyWithQueryParamsApiResponse apiResponseLocalVar, string query, User user) { } /// /// Logs exceptions that occur while retrieving the server response @@ -3412,7 +3412,7 @@ private void OnErrorTestBodyWithQueryParamsDefaultImplementation(Exception excep /// /// /// - partial void OnErrorTestBodyWithQueryParams(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, string query, User user); + public virtual void OnErrorTestBodyWithQueryParams(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, string query, User user) { } /// /// @@ -3533,7 +3533,7 @@ public TestBodyWithQueryParamsApiResponse(ILogger /// Returns true if the response is 200 Ok @@ -3549,10 +3549,10 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } - partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); + public virtual void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode) { } } - partial void FormatTestClientModel(ModelClient modelClient); + public virtual void FormatTestClientModel(ModelClient modelClient) { } /// /// Validates the request parameters @@ -3584,7 +3584,7 @@ private void AfterTestClientModelDefaultImplementation(ITestClientModelApiRespon /// /// /// - partial void AfterTestClientModel(ref bool suppressDefaultLog, ITestClientModelApiResponse apiResponseLocalVar, ModelClient modelClient); + public virtual void AfterTestClientModel(ref bool suppressDefaultLog, ITestClientModelApiResponse apiResponseLocalVar, ModelClient modelClient) { } /// /// Logs exceptions that occur while retrieving the server response @@ -3609,7 +3609,7 @@ private void OnErrorTestClientModelDefaultImplementation(Exception exceptionLoca /// /// /// - partial void OnErrorTestClientModel(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, ModelClient modelClient); + public virtual void OnErrorTestClientModel(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, ModelClient modelClient) { } /// /// To test \"client\" model To test \"client\" model @@ -3730,7 +3730,7 @@ public TestClientModelApiResponse(ILogger logger, Sy OnCreated(httpRequestMessage, httpResponseMessage); } - partial void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage); + public virtual void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage) { } /// /// Returns true if the response is 200 Ok @@ -3778,10 +3778,10 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } - partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); + public virtual void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode) { } } - partial void FormatTestEndpointParameters(ref decimal number, ref string patternWithoutDelimiter, ref byte[] varByte, ref double varDouble, ref Option binary, ref Option callback, ref Option date, ref Option dateTime, ref Option int32, ref Option int64, ref Option integer, ref Option password, ref Option varFloat, ref Option varString); + public virtual void FormatTestEndpointParameters(ref decimal number, ref string patternWithoutDelimiter, ref byte[] varByte, ref double varDouble, ref Option binary, ref Option callback, ref Option date, ref Option dateTime, ref Option int32, ref Option int64, ref Option integer, ref Option password, ref Option varFloat, ref Option varString) { } /// /// Validates the request parameters @@ -3859,7 +3859,7 @@ private void AfterTestEndpointParametersDefaultImplementation(ITestEndpointParam /// /// /// - partial void AfterTestEndpointParameters(ref bool suppressDefaultLog, ITestEndpointParametersApiResponse apiResponseLocalVar, 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); + public virtual void AfterTestEndpointParameters(ref bool suppressDefaultLog, ITestEndpointParametersApiResponse apiResponseLocalVar, 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) { } /// /// Logs exceptions that occur while retrieving the server response @@ -3910,7 +3910,7 @@ private void OnErrorTestEndpointParametersDefaultImplementation(Exception except /// /// /// - 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); + public virtual 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 假端點 偽のエンドポイント 가짜 엔드 포인트 @@ -4102,7 +4102,7 @@ public TestEndpointParametersApiResponse(ILogger /// Returns true if the response is 400 BadRequest @@ -4124,10 +4124,10 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } - partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); + public virtual void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode) { } } - partial void FormatTestEnumParameters(ref Option enumFormString, Option> enumFormStringArray, ref Option enumHeaderString, Option> enumHeaderStringArray, ref Option enumQueryDouble, ref Option enumQueryInteger, ref Option enumQueryString, Option> enumQueryStringArray); + public virtual void FormatTestEnumParameters(ref Option enumFormString, Option> enumFormStringArray, ref Option enumHeaderString, Option> enumHeaderStringArray, ref Option enumQueryDouble, ref Option enumQueryInteger, ref Option enumQueryString, Option> enumQueryStringArray) { } /// /// Validates the request parameters @@ -4193,7 +4193,7 @@ private void AfterTestEnumParametersDefaultImplementation(ITestEnumParametersApi /// /// /// - partial void AfterTestEnumParameters(ref bool suppressDefaultLog, ITestEnumParametersApiResponse apiResponseLocalVar, Option enumFormString, Option> enumFormStringArray, Option enumHeaderString, Option> enumHeaderStringArray, Option enumQueryDouble, Option enumQueryInteger, Option enumQueryString, Option> enumQueryStringArray); + public virtual void AfterTestEnumParameters(ref bool suppressDefaultLog, ITestEnumParametersApiResponse apiResponseLocalVar, Option enumFormString, Option> enumFormStringArray, Option enumHeaderString, Option> enumHeaderStringArray, Option enumQueryDouble, Option enumQueryInteger, Option enumQueryString, Option> enumQueryStringArray) { } /// /// Logs exceptions that occur while retrieving the server response @@ -4232,7 +4232,7 @@ private void OnErrorTestEnumParametersDefaultImplementation(Exception exceptionL /// /// /// - 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); + public virtual 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 @@ -4389,7 +4389,7 @@ public TestEnumParametersApiResponse(ILogger logg OnCreated(httpRequestMessage, httpResponseMessage); } - partial void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage); + public virtual void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage) { } /// /// Returns true if the response is 400 BadRequest @@ -4411,10 +4411,10 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } - partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); + public virtual void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode) { } } - partial void FormatTestGroupParameters(ref bool requiredBooleanGroup, ref long requiredInt64Group, ref int requiredStringGroup, ref Option booleanGroup, ref Option int64Group, ref Option stringGroup); + public virtual void FormatTestGroupParameters(ref bool requiredBooleanGroup, ref long requiredInt64Group, ref int requiredStringGroup, ref Option booleanGroup, ref Option int64Group, ref Option stringGroup) { } /// /// Processes the server response @@ -4445,7 +4445,7 @@ private void AfterTestGroupParametersDefaultImplementation(ITestGroupParametersA /// /// /// - partial void AfterTestGroupParameters(ref bool suppressDefaultLog, ITestGroupParametersApiResponse apiResponseLocalVar, bool requiredBooleanGroup, long requiredInt64Group, int requiredStringGroup, Option booleanGroup, Option int64Group, Option stringGroup); + public virtual void AfterTestGroupParameters(ref bool suppressDefaultLog, ITestGroupParametersApiResponse apiResponseLocalVar, bool requiredBooleanGroup, long requiredInt64Group, int requiredStringGroup, Option booleanGroup, Option int64Group, Option stringGroup) { } /// /// Logs exceptions that occur while retrieving the server response @@ -4480,7 +4480,7 @@ private void OnErrorTestGroupParametersDefaultImplementation(Exception exception /// /// /// - partial void OnErrorTestGroupParameters(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, bool requiredBooleanGroup, long requiredInt64Group, int requiredStringGroup, Option booleanGroup, Option int64Group, Option stringGroup); + public virtual 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) @@ -4616,7 +4616,7 @@ public TestGroupParametersApiResponse(ILogger lo OnCreated(httpRequestMessage, httpResponseMessage); } - partial void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage); + public virtual void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage) { } /// /// Returns true if the response is 400 BadRequest @@ -4632,10 +4632,10 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } - partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); + public virtual void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode) { } } - partial void FormatTestInlineAdditionalProperties(Dictionary requestBody); + public virtual void FormatTestInlineAdditionalProperties(Dictionary requestBody) { } /// /// Validates the request parameters @@ -4667,7 +4667,7 @@ private void AfterTestInlineAdditionalPropertiesDefaultImplementation(ITestInlin /// /// /// - partial void AfterTestInlineAdditionalProperties(ref bool suppressDefaultLog, ITestInlineAdditionalPropertiesApiResponse apiResponseLocalVar, Dictionary requestBody); + public virtual void AfterTestInlineAdditionalProperties(ref bool suppressDefaultLog, ITestInlineAdditionalPropertiesApiResponse apiResponseLocalVar, Dictionary requestBody) { } /// /// Logs exceptions that occur while retrieving the server response @@ -4692,7 +4692,7 @@ private void OnErrorTestInlineAdditionalPropertiesDefaultImplementation(Exceptio /// /// /// - partial void OnErrorTestInlineAdditionalProperties(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, Dictionary requestBody); + public virtual void OnErrorTestInlineAdditionalProperties(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, Dictionary requestBody) { } /// /// test inline additionalProperties @@ -4805,7 +4805,7 @@ public TestInlineAdditionalPropertiesApiResponse(ILogger /// Returns true if the response is 200 Ok @@ -4821,10 +4821,10 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } - partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); + public virtual void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode) { } } - partial void FormatTestInlineFreeformAdditionalProperties(TestInlineFreeformAdditionalPropertiesRequest testInlineFreeformAdditionalPropertiesRequest); + public virtual void FormatTestInlineFreeformAdditionalProperties(TestInlineFreeformAdditionalPropertiesRequest testInlineFreeformAdditionalPropertiesRequest) { } /// /// Validates the request parameters @@ -4856,7 +4856,7 @@ private void AfterTestInlineFreeformAdditionalPropertiesDefaultImplementation(IT /// /// /// - partial void AfterTestInlineFreeformAdditionalProperties(ref bool suppressDefaultLog, ITestInlineFreeformAdditionalPropertiesApiResponse apiResponseLocalVar, TestInlineFreeformAdditionalPropertiesRequest testInlineFreeformAdditionalPropertiesRequest); + public virtual void AfterTestInlineFreeformAdditionalProperties(ref bool suppressDefaultLog, ITestInlineFreeformAdditionalPropertiesApiResponse apiResponseLocalVar, TestInlineFreeformAdditionalPropertiesRequest testInlineFreeformAdditionalPropertiesRequest) { } /// /// Logs exceptions that occur while retrieving the server response @@ -4881,7 +4881,7 @@ private void OnErrorTestInlineFreeformAdditionalPropertiesDefaultImplementation( /// /// /// - partial void OnErrorTestInlineFreeformAdditionalProperties(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, TestInlineFreeformAdditionalPropertiesRequest testInlineFreeformAdditionalPropertiesRequest); + public virtual void OnErrorTestInlineFreeformAdditionalProperties(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, TestInlineFreeformAdditionalPropertiesRequest testInlineFreeformAdditionalPropertiesRequest) { } /// /// test inline free-form additionalProperties @@ -4994,7 +4994,7 @@ public TestInlineFreeformAdditionalPropertiesApiResponse(ILogger /// Returns true if the response is 200 Ok @@ -5010,10 +5010,10 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } - partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); + public virtual void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode) { } } - partial void FormatTestJsonFormData(ref string param, ref string param2); + public virtual void FormatTestJsonFormData(ref string param, ref string param2) { } /// /// Validates the request parameters @@ -5051,7 +5051,7 @@ private void AfterTestJsonFormDataDefaultImplementation(ITestJsonFormDataApiResp /// /// /// - partial void AfterTestJsonFormData(ref bool suppressDefaultLog, ITestJsonFormDataApiResponse apiResponseLocalVar, string param, string param2); + public virtual void AfterTestJsonFormData(ref bool suppressDefaultLog, ITestJsonFormDataApiResponse apiResponseLocalVar, string param, string param2) { } /// /// Logs exceptions that occur while retrieving the server response @@ -5078,7 +5078,7 @@ private void OnErrorTestJsonFormDataDefaultImplementation(Exception exceptionLoc /// /// /// - partial void OnErrorTestJsonFormData(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, string param, string param2); + public virtual void OnErrorTestJsonFormData(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, string param, string param2) { } /// /// test json serialization of form data @@ -5201,7 +5201,7 @@ public TestJsonFormDataApiResponse(ILogger logger, OnCreated(httpRequestMessage, httpResponseMessage); } - partial void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage); + public virtual void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage) { } /// /// Returns true if the response is 200 Ok @@ -5217,10 +5217,10 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } - partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); + public virtual void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode) { } } - partial void FormatTestQueryParameterCollectionFormat(List context, List http, List ioutil, List pipe, ref string requiredNotNullable, List url, ref Option notRequiredNotNullable, ref Option notRequiredNullable, ref string requiredNullable); + public virtual void FormatTestQueryParameterCollectionFormat(List context, List http, List ioutil, List pipe, ref string requiredNotNullable, List url, ref Option notRequiredNotNullable, ref Option notRequiredNullable, ref string requiredNullable) { } /// /// Validates the request parameters @@ -5292,7 +5292,7 @@ private void AfterTestQueryParameterCollectionFormatDefaultImplementation(ITestQ /// /// /// - partial void AfterTestQueryParameterCollectionFormat(ref bool suppressDefaultLog, ITestQueryParameterCollectionFormatApiResponse apiResponseLocalVar, List context, List http, List ioutil, List pipe, string requiredNotNullable, List url, Option notRequiredNotNullable, Option notRequiredNullable, string requiredNullable); + public virtual void AfterTestQueryParameterCollectionFormat(ref bool suppressDefaultLog, ITestQueryParameterCollectionFormatApiResponse apiResponseLocalVar, List context, List http, List ioutil, List pipe, string requiredNotNullable, List url, Option notRequiredNotNullable, Option notRequiredNullable, string requiredNullable) { } /// /// Logs exceptions that occur while retrieving the server response @@ -5333,7 +5333,7 @@ private void OnErrorTestQueryParameterCollectionFormatDefaultImplementation(Exce /// /// /// - 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); + public virtual 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 @@ -5466,7 +5466,7 @@ public TestQueryParameterCollectionFormatApiResponse(ILogger /// Returns true if the response is 200 Ok @@ -5482,10 +5482,10 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } - partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); + public virtual void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode) { } } - partial void FormatTestStringMapReference(Dictionary requestBody); + public virtual void FormatTestStringMapReference(Dictionary requestBody) { } /// /// Validates the request parameters @@ -5517,7 +5517,7 @@ private void AfterTestStringMapReferenceDefaultImplementation(ITestStringMapRefe /// /// /// - partial void AfterTestStringMapReference(ref bool suppressDefaultLog, ITestStringMapReferenceApiResponse apiResponseLocalVar, Dictionary requestBody); + public virtual void AfterTestStringMapReference(ref bool suppressDefaultLog, ITestStringMapReferenceApiResponse apiResponseLocalVar, Dictionary requestBody) { } /// /// Logs exceptions that occur while retrieving the server response @@ -5542,7 +5542,7 @@ private void OnErrorTestStringMapReferenceDefaultImplementation(Exception except /// /// /// - partial void OnErrorTestStringMapReference(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, Dictionary requestBody); + public virtual void OnErrorTestStringMapReference(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, Dictionary requestBody) { } /// /// test referenced string map @@ -5655,7 +5655,7 @@ public TestStringMapReferenceApiResponse(ILogger /// Returns true if the response is 200 Ok @@ -5671,7 +5671,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } - partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); + public virtual void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode) { } } } } 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 010a227c8b27..bb046ae443a5 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 @@ -170,7 +170,7 @@ public FakeClassnameTags123Api(ILogger logger, ILoggerF OauthTokenProvider = oauthTokenProvider; } - partial void FormatTestClassname(ModelClient modelClient); + public virtual void FormatTestClassname(ModelClient modelClient) { } /// /// Validates the request parameters @@ -202,7 +202,7 @@ private void AfterTestClassnameDefaultImplementation(ITestClassnameApiResponse a /// /// /// - partial void AfterTestClassname(ref bool suppressDefaultLog, ITestClassnameApiResponse apiResponseLocalVar, ModelClient modelClient); + public virtual void AfterTestClassname(ref bool suppressDefaultLog, ITestClassnameApiResponse apiResponseLocalVar, ModelClient modelClient) { } /// /// Logs exceptions that occur while retrieving the server response @@ -227,7 +227,7 @@ private void OnErrorTestClassnameDefaultImplementation(Exception exceptionLocalV /// /// /// - partial void OnErrorTestClassname(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, ModelClient modelClient); + public virtual 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 @@ -361,7 +361,7 @@ public TestClassnameApiResponse(ILogger logger, System OnCreated(httpRequestMessage, httpResponseMessage); } - partial void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage); + public virtual void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage) { } /// /// Returns true if the response is 200 Ok @@ -409,7 +409,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } - partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); + public virtual void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode) { } } } } 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 e86b55647135..7e2e1cc9a555 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 @@ -674,7 +674,7 @@ public PetApi(ILogger logger, ILoggerFactory loggerFactory, HttpClient h OauthTokenProvider = oauthTokenProvider; } - partial void FormatAddPet(Pet pet); + public virtual void FormatAddPet(Pet pet) { } /// /// Validates the request parameters @@ -706,7 +706,7 @@ private void AfterAddPetDefaultImplementation(IAddPetApiResponse apiResponseLoca /// /// /// - partial void AfterAddPet(ref bool suppressDefaultLog, IAddPetApiResponse apiResponseLocalVar, Pet pet); + public virtual void AfterAddPet(ref bool suppressDefaultLog, IAddPetApiResponse apiResponseLocalVar, Pet pet) { } /// /// Logs exceptions that occur while retrieving the server response @@ -731,7 +731,7 @@ private void OnErrorAddPetDefaultImplementation(Exception exceptionLocalVar, str /// /// /// - partial void OnErrorAddPet(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, Pet pet); + public virtual void OnErrorAddPet(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, Pet pet) { } /// /// Add a new pet to the store @@ -866,7 +866,7 @@ public AddPetApiResponse(ILogger logger, System.Net.Http.Http OnCreated(httpRequestMessage, httpResponseMessage); } - partial void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage); + public virtual void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage) { } /// /// Returns true if the response is 405 MethodNotAllowed @@ -882,10 +882,10 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } - partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); + public virtual void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode) { } } - partial void FormatDeletePet(ref long petId, ref Option apiKey); + public virtual void FormatDeletePet(ref long petId, ref Option apiKey) { } /// /// Validates the request parameters @@ -919,7 +919,7 @@ private void AfterDeletePetDefaultImplementation(IDeletePetApiResponse apiRespon /// /// /// - partial void AfterDeletePet(ref bool suppressDefaultLog, IDeletePetApiResponse apiResponseLocalVar, long petId, Option apiKey); + public virtual void AfterDeletePet(ref bool suppressDefaultLog, IDeletePetApiResponse apiResponseLocalVar, long petId, Option apiKey) { } /// /// Logs exceptions that occur while retrieving the server response @@ -946,7 +946,7 @@ private void OnErrorDeletePetDefaultImplementation(Exception exceptionLocalVar, /// /// /// - partial void OnErrorDeletePet(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, long petId, Option apiKey); + public virtual void OnErrorDeletePet(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, long petId, Option apiKey) { } /// /// Deletes a pet @@ -1062,7 +1062,7 @@ public DeletePetApiResponse(ILogger logger, System.Net.Htt OnCreated(httpRequestMessage, httpResponseMessage); } - partial void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage); + public virtual void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage) { } /// /// Returns true if the response is 400 BadRequest @@ -1078,10 +1078,10 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } - partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); + public virtual void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode) { } } - partial void FormatFindPetsByStatus(List status); + public virtual void FormatFindPetsByStatus(List status) { } /// /// Validates the request parameters @@ -1113,7 +1113,7 @@ private void AfterFindPetsByStatusDefaultImplementation(IFindPetsByStatusApiResp /// /// /// - partial void AfterFindPetsByStatus(ref bool suppressDefaultLog, IFindPetsByStatusApiResponse apiResponseLocalVar, List status); + public virtual void AfterFindPetsByStatus(ref bool suppressDefaultLog, IFindPetsByStatusApiResponse apiResponseLocalVar, List status) { } /// /// Logs exceptions that occur while retrieving the server response @@ -1138,7 +1138,7 @@ private void OnErrorFindPetsByStatusDefaultImplementation(Exception exceptionLoc /// /// /// - partial void OnErrorFindPetsByStatus(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, List status); + public virtual 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 @@ -1274,7 +1274,7 @@ public FindPetsByStatusApiResponse(ILogger logger, OnCreated(httpRequestMessage, httpResponseMessage); } - partial void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage); + public virtual void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage) { } /// /// Returns true if the response is 200 Ok @@ -1354,10 +1354,10 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } - partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); + public virtual void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode) { } } - partial void FormatFindPetsByTags(List tags); + public virtual void FormatFindPetsByTags(List tags) { } /// /// Validates the request parameters @@ -1389,7 +1389,7 @@ private void AfterFindPetsByTagsDefaultImplementation(IFindPetsByTagsApiResponse /// /// /// - partial void AfterFindPetsByTags(ref bool suppressDefaultLog, IFindPetsByTagsApiResponse apiResponseLocalVar, List tags); + public virtual void AfterFindPetsByTags(ref bool suppressDefaultLog, IFindPetsByTagsApiResponse apiResponseLocalVar, List tags) { } /// /// Logs exceptions that occur while retrieving the server response @@ -1414,7 +1414,7 @@ private void OnErrorFindPetsByTagsDefaultImplementation(Exception exceptionLocal /// /// /// - partial void OnErrorFindPetsByTags(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, List tags); + public virtual 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. @@ -1550,7 +1550,7 @@ public FindPetsByTagsApiResponse(ILogger logger, Syst OnCreated(httpRequestMessage, httpResponseMessage); } - partial void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage); + public virtual void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage) { } /// /// Returns true if the response is 200 Ok @@ -1604,10 +1604,10 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } - partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); + public virtual void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode) { } } - partial void FormatGetPetById(ref long petId); + public virtual void FormatGetPetById(ref long petId) { } /// /// Processes the server response @@ -1628,7 +1628,7 @@ private void AfterGetPetByIdDefaultImplementation(IGetPetByIdApiResponse apiResp /// /// /// - partial void AfterGetPetById(ref bool suppressDefaultLog, IGetPetByIdApiResponse apiResponseLocalVar, long petId); + public virtual void AfterGetPetById(ref bool suppressDefaultLog, IGetPetByIdApiResponse apiResponseLocalVar, long petId) { } /// /// Logs exceptions that occur while retrieving the server response @@ -1653,7 +1653,7 @@ private void OnErrorGetPetByIdDefaultImplementation(Exception exceptionLocalVar, /// /// /// - partial void OnErrorGetPetById(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, long petId); + public virtual void OnErrorGetPetById(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, long petId) { } /// /// Find pet by ID Returns a single pet @@ -1778,7 +1778,7 @@ public GetPetByIdApiResponse(ILogger logger, System.Net.H OnCreated(httpRequestMessage, httpResponseMessage); } - partial void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage); + public virtual void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage) { } /// /// Returns true if the response is 200 Ok @@ -1838,10 +1838,10 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } - partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); + public virtual void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode) { } } - partial void FormatUpdatePet(Pet pet); + public virtual void FormatUpdatePet(Pet pet) { } /// /// Validates the request parameters @@ -1873,7 +1873,7 @@ private void AfterUpdatePetDefaultImplementation(IUpdatePetApiResponse apiRespon /// /// /// - partial void AfterUpdatePet(ref bool suppressDefaultLog, IUpdatePetApiResponse apiResponseLocalVar, Pet pet); + public virtual void AfterUpdatePet(ref bool suppressDefaultLog, IUpdatePetApiResponse apiResponseLocalVar, Pet pet) { } /// /// Logs exceptions that occur while retrieving the server response @@ -1898,7 +1898,7 @@ private void OnErrorUpdatePetDefaultImplementation(Exception exceptionLocalVar, /// /// /// - partial void OnErrorUpdatePet(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, Pet pet); + public virtual void OnErrorUpdatePet(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, Pet pet) { } /// /// Update an existing pet @@ -2033,7 +2033,7 @@ public UpdatePetApiResponse(ILogger logger, System.Net.Htt OnCreated(httpRequestMessage, httpResponseMessage); } - partial void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage); + public virtual void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage) { } /// /// Returns true if the response is 400 BadRequest @@ -2061,10 +2061,10 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } - partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); + public virtual void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode) { } } - partial void FormatUpdatePetWithForm(ref long petId, ref Option name, ref Option status); + public virtual void FormatUpdatePetWithForm(ref long petId, ref Option name, ref Option status) { } /// /// Validates the request parameters @@ -2104,7 +2104,7 @@ private void AfterUpdatePetWithFormDefaultImplementation(IUpdatePetWithFormApiRe /// /// /// - partial void AfterUpdatePetWithForm(ref bool suppressDefaultLog, IUpdatePetWithFormApiResponse apiResponseLocalVar, long petId, Option name, Option status); + public virtual void AfterUpdatePetWithForm(ref bool suppressDefaultLog, IUpdatePetWithFormApiResponse apiResponseLocalVar, long petId, Option name, Option status) { } /// /// Logs exceptions that occur while retrieving the server response @@ -2133,7 +2133,7 @@ private void OnErrorUpdatePetWithFormDefaultImplementation(Exception exceptionLo /// /// /// - partial void OnErrorUpdatePetWithForm(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, long petId, Option name, Option status); + public virtual 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 @@ -2270,7 +2270,7 @@ public UpdatePetWithFormApiResponse(ILogger logger OnCreated(httpRequestMessage, httpResponseMessage); } - partial void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage); + public virtual void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage) { } /// /// Returns true if the response is 405 MethodNotAllowed @@ -2286,10 +2286,10 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } - partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); + public virtual void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode) { } } - partial void FormatUploadFile(ref long petId, ref Option additionalMetadata, ref Option file); + public virtual void FormatUploadFile(ref long petId, ref Option additionalMetadata, ref Option file) { } /// /// Validates the request parameters @@ -2329,7 +2329,7 @@ private void AfterUploadFileDefaultImplementation(IUploadFileApiResponse apiResp /// /// /// - partial void AfterUploadFile(ref bool suppressDefaultLog, IUploadFileApiResponse apiResponseLocalVar, long petId, Option additionalMetadata, Option file); + public virtual void AfterUploadFile(ref bool suppressDefaultLog, IUploadFileApiResponse apiResponseLocalVar, long petId, Option additionalMetadata, Option file) { } /// /// Logs exceptions that occur while retrieving the server response @@ -2358,7 +2358,7 @@ private void OnErrorUploadFileDefaultImplementation(Exception exceptionLocalVar, /// /// /// - partial void OnErrorUploadFile(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, long petId, Option additionalMetadata, Option file); + public virtual void OnErrorUploadFile(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, long petId, Option additionalMetadata, Option file) { } /// /// uploads an image @@ -2503,7 +2503,7 @@ public UploadFileApiResponse(ILogger logger, System.Net.H OnCreated(httpRequestMessage, httpResponseMessage); } - partial void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage); + public virtual void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage) { } /// /// Returns true if the response is 200 Ok @@ -2551,10 +2551,10 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } - partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); + public virtual void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode) { } } - partial void FormatUploadFileWithRequiredFile(ref long petId, ref System.IO.Stream requiredFile, ref Option additionalMetadata); + public virtual void FormatUploadFileWithRequiredFile(ref long petId, ref System.IO.Stream requiredFile, ref Option additionalMetadata) { } /// /// Validates the request parameters @@ -2594,7 +2594,7 @@ private void AfterUploadFileWithRequiredFileDefaultImplementation(IUploadFileWit /// /// /// - partial void AfterUploadFileWithRequiredFile(ref bool suppressDefaultLog, IUploadFileWithRequiredFileApiResponse apiResponseLocalVar, long petId, System.IO.Stream requiredFile, Option additionalMetadata); + public virtual void AfterUploadFileWithRequiredFile(ref bool suppressDefaultLog, IUploadFileWithRequiredFileApiResponse apiResponseLocalVar, long petId, System.IO.Stream requiredFile, Option additionalMetadata) { } /// /// Logs exceptions that occur while retrieving the server response @@ -2623,7 +2623,7 @@ private void OnErrorUploadFileWithRequiredFileDefaultImplementation(Exception ex /// /// /// - partial void OnErrorUploadFileWithRequiredFile(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, long petId, System.IO.Stream requiredFile, Option additionalMetadata); + public virtual void OnErrorUploadFileWithRequiredFile(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, long petId, System.IO.Stream requiredFile, Option additionalMetadata) { } /// /// uploads an image (required) @@ -2768,7 +2768,7 @@ public UploadFileWithRequiredFileApiResponse(ILogger /// Returns true if the response is 200 Ok @@ -2816,7 +2816,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } - partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); + public virtual void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode) { } } } } 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 2cb0523731c5..dd6999ab6093 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 @@ -357,7 +357,7 @@ public StoreApi(ILogger logger, ILoggerFactory loggerFactory, HttpClie OauthTokenProvider = oauthTokenProvider; } - partial void FormatDeleteOrder(ref string orderId); + public virtual void FormatDeleteOrder(ref string orderId) { } /// /// Validates the request parameters @@ -389,7 +389,7 @@ private void AfterDeleteOrderDefaultImplementation(IDeleteOrderApiResponse apiRe /// /// /// - partial void AfterDeleteOrder(ref bool suppressDefaultLog, IDeleteOrderApiResponse apiResponseLocalVar, string orderId); + public virtual void AfterDeleteOrder(ref bool suppressDefaultLog, IDeleteOrderApiResponse apiResponseLocalVar, string orderId) { } /// /// Logs exceptions that occur while retrieving the server response @@ -414,7 +414,7 @@ private void OnErrorDeleteOrderDefaultImplementation(Exception exceptionLocalVar /// /// /// - partial void OnErrorDeleteOrder(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, string orderId); + public virtual 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 @@ -514,7 +514,7 @@ public DeleteOrderApiResponse(ILogger logger, System.Net OnCreated(httpRequestMessage, httpResponseMessage); } - partial void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage); + public virtual void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage) { } /// /// Returns true if the response is 400 BadRequest @@ -536,7 +536,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } - partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); + public virtual void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode) { } } /// @@ -556,7 +556,7 @@ private void AfterGetInventoryDefaultImplementation(IGetInventoryApiResponse api /// /// /// - partial void AfterGetInventory(ref bool suppressDefaultLog, IGetInventoryApiResponse apiResponseLocalVar); + public virtual void AfterGetInventory(ref bool suppressDefaultLog, IGetInventoryApiResponse apiResponseLocalVar) { } /// /// Logs exceptions that occur while retrieving the server response @@ -579,7 +579,7 @@ private void OnErrorGetInventoryDefaultImplementation(Exception exceptionLocalVa /// /// /// - partial void OnErrorGetInventory(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar); + public virtual void OnErrorGetInventory(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar) { } /// /// Returns pet inventories by status Returns a map of status codes to quantities @@ -690,7 +690,7 @@ public GetInventoryApiResponse(ILogger logger, System.N OnCreated(httpRequestMessage, httpResponseMessage); } - partial void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage); + public virtual void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage) { } /// /// Returns true if the response is 200 Ok @@ -738,10 +738,10 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } - partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); + public virtual void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode) { } } - partial void FormatGetOrderById(ref long orderId); + public virtual void FormatGetOrderById(ref long orderId) { } /// /// Processes the server response @@ -762,7 +762,7 @@ private void AfterGetOrderByIdDefaultImplementation(IGetOrderByIdApiResponse api /// /// /// - partial void AfterGetOrderById(ref bool suppressDefaultLog, IGetOrderByIdApiResponse apiResponseLocalVar, long orderId); + public virtual void AfterGetOrderById(ref bool suppressDefaultLog, IGetOrderByIdApiResponse apiResponseLocalVar, long orderId) { } /// /// Logs exceptions that occur while retrieving the server response @@ -787,7 +787,7 @@ private void OnErrorGetOrderByIdDefaultImplementation(Exception exceptionLocalVa /// /// /// - partial void OnErrorGetOrderById(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, long orderId); + public virtual 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 @@ -895,7 +895,7 @@ public GetOrderByIdApiResponse(ILogger logger, System.N OnCreated(httpRequestMessage, httpResponseMessage); } - partial void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage); + public virtual void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage) { } /// /// Returns true if the response is 200 Ok @@ -955,10 +955,10 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } - partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); + public virtual void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode) { } } - partial void FormatPlaceOrder(Order order); + public virtual void FormatPlaceOrder(Order order) { } /// /// Validates the request parameters @@ -990,7 +990,7 @@ private void AfterPlaceOrderDefaultImplementation(IPlaceOrderApiResponse apiResp /// /// /// - partial void AfterPlaceOrder(ref bool suppressDefaultLog, IPlaceOrderApiResponse apiResponseLocalVar, Order order); + public virtual void AfterPlaceOrder(ref bool suppressDefaultLog, IPlaceOrderApiResponse apiResponseLocalVar, Order order) { } /// /// Logs exceptions that occur while retrieving the server response @@ -1015,7 +1015,7 @@ private void OnErrorPlaceOrderDefaultImplementation(Exception exceptionLocalVar, /// /// /// - partial void OnErrorPlaceOrder(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, Order order); + public virtual void OnErrorPlaceOrder(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, Order order) { } /// /// Place an order for a pet @@ -1137,7 +1137,7 @@ public PlaceOrderApiResponse(ILogger logger, System.Net.H OnCreated(httpRequestMessage, httpResponseMessage); } - partial void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage); + public virtual void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage) { } /// /// Returns true if the response is 200 Ok @@ -1191,7 +1191,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } - partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); + public virtual void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode) { } } } } 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 46a87aed2c07..88d7459aa526 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 @@ -599,7 +599,7 @@ public UserApi(ILogger logger, ILoggerFactory loggerFactory, HttpClient OauthTokenProvider = oauthTokenProvider; } - partial void FormatCreateUser(User user); + public virtual void FormatCreateUser(User user) { } /// /// Validates the request parameters @@ -631,7 +631,7 @@ private void AfterCreateUserDefaultImplementation(ICreateUserApiResponse apiResp /// /// /// - partial void AfterCreateUser(ref bool suppressDefaultLog, ICreateUserApiResponse apiResponseLocalVar, User user); + public virtual void AfterCreateUser(ref bool suppressDefaultLog, ICreateUserApiResponse apiResponseLocalVar, User user) { } /// /// Logs exceptions that occur while retrieving the server response @@ -656,7 +656,7 @@ private void OnErrorCreateUserDefaultImplementation(Exception exceptionLocalVar, /// /// /// - partial void OnErrorCreateUser(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, User user); + public virtual 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. @@ -769,7 +769,7 @@ public CreateUserApiResponse(ILogger logger, System.Net.H OnCreated(httpRequestMessage, httpResponseMessage); } - partial void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage); + public virtual void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage) { } /// /// Returns true if the response is the default response type @@ -785,10 +785,10 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } - partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); + public virtual void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode) { } } - partial void FormatCreateUsersWithArrayInput(List user); + public virtual void FormatCreateUsersWithArrayInput(List user) { } /// /// Validates the request parameters @@ -820,7 +820,7 @@ private void AfterCreateUsersWithArrayInputDefaultImplementation(ICreateUsersWit /// /// /// - partial void AfterCreateUsersWithArrayInput(ref bool suppressDefaultLog, ICreateUsersWithArrayInputApiResponse apiResponseLocalVar, List user); + public virtual void AfterCreateUsersWithArrayInput(ref bool suppressDefaultLog, ICreateUsersWithArrayInputApiResponse apiResponseLocalVar, List user) { } /// /// Logs exceptions that occur while retrieving the server response @@ -845,7 +845,7 @@ private void OnErrorCreateUsersWithArrayInputDefaultImplementation(Exception exc /// /// /// - partial void OnErrorCreateUsersWithArrayInput(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, List user); + public virtual void OnErrorCreateUsersWithArrayInput(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, List user) { } /// /// Creates list of users with given input array @@ -958,7 +958,7 @@ public CreateUsersWithArrayInputApiResponse(ILogger /// Returns true if the response is the default response type @@ -974,10 +974,10 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } - partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); + public virtual void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode) { } } - partial void FormatCreateUsersWithListInput(List user); + public virtual void FormatCreateUsersWithListInput(List user) { } /// /// Validates the request parameters @@ -1009,7 +1009,7 @@ private void AfterCreateUsersWithListInputDefaultImplementation(ICreateUsersWith /// /// /// - partial void AfterCreateUsersWithListInput(ref bool suppressDefaultLog, ICreateUsersWithListInputApiResponse apiResponseLocalVar, List user); + public virtual void AfterCreateUsersWithListInput(ref bool suppressDefaultLog, ICreateUsersWithListInputApiResponse apiResponseLocalVar, List user) { } /// /// Logs exceptions that occur while retrieving the server response @@ -1034,7 +1034,7 @@ private void OnErrorCreateUsersWithListInputDefaultImplementation(Exception exce /// /// /// - partial void OnErrorCreateUsersWithListInput(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, List user); + public virtual void OnErrorCreateUsersWithListInput(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, List user) { } /// /// Creates list of users with given input array @@ -1147,7 +1147,7 @@ public CreateUsersWithListInputApiResponse(ILogger /// Returns true if the response is the default response type @@ -1163,10 +1163,10 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } - partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); + public virtual void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode) { } } - partial void FormatDeleteUser(ref string username); + public virtual void FormatDeleteUser(ref string username) { } /// /// Validates the request parameters @@ -1198,7 +1198,7 @@ private void AfterDeleteUserDefaultImplementation(IDeleteUserApiResponse apiResp /// /// /// - partial void AfterDeleteUser(ref bool suppressDefaultLog, IDeleteUserApiResponse apiResponseLocalVar, string username); + public virtual void AfterDeleteUser(ref bool suppressDefaultLog, IDeleteUserApiResponse apiResponseLocalVar, string username) { } /// /// Logs exceptions that occur while retrieving the server response @@ -1223,7 +1223,7 @@ private void OnErrorDeleteUserDefaultImplementation(Exception exceptionLocalVar, /// /// /// - partial void OnErrorDeleteUser(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, string username); + public virtual 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. @@ -1323,7 +1323,7 @@ public DeleteUserApiResponse(ILogger logger, System.Net.H OnCreated(httpRequestMessage, httpResponseMessage); } - partial void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage); + public virtual void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage) { } /// /// Returns true if the response is 400 BadRequest @@ -1345,10 +1345,10 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } - partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); + public virtual void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode) { } } - partial void FormatGetUserByName(ref string username); + public virtual void FormatGetUserByName(ref string username) { } /// /// Validates the request parameters @@ -1380,7 +1380,7 @@ private void AfterGetUserByNameDefaultImplementation(IGetUserByNameApiResponse a /// /// /// - partial void AfterGetUserByName(ref bool suppressDefaultLog, IGetUserByNameApiResponse apiResponseLocalVar, string username); + public virtual void AfterGetUserByName(ref bool suppressDefaultLog, IGetUserByNameApiResponse apiResponseLocalVar, string username) { } /// /// Logs exceptions that occur while retrieving the server response @@ -1405,7 +1405,7 @@ private void OnErrorGetUserByNameDefaultImplementation(Exception exceptionLocalV /// /// /// - partial void OnErrorGetUserByName(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, string username); + public virtual void OnErrorGetUserByName(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, string username) { } /// /// Get user by user name @@ -1515,7 +1515,7 @@ public GetUserByNameApiResponse(ILogger logger, System OnCreated(httpRequestMessage, httpResponseMessage); } - partial void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage); + public virtual void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage) { } /// /// Returns true if the response is 200 Ok @@ -1619,10 +1619,10 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } - partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); + public virtual void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode) { } } - partial void FormatLoginUser(ref string password, ref string username); + public virtual void FormatLoginUser(ref string password, ref string username) { } /// /// Validates the request parameters @@ -1660,7 +1660,7 @@ private void AfterLoginUserDefaultImplementation(ILoginUserApiResponse apiRespon /// /// /// - partial void AfterLoginUser(ref bool suppressDefaultLog, ILoginUserApiResponse apiResponseLocalVar, string password, string username); + public virtual void AfterLoginUser(ref bool suppressDefaultLog, ILoginUserApiResponse apiResponseLocalVar, string password, string username) { } /// /// Logs exceptions that occur while retrieving the server response @@ -1687,7 +1687,7 @@ private void OnErrorLoginUserDefaultImplementation(Exception exceptionLocalVar, /// /// /// - partial void OnErrorLoginUser(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, string password, string username); + public virtual void OnErrorLoginUser(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, string password, string username) { } /// /// Logs user into the system @@ -1805,7 +1805,7 @@ public LoginUserApiResponse(ILogger logger, System.Net.Htt OnCreated(httpRequestMessage, httpResponseMessage); } - partial void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage); + public virtual void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage) { } /// /// Returns true if the response is 200 Ok @@ -1859,7 +1859,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } - partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); + public virtual void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode) { } } /// @@ -1879,7 +1879,7 @@ private void AfterLogoutUserDefaultImplementation(ILogoutUserApiResponse apiResp /// /// /// - partial void AfterLogoutUser(ref bool suppressDefaultLog, ILogoutUserApiResponse apiResponseLocalVar); + public virtual void AfterLogoutUser(ref bool suppressDefaultLog, ILogoutUserApiResponse apiResponseLocalVar) { } /// /// Logs exceptions that occur while retrieving the server response @@ -1902,7 +1902,7 @@ private void OnErrorLogoutUserDefaultImplementation(Exception exceptionLocalVar, /// /// /// - partial void OnErrorLogoutUser(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar); + public virtual void OnErrorLogoutUser(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar) { } /// /// Logs out current logged in user session @@ -1995,7 +1995,7 @@ public LogoutUserApiResponse(ILogger logger, System.Net.H OnCreated(httpRequestMessage, httpResponseMessage); } - partial void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage); + public virtual void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage) { } /// /// Returns true if the response is the default response type @@ -2011,10 +2011,10 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } - partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); + public virtual void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode) { } } - partial void FormatUpdateUser(User user, ref string username); + public virtual void FormatUpdateUser(User user, ref string username) { } /// /// Validates the request parameters @@ -2052,7 +2052,7 @@ private void AfterUpdateUserDefaultImplementation(IUpdateUserApiResponse apiResp /// /// /// - partial void AfterUpdateUser(ref bool suppressDefaultLog, IUpdateUserApiResponse apiResponseLocalVar, User user, string username); + public virtual void AfterUpdateUser(ref bool suppressDefaultLog, IUpdateUserApiResponse apiResponseLocalVar, User user, string username) { } /// /// Logs exceptions that occur while retrieving the server response @@ -2079,7 +2079,7 @@ private void OnErrorUpdateUserDefaultImplementation(Exception exceptionLocalVar, /// /// /// - partial void OnErrorUpdateUser(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, User user, string username); + public virtual 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. @@ -2195,7 +2195,7 @@ public UpdateUserApiResponse(ILogger logger, System.Net.H OnCreated(httpRequestMessage, httpResponseMessage); } - partial void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage); + public virtual void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage) { } /// /// Returns true if the response is 400 BadRequest @@ -2217,7 +2217,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } - partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); + public virtual void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode) { } } } } diff --git a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Client/ApiResponse`1.cs b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Client/ApiResponse`1.cs index 416f7a04e3d6..26f36afb14be 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Client/ApiResponse`1.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Client/ApiResponse`1.cs @@ -145,7 +145,7 @@ public ApiResponse(global::System.Net.Http.HttpRequestMessage httpRequestMessage OnCreated(httpRequestMessage, httpResponseMessage); } - partial void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage); + public virtual void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage) { } } /// diff --git a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/Activity.cs b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/Activity.cs index a5e4bd35e9bc..7c5af7896600 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/Activity.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/Activity.cs @@ -40,7 +40,7 @@ public Activity(Option /// Used to track the state of ActivityOutputs diff --git a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/ActivityOutputElementRepresentation.cs b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/ActivityOutputElementRepresentation.cs index d7b4374e6a7b..3f53511fff0c 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/ActivityOutputElementRepresentation.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/ActivityOutputElementRepresentation.cs @@ -42,7 +42,7 @@ public ActivityOutputElementRepresentation(Option prop1 = default, Optio OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Used to track the state of Prop1 diff --git a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/AdditionalPropertiesClass.cs b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/AdditionalPropertiesClass.cs index ec17222fbc8f..f1db02649575 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/AdditionalPropertiesClass.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/AdditionalPropertiesClass.cs @@ -54,7 +54,7 @@ public AdditionalPropertiesClass(Option anytype1 = default, Option /// Used to track the state of Anytype1 diff --git a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/Animal.cs b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/Animal.cs index 74cb14f52d91..fb7179ed5b86 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/Animal.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/Animal.cs @@ -40,7 +40,7 @@ public Animal(Option color = default) OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// The discriminator diff --git a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/ApiResponse.cs b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/ApiResponse.cs index 77ec0bd5ed2d..6d2870b461f3 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/ApiResponse.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/ApiResponse.cs @@ -44,7 +44,7 @@ public ApiResponse(Option code = default, Option message = default OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Used to track the state of Code diff --git a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/Apple.cs b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/Apple.cs index df3bc9af06cc..d021ad2d4958 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/Apple.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/Apple.cs @@ -44,7 +44,7 @@ public Apple(Option colorCode = default, Option cultivar = defau OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Used to track the state of ColorCode diff --git a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/AppleReq.cs b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/AppleReq.cs index 1cc72ecd59d3..73f39589fe21 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/AppleReq.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/AppleReq.cs @@ -42,7 +42,7 @@ public AppleReq(string cultivar, Option mealy = default) OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Gets or Sets Cultivar diff --git a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/ArrayOfArrayOfNumberOnly.cs b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/ArrayOfArrayOfNumberOnly.cs index d2398a452eee..697f6c964a19 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/ArrayOfArrayOfNumberOnly.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/ArrayOfArrayOfNumberOnly.cs @@ -40,7 +40,7 @@ public ArrayOfArrayOfNumberOnly(Option>> arrayArrayNumber = d OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Used to track the state of ArrayArrayNumber diff --git a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/ArrayOfNumberOnly.cs b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/ArrayOfNumberOnly.cs index cce8d5d564b6..b1bba9d4e9b1 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/ArrayOfNumberOnly.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/ArrayOfNumberOnly.cs @@ -40,7 +40,7 @@ public ArrayOfNumberOnly(Option> arrayNumber = default) OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Used to track the state of ArrayNumber diff --git a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/ArrayTest.cs b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/ArrayTest.cs index 3fbc72e2f5ab..4200504840ed 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/ArrayTest.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/ArrayTest.cs @@ -44,7 +44,7 @@ public ArrayTest(Option>> arrayArrayOfInteger = default, Option< OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Used to track the state of ArrayArrayOfInteger diff --git a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/Banana.cs b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/Banana.cs index d92ba4ae6aef..cdd4c9cc4ce4 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/Banana.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/Banana.cs @@ -40,7 +40,7 @@ public Banana(Option lengthCm = default) OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Used to track the state of LengthCm diff --git a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/BananaReq.cs b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/BananaReq.cs index c9734cbe3808..371a8d61c67b 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/BananaReq.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/BananaReq.cs @@ -42,7 +42,7 @@ public BananaReq(decimal lengthCm, Option sweet = default) OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Gets or Sets LengthCm diff --git a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/BasquePig.cs b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/BasquePig.cs index 9938d89e008d..3bb04d8e04e1 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/BasquePig.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/BasquePig.cs @@ -40,7 +40,7 @@ public BasquePig(string className) OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Gets or Sets ClassName diff --git a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/Capitalization.cs b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/Capitalization.cs index a1fb0b3eb574..c9d0f8a45227 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/Capitalization.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/Capitalization.cs @@ -50,7 +50,7 @@ public Capitalization(Option aTTNAME = default, Option capitalCa OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Used to track the state of ATT_NAME diff --git a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/Cat.cs b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/Cat.cs index 0ffe1228015d..4b85228b4b74 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/Cat.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/Cat.cs @@ -41,7 +41,7 @@ public Cat(Option color = default, Option declawed = default) : b OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// The discriminator diff --git a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/Category.cs b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/Category.cs index f483d87f36c8..a0dfa1015567 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/Category.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/Category.cs @@ -42,7 +42,7 @@ public Category(Option id = default, string name = @"default-name") OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Used to track the state of Id diff --git a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/ChildCat.cs b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/ChildCat.cs index 2eb5dd8dc35a..c495b86f5c99 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/ChildCat.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/ChildCat.cs @@ -40,7 +40,7 @@ public ChildCat(Option name = default) : base() OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Defines PetType diff --git a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/ClassModel.cs b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/ClassModel.cs index 7c49d7adb55c..e181a808250b 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/ClassModel.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/ClassModel.cs @@ -40,7 +40,7 @@ public ClassModel(Option @class = default) OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Used to track the state of Class diff --git a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/ComplexQuadrilateral.cs b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/ComplexQuadrilateral.cs index 3023a45610e4..9ed7d63b7732 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/ComplexQuadrilateral.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/ComplexQuadrilateral.cs @@ -42,7 +42,7 @@ public ComplexQuadrilateral(string quadrilateralType, string shapeType) OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Gets or Sets QuadrilateralType diff --git a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/DanishPig.cs b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/DanishPig.cs index 14b2ed3b153f..8377e0f76cf5 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/DanishPig.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/DanishPig.cs @@ -40,7 +40,7 @@ public DanishPig(string className) OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Gets or Sets ClassName diff --git a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/DateOnlyClass.cs b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/DateOnlyClass.cs index 1c478cf336df..d67efe6868d1 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/DateOnlyClass.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/DateOnlyClass.cs @@ -40,7 +40,7 @@ public DateOnlyClass(Option dateOnlyProperty = default) OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Used to track the state of DateOnlyProperty diff --git a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/DeprecatedObject.cs b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/DeprecatedObject.cs index 08067c5cc07c..3e5a4c2ed04c 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/DeprecatedObject.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/DeprecatedObject.cs @@ -40,7 +40,7 @@ public DeprecatedObject(Option name = default) OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Used to track the state of Name diff --git a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/Dog.cs b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/Dog.cs index 605dc512434b..f6cb7298cf5f 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/Dog.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/Dog.cs @@ -41,7 +41,7 @@ public Dog(Option breed = default, Option color = default) : bas OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// The discriminator diff --git a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/Drawing.cs b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/Drawing.cs index a853b96144e2..a37514a314cc 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/Drawing.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/Drawing.cs @@ -46,7 +46,7 @@ public Drawing(Option mainShape = default, Option nullable OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Used to track the state of MainShape diff --git a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/EnumArrays.cs b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/EnumArrays.cs index b6716a58e539..7fb174dac22f 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/EnumArrays.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/EnumArrays.cs @@ -42,7 +42,7 @@ public EnumArrays(Option> arrayEnum = default, Op OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Defines ArrayEnum diff --git a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/EnumTest.cs b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/EnumTest.cs index 08e961298725..33ddf1643207 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/EnumTest.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/EnumTest.cs @@ -56,7 +56,7 @@ public EnumTest(EnumStringRequiredEnum enumStringRequired, Option /// Defines EnumStringRequired diff --git a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/EquilateralTriangle.cs b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/EquilateralTriangle.cs index d65c7740e5e8..e68cf480a05f 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/EquilateralTriangle.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/EquilateralTriangle.cs @@ -42,7 +42,7 @@ public EquilateralTriangle(string shapeType, string triangleType) OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Gets or Sets ShapeType diff --git a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/File.cs b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/File.cs index 092f10c09324..0519a20c9bfc 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/File.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/File.cs @@ -40,7 +40,7 @@ public File(Option sourceURI = default) OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Used to track the state of SourceURI diff --git a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/FileSchemaTestClass.cs b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/FileSchemaTestClass.cs index f9d9d9f7a7b8..1924423c7bc7 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/FileSchemaTestClass.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/FileSchemaTestClass.cs @@ -42,7 +42,7 @@ public FileSchemaTestClass(Option file = default, Option> files OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Used to track the state of File diff --git a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/Foo.cs b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/Foo.cs index 3eeca0aa2112..d3fb68454516 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/Foo.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/Foo.cs @@ -40,7 +40,7 @@ public Foo(Option bar = default) OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Used to track the state of Bar diff --git a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/FooGetDefaultResponse.cs b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/FooGetDefaultResponse.cs index c7d043666115..97979c9952d9 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/FooGetDefaultResponse.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/FooGetDefaultResponse.cs @@ -40,7 +40,7 @@ public FooGetDefaultResponse(Option @string = default) OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Used to track the state of String diff --git a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/FormatTest.cs b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/FormatTest.cs index 86d63c7ac5f6..460ee09eae25 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/FormatTest.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/FormatTest.cs @@ -86,7 +86,7 @@ public FormatTest(byte[] @byte, DateTime date, decimal number, string password, OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Gets or Sets Byte diff --git a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/Fruit.cs b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/Fruit.cs index cc8b4530f01c..39f5367f7a2b 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/Fruit.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/Fruit.cs @@ -53,7 +53,7 @@ public Fruit(Banana banana, Option color = default) OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Gets or Sets Apple diff --git a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/FruitReq.cs b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/FruitReq.cs index 1e72875d4d32..fad135111099 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/FruitReq.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/FruitReq.cs @@ -49,7 +49,7 @@ public FruitReq(BananaReq bananaReq) OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Gets or Sets AppleReq diff --git a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/GmFruit.cs b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/GmFruit.cs index 78cb87b61a31..b093b213ea63 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/GmFruit.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/GmFruit.cs @@ -43,7 +43,7 @@ public GmFruit(Option apple, Option banana, Option color OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Used to track the state of Apple diff --git a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/GrandparentAnimal.cs b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/GrandparentAnimal.cs index b23e4826fd6b..6bbb19b1789e 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/GrandparentAnimal.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/GrandparentAnimal.cs @@ -38,7 +38,7 @@ public GrandparentAnimal() OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// The discriminator diff --git a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/HasOnlyReadOnly.cs b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/HasOnlyReadOnly.cs index a4e67f73a8e5..45947ab3cd6a 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/HasOnlyReadOnly.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/HasOnlyReadOnly.cs @@ -42,7 +42,7 @@ internal HasOnlyReadOnly(Option bar = default, Option foo = defa OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Used to track the state of Bar diff --git a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/HealthCheckResult.cs b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/HealthCheckResult.cs index 16afc025fa03..5b841e42fc13 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/HealthCheckResult.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/HealthCheckResult.cs @@ -40,7 +40,7 @@ public HealthCheckResult(Option nullableMessage = default) OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Used to track the state of NullableMessage diff --git a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/IsoscelesTriangle.cs b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/IsoscelesTriangle.cs index cce859524111..651f261659c1 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/IsoscelesTriangle.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/IsoscelesTriangle.cs @@ -42,7 +42,7 @@ public IsoscelesTriangle(string shapeType, string triangleType) OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Gets or Sets ShapeType diff --git a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/List.cs b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/List.cs index 050d58f85c23..ee5738e61a90 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/List.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/List.cs @@ -40,7 +40,7 @@ public List(Option var123List = default) OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Used to track the state of Var123List diff --git a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/LiteralStringClass.cs b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/LiteralStringClass.cs index 522ba51e6cb3..0ab4393a312a 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/LiteralStringClass.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/LiteralStringClass.cs @@ -42,7 +42,7 @@ public LiteralStringClass(Option escapedLiteralString = default, Option< OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Used to track the state of EscapedLiteralString diff --git a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/Mammal.cs b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/Mammal.cs index 267ac8769d31..d9a8cde9cd81 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/Mammal.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/Mammal.cs @@ -59,7 +59,7 @@ public Mammal(Pig pig) OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Gets or Sets Whale diff --git a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/MapTest.cs b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/MapTest.cs index 97588d56888a..c20106d3c894 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/MapTest.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/MapTest.cs @@ -46,7 +46,7 @@ public MapTest(Option> directMap = default, Option /// Defines Inner diff --git a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/MixLog.cs b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/MixLog.cs index d18711f51031..23ded06af5f3 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/MixLog.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/MixLog.cs @@ -102,7 +102,7 @@ public MixLog(string description, DateTime formulaVersionDate, Guid id, DateTime OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Gets or Sets Description diff --git a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/MixedAnyOf.cs b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/MixedAnyOf.cs index c81de3d2f67d..26da905605af 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/MixedAnyOf.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/MixedAnyOf.cs @@ -40,7 +40,7 @@ public MixedAnyOf(Option content = default) OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Used to track the state of Content diff --git a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/MixedAnyOfContent.cs b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/MixedAnyOfContent.cs index 5de026753ef2..4dc98a482ac3 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/MixedAnyOfContent.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/MixedAnyOfContent.cs @@ -47,7 +47,7 @@ public MixedAnyOfContent(Option @string, Option @bool, Option /// Used to track the state of String diff --git a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/MixedOneOf.cs b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/MixedOneOf.cs index 32515bc04405..231aee38015f 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/MixedOneOf.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/MixedOneOf.cs @@ -40,7 +40,7 @@ public MixedOneOf(Option content = default) OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Used to track the state of Content diff --git a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/MixedOneOfContent.cs b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/MixedOneOfContent.cs index 4cb69dae28cd..bd9823fdcbc1 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/MixedOneOfContent.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/MixedOneOfContent.cs @@ -79,7 +79,7 @@ public MixedOneOfContent(MixedSubId mixedSubId) OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Gets or Sets String diff --git a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/MixedPropertiesAndAdditionalPropertiesClass.cs b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/MixedPropertiesAndAdditionalPropertiesClass.cs index 3cef3330300e..11749dd1fe0f 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/MixedPropertiesAndAdditionalPropertiesClass.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/MixedPropertiesAndAdditionalPropertiesClass.cs @@ -46,7 +46,7 @@ public MixedPropertiesAndAdditionalPropertiesClass(Option dateTime = OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Used to track the state of DateTime diff --git a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/MixedSubId.cs b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/MixedSubId.cs index 34198e6f437a..82f0e9116050 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/MixedSubId.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/MixedSubId.cs @@ -40,7 +40,7 @@ public MixedSubId(Option id = default) OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Used to track the state of Id diff --git a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/Model200Response.cs b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/Model200Response.cs index bf37307ad965..33d75857f84d 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/Model200Response.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/Model200Response.cs @@ -42,7 +42,7 @@ public Model200Response(Option @class = default, Option name = def OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Used to track the state of Class diff --git a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/ModelClient.cs b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/ModelClient.cs index 5d459e8b5eb1..f84fbb6a6186 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/ModelClient.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/ModelClient.cs @@ -40,7 +40,7 @@ public ModelClient(Option varClient = default) OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Used to track the state of VarClient diff --git a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/Name.cs b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/Name.cs index b322aaf568ce..814ee7510454 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/Name.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/Name.cs @@ -46,7 +46,7 @@ public Name(int varName, Option property = default, Option snakeCa OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Gets or Sets VarName diff --git a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/NotificationtestGetElementsV1ResponseMPayload.cs b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/NotificationtestGetElementsV1ResponseMPayload.cs index ea8abdda0d78..d6c1a4bf339b 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/NotificationtestGetElementsV1ResponseMPayload.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/NotificationtestGetElementsV1ResponseMPayload.cs @@ -42,7 +42,7 @@ public NotificationtestGetElementsV1ResponseMPayload(List /// Gets or Sets AObjVariableobject diff --git a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/NullableClass.cs b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/NullableClass.cs index 42533f9c7ebf..6e2518705255 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/NullableClass.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/NullableClass.cs @@ -62,7 +62,7 @@ public NullableClass(Option> arrayAndItemsNullableProp = default, O OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Used to track the state of ArrayAndItemsNullableProp diff --git a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/NullableGuidClass.cs b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/NullableGuidClass.cs index 286d13258dce..446d782de457 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/NullableGuidClass.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/NullableGuidClass.cs @@ -40,7 +40,7 @@ public NullableGuidClass(Option uuid = default) OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Used to track the state of Uuid diff --git a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/NullableShape.cs b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/NullableShape.cs index 9a93cb734e9c..995568e86c42 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/NullableShape.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/NullableShape.cs @@ -49,7 +49,7 @@ public NullableShape(Quadrilateral quadrilateral) OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Gets or Sets Triangle diff --git a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/NumberOnly.cs b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/NumberOnly.cs index 29f5a80e6462..bb0c7a57114a 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/NumberOnly.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/NumberOnly.cs @@ -40,7 +40,7 @@ public NumberOnly(Option justNumber = default) OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Used to track the state of JustNumber diff --git a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/ObjectWithDeprecatedFields.cs b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/ObjectWithDeprecatedFields.cs index 83f513bc63bb..0fa7f080b76c 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/ObjectWithDeprecatedFields.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/ObjectWithDeprecatedFields.cs @@ -46,7 +46,7 @@ public ObjectWithDeprecatedFields(Option> bars = default, Option /// Used to track the state of Bars diff --git a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/OneOfString.cs b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/OneOfString.cs index c89963f55a36..999f3ce9a2e5 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/OneOfString.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/OneOfString.cs @@ -39,7 +39,7 @@ internal OneOfString(string @string) OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Gets or Sets String diff --git a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/Order.cs b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/Order.cs index 580ef432ecf1..d510e57328de 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/Order.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/Order.cs @@ -50,7 +50,7 @@ public Order(Option complete = default, Option id = default, Optio OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Order Status diff --git a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/OuterComposite.cs b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/OuterComposite.cs index 92ec1939d1af..5c00052aa141 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/OuterComposite.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/OuterComposite.cs @@ -44,7 +44,7 @@ public OuterComposite(Option myBoolean = default, Option myNumb OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Used to track the state of MyBoolean diff --git a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/ParentPet.cs b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/ParentPet.cs index 83104e900d01..dd6f0777ee48 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/ParentPet.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/ParentPet.cs @@ -38,7 +38,7 @@ public ParentPet() : base() OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// The discriminator diff --git a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/Pet.cs b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/Pet.cs index 81d80e33de70..f56ba1be1e2c 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/Pet.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/Pet.cs @@ -50,7 +50,7 @@ public Pet(string name, List photoUrls, Option category = defa OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// pet status in the store diff --git a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/Pig.cs b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/Pig.cs index b6f300c94400..6cbb846229e6 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/Pig.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/Pig.cs @@ -49,7 +49,7 @@ public Pig(DanishPig danishPig) OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Gets or Sets BasquePig diff --git a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/PolymorphicProperty.cs b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/PolymorphicProperty.cs index ddea47edf40c..a0fdf9fa39c7 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/PolymorphicProperty.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/PolymorphicProperty.cs @@ -69,7 +69,7 @@ internal PolymorphicProperty(List list) OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Gets or Sets Bool diff --git a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/Quadrilateral.cs b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/Quadrilateral.cs index e8a2e2439975..a95ca8f058bf 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/Quadrilateral.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/Quadrilateral.cs @@ -49,7 +49,7 @@ public Quadrilateral(ComplexQuadrilateral complexQuadrilateral) OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Gets or Sets SimpleQuadrilateral diff --git a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/QuadrilateralInterface.cs b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/QuadrilateralInterface.cs index 519ed66393ca..08cade10a83f 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/QuadrilateralInterface.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/QuadrilateralInterface.cs @@ -40,7 +40,7 @@ public QuadrilateralInterface(string quadrilateralType) OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Gets or Sets QuadrilateralType diff --git a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/ReadOnlyFirst.cs b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/ReadOnlyFirst.cs index a7cd43316ac8..d39a761c6756 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/ReadOnlyFirst.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/ReadOnlyFirst.cs @@ -42,7 +42,7 @@ public ReadOnlyFirst(Option bar = default, Option baz = default) OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Used to track the state of Bar diff --git a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/RequiredClass.cs b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/RequiredClass.cs index 0990c0ab7a40..e9e94bdfae5d 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/RequiredClass.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/RequiredClass.cs @@ -126,7 +126,7 @@ public RequiredClass(DateTime requiredNotNullableDateProp, List required OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Defines RequiredNotnullableEnumInteger diff --git a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/Return.cs b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/Return.cs index 6a2c4c85eb4a..69091556b453 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/Return.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/Return.cs @@ -46,7 +46,7 @@ public Return(string @lock, string @abstract = default, Option varReturn = OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Gets or Sets Lock diff --git a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/RolesReportsHash.cs b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/RolesReportsHash.cs index 46625cb093a3..8d0cb0a73562 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/RolesReportsHash.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/RolesReportsHash.cs @@ -42,7 +42,7 @@ public RolesReportsHash(Option role = default, Option /// Used to track the state of Role diff --git a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/RolesReportsHashRole.cs b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/RolesReportsHashRole.cs index 29c8760c9722..7378b0edc04a 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/RolesReportsHashRole.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/RolesReportsHashRole.cs @@ -40,7 +40,7 @@ public RolesReportsHashRole(Option name = default) OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Used to track the state of Name diff --git a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/ScaleneTriangle.cs b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/ScaleneTriangle.cs index 5c960eb54744..ae482c9fd59c 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/ScaleneTriangle.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/ScaleneTriangle.cs @@ -42,7 +42,7 @@ public ScaleneTriangle(string shapeType, string triangleType) OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Gets or Sets ShapeType diff --git a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/Shape.cs b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/Shape.cs index c651ac7d2454..bf15bb26ed51 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/Shape.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/Shape.cs @@ -49,7 +49,7 @@ public Shape(Quadrilateral quadrilateral) OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Gets or Sets Triangle diff --git a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/ShapeInterface.cs b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/ShapeInterface.cs index 37db5df64908..192ca6aef087 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/ShapeInterface.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/ShapeInterface.cs @@ -40,7 +40,7 @@ public ShapeInterface(string shapeType) OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Gets or Sets ShapeType diff --git a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/ShapeOrNull.cs b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/ShapeOrNull.cs index 1f0b22030070..c532dcee99f3 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/ShapeOrNull.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/ShapeOrNull.cs @@ -49,7 +49,7 @@ public ShapeOrNull(Quadrilateral quadrilateral) OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Gets or Sets Triangle diff --git a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/SimpleQuadrilateral.cs b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/SimpleQuadrilateral.cs index ffa68d1e75de..0a8314e7ee3b 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/SimpleQuadrilateral.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/SimpleQuadrilateral.cs @@ -42,7 +42,7 @@ public SimpleQuadrilateral(string quadrilateralType, string shapeType) OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Gets or Sets QuadrilateralType diff --git a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/SpecialModelName.cs b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/SpecialModelName.cs index 7ec3c110c2a1..7ba549f145bb 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/SpecialModelName.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/SpecialModelName.cs @@ -42,7 +42,7 @@ public SpecialModelName(Option varSpecialModelName = default, Option /// Used to track the state of VarSpecialModelName diff --git a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/Tag.cs b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/Tag.cs index 4290e8270ff9..38aca81c755b 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/Tag.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/Tag.cs @@ -42,7 +42,7 @@ public Tag(Option id = default, Option name = default) OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Used to track the state of Id diff --git a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordList.cs b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordList.cs index 11d1cd5963c0..49258bcb159f 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordList.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordList.cs @@ -40,7 +40,7 @@ public TestCollectionEndingWithWordList(Option value = default) OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Used to track the state of Value diff --git a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordListObject.cs b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordListObject.cs index 04d04337aa4a..e9467b8f265f 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordListObject.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordListObject.cs @@ -40,7 +40,7 @@ public TestCollectionEndingWithWordListObject(Option /// Used to track the state of TestCollectionEndingWithWordList diff --git a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/TestInlineFreeformAdditionalPropertiesRequest.cs b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/TestInlineFreeformAdditionalPropertiesRequest.cs index 33f5183651a3..407afedd0da9 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/TestInlineFreeformAdditionalPropertiesRequest.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/TestInlineFreeformAdditionalPropertiesRequest.cs @@ -40,7 +40,7 @@ public TestInlineFreeformAdditionalPropertiesRequest(Option someProperty OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Used to track the state of SomeProperty diff --git a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/Triangle.cs b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/Triangle.cs index cf22051519ad..36cae8b499ba 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/Triangle.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/Triangle.cs @@ -59,7 +59,7 @@ public Triangle(ScaleneTriangle scaleneTriangle) OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Gets or Sets EquilateralTriangle diff --git a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/TriangleInterface.cs b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/TriangleInterface.cs index 0f13b0e77451..55f659bdd721 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/TriangleInterface.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/TriangleInterface.cs @@ -40,7 +40,7 @@ public TriangleInterface(string triangleType) OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Gets or Sets TriangleType diff --git a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/User.cs b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/User.cs index e89d58457324..1f6231bd7a9f 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/User.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/User.cs @@ -62,7 +62,7 @@ public User(Option anyTypeProp = default, Option anyTypePropNull OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Used to track the state of AnyTypeProp diff --git a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/Whale.cs b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/Whale.cs index 834e6957c675..8bf23ccec947 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/Whale.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/Whale.cs @@ -44,7 +44,7 @@ public Whale(string className, Option hasBaleen = default, Option OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Gets or Sets ClassName diff --git a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/Zebra.cs b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/Zebra.cs index bdf489815279..26f62a0157ab 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/Zebra.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/Zebra.cs @@ -42,7 +42,7 @@ public Zebra(string className, Option type = default) OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Defines Type diff --git a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/ZeroBasedEnumClass.cs b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/ZeroBasedEnumClass.cs index a6d408aeecc1..40e3d6d25f59 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/ZeroBasedEnumClass.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/ZeroBasedEnumClass.cs @@ -40,7 +40,7 @@ public ZeroBasedEnumClass(Option zeroBasedEnum = default) OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Defines ZeroBasedEnum 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 1662385fe8f8..cbb2c3b58c0b 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 @@ -150,7 +150,7 @@ private void AfterNowGetDefaultImplementation(INowGetApiResponse apiResponseLoca /// /// /// - partial void AfterNowGet(ref bool suppressDefaultLog, INowGetApiResponse apiResponseLocalVar); + public virtual void AfterNowGet(ref bool suppressDefaultLog, INowGetApiResponse apiResponseLocalVar) { } /// /// Logs exceptions that occur while retrieving the server response @@ -173,7 +173,7 @@ private void OnErrorNowGetDefaultImplementation(Exception exceptionLocalVar, str /// /// /// - partial void OnErrorNowGet(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar); + public virtual void OnErrorNowGet(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar) { } /// /// @@ -275,7 +275,7 @@ public NowGetApiResponse(ILogger logger, System.Net.Http.Http OnCreated(httpRequestMessage, httpResponseMessage); } - partial void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage); + public virtual void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage) { } /// /// Returns true if the response is 200 Ok @@ -323,7 +323,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } - partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); + public virtual void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode) { } } } } diff --git a/samples/client/petstore/csharp/generichost/net4.7/UseDateTimeForDate/src/Org.OpenAPITools/Client/ApiResponse`1.cs b/samples/client/petstore/csharp/generichost/net4.7/UseDateTimeForDate/src/Org.OpenAPITools/Client/ApiResponse`1.cs index fe5b2fe67aa2..76ab6e712b3b 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/UseDateTimeForDate/src/Org.OpenAPITools/Client/ApiResponse`1.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/UseDateTimeForDate/src/Org.OpenAPITools/Client/ApiResponse`1.cs @@ -145,7 +145,7 @@ public ApiResponse(global::System.Net.Http.HttpRequestMessage httpRequestMessage OnCreated(httpRequestMessage, httpResponseMessage); } - partial void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage); + public virtual void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage) { } } /// diff --git a/samples/client/petstore/csharp/generichost/net4.7/UseDateTimeForDate/src/Org.OpenAPITools/Model/NowGet200Response.cs b/samples/client/petstore/csharp/generichost/net4.7/UseDateTimeForDate/src/Org.OpenAPITools/Model/NowGet200Response.cs index 504c2976b3f4..df0c1752b505 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/UseDateTimeForDate/src/Org.OpenAPITools/Model/NowGet200Response.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/UseDateTimeForDate/src/Org.OpenAPITools/Model/NowGet200Response.cs @@ -41,7 +41,7 @@ public NowGet200Response(Option now = default, Option toda OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Used to track the state of Now 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 4e25fbff5735..6343c43f984b 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 @@ -135,7 +135,7 @@ public DefaultApi(ILogger logger, ILoggerFactory loggerFactory, Http Events = defaultApiEvents; } - partial void FormatList(ref string personId); + public virtual void FormatList(ref string personId) { } /// /// Validates the request parameters @@ -167,7 +167,7 @@ private void AfterListDefaultImplementation(IListApiResponse apiResponseLocalVar /// /// /// - partial void AfterList(ref bool suppressDefaultLog, IListApiResponse apiResponseLocalVar, string personId); + public virtual void AfterList(ref bool suppressDefaultLog, IListApiResponse apiResponseLocalVar, string personId) { } /// /// Logs exceptions that occur while retrieving the server response @@ -192,7 +192,7 @@ private void OnErrorListDefaultImplementation(Exception exceptionLocalVar, strin /// /// /// - partial void OnErrorList(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, string personId); + public virtual void OnErrorList(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, string personId) { } /// /// @@ -301,7 +301,7 @@ public ListApiResponse(ILogger logger, System.Net.Http.HttpRequ OnCreated(httpRequestMessage, httpResponseMessage); } - partial void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage); + public virtual void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage) { } /// /// Returns true if the response is 200 Ok @@ -349,7 +349,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } - partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); + public virtual void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode) { } } } } diff --git a/samples/client/petstore/csharp/generichost/net4.8/AllOf/src/Org.OpenAPITools/Client/ApiResponse`1.cs b/samples/client/petstore/csharp/generichost/net4.8/AllOf/src/Org.OpenAPITools/Client/ApiResponse`1.cs index 0d99f099669a..ff9315000500 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/AllOf/src/Org.OpenAPITools/Client/ApiResponse`1.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/AllOf/src/Org.OpenAPITools/Client/ApiResponse`1.cs @@ -145,7 +145,7 @@ public ApiResponse(global::System.Net.Http.HttpRequestMessage httpRequestMessage OnCreated(httpRequestMessage, httpResponseMessage); } - partial void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage); + public virtual void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage) { } } /// diff --git a/samples/client/petstore/csharp/generichost/net4.8/AllOf/src/Org.OpenAPITools/Model/Adult.cs b/samples/client/petstore/csharp/generichost/net4.8/AllOf/src/Org.OpenAPITools/Model/Adult.cs index 3cdde4b29d96..53a43ba64157 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/AllOf/src/Org.OpenAPITools/Model/Adult.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/AllOf/src/Org.OpenAPITools/Model/Adult.cs @@ -42,7 +42,7 @@ public Adult(Option> children = default, Option firstName = OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Used to track the state of Children diff --git a/samples/client/petstore/csharp/generichost/net4.8/AllOf/src/Org.OpenAPITools/Model/Child.cs b/samples/client/petstore/csharp/generichost/net4.8/AllOf/src/Org.OpenAPITools/Model/Child.cs index 7f96dcd8b664..666c2ad390f0 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/AllOf/src/Org.OpenAPITools/Model/Child.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/AllOf/src/Org.OpenAPITools/Model/Child.cs @@ -44,7 +44,7 @@ public Child(Option age = default, Option firstName = default, Opt OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Used to track the state of Age diff --git a/samples/client/petstore/csharp/generichost/net4.8/AllOf/src/Org.OpenAPITools/Model/Person.cs b/samples/client/petstore/csharp/generichost/net4.8/AllOf/src/Org.OpenAPITools/Model/Person.cs index 6c9261c98790..1ddfc0aadbcb 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/AllOf/src/Org.OpenAPITools/Model/Person.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/AllOf/src/Org.OpenAPITools/Model/Person.cs @@ -42,7 +42,7 @@ public Person(Option firstName = default, Option lastName = defa OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Used to track the state of FirstName 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 c2a2d862a621..d44541294945 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 @@ -150,7 +150,7 @@ private void AfterRootGetDefaultImplementation(IRootGetApiResponse apiResponseLo /// /// /// - partial void AfterRootGet(ref bool suppressDefaultLog, IRootGetApiResponse apiResponseLocalVar); + public virtual void AfterRootGet(ref bool suppressDefaultLog, IRootGetApiResponse apiResponseLocalVar) { } /// /// Logs exceptions that occur while retrieving the server response @@ -173,7 +173,7 @@ private void OnErrorRootGetDefaultImplementation(Exception exceptionLocalVar, st /// /// /// - partial void OnErrorRootGet(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar); + public virtual void OnErrorRootGet(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar) { } /// /// @@ -275,7 +275,7 @@ public RootGetApiResponse(ILogger logger, System.Net.Http.Ht OnCreated(httpRequestMessage, httpResponseMessage); } - partial void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage); + public virtual void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage) { } /// /// Returns true if the response is 200 Ok @@ -323,7 +323,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } - partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); + public virtual void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode) { } } } } diff --git a/samples/client/petstore/csharp/generichost/net4.8/AnyOf/src/Org.OpenAPITools/Client/ApiResponse`1.cs b/samples/client/petstore/csharp/generichost/net4.8/AnyOf/src/Org.OpenAPITools/Client/ApiResponse`1.cs index 96bba8467893..64ecfe9c19c3 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/AnyOf/src/Org.OpenAPITools/Client/ApiResponse`1.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/AnyOf/src/Org.OpenAPITools/Client/ApiResponse`1.cs @@ -145,7 +145,7 @@ public ApiResponse(global::System.Net.Http.HttpRequestMessage httpRequestMessage OnCreated(httpRequestMessage, httpResponseMessage); } - partial void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage); + public virtual void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage) { } } /// diff --git a/samples/client/petstore/csharp/generichost/net4.8/AnyOf/src/Org.OpenAPITools/Model/Apple.cs b/samples/client/petstore/csharp/generichost/net4.8/AnyOf/src/Org.OpenAPITools/Model/Apple.cs index 7867e6645419..aa7d16779f8e 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/AnyOf/src/Org.OpenAPITools/Model/Apple.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/AnyOf/src/Org.OpenAPITools/Model/Apple.cs @@ -40,7 +40,7 @@ public Apple(Option kind = default) OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Used to track the state of Kind diff --git a/samples/client/petstore/csharp/generichost/net4.8/AnyOf/src/Org.OpenAPITools/Model/Banana.cs b/samples/client/petstore/csharp/generichost/net4.8/AnyOf/src/Org.OpenAPITools/Model/Banana.cs index 15899a012afd..de0714efe6cc 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/AnyOf/src/Org.OpenAPITools/Model/Banana.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/AnyOf/src/Org.OpenAPITools/Model/Banana.cs @@ -40,7 +40,7 @@ public Banana(Option count = default) OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Used to track the state of Count diff --git a/samples/client/petstore/csharp/generichost/net4.8/AnyOf/src/Org.OpenAPITools/Model/Fruit.cs b/samples/client/petstore/csharp/generichost/net4.8/AnyOf/src/Org.OpenAPITools/Model/Fruit.cs index cd1e938ffb37..f902efc8ecc2 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/AnyOf/src/Org.OpenAPITools/Model/Fruit.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/AnyOf/src/Org.OpenAPITools/Model/Fruit.cs @@ -43,7 +43,7 @@ public Fruit(Option apple, Option banana, Option color = OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Used to track the state of Apple 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 c2a2d862a621..d44541294945 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 @@ -150,7 +150,7 @@ private void AfterRootGetDefaultImplementation(IRootGetApiResponse apiResponseLo /// /// /// - partial void AfterRootGet(ref bool suppressDefaultLog, IRootGetApiResponse apiResponseLocalVar); + public virtual void AfterRootGet(ref bool suppressDefaultLog, IRootGetApiResponse apiResponseLocalVar) { } /// /// Logs exceptions that occur while retrieving the server response @@ -173,7 +173,7 @@ private void OnErrorRootGetDefaultImplementation(Exception exceptionLocalVar, st /// /// /// - partial void OnErrorRootGet(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar); + public virtual void OnErrorRootGet(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar) { } /// /// @@ -275,7 +275,7 @@ public RootGetApiResponse(ILogger logger, System.Net.Http.Ht OnCreated(httpRequestMessage, httpResponseMessage); } - partial void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage); + public virtual void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage) { } /// /// Returns true if the response is 200 Ok @@ -323,7 +323,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } - partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); + public virtual void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode) { } } } } diff --git a/samples/client/petstore/csharp/generichost/net4.8/AnyOfNoCompare/src/Org.OpenAPITools/Client/ApiResponse`1.cs b/samples/client/petstore/csharp/generichost/net4.8/AnyOfNoCompare/src/Org.OpenAPITools/Client/ApiResponse`1.cs index 96bba8467893..64ecfe9c19c3 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/AnyOfNoCompare/src/Org.OpenAPITools/Client/ApiResponse`1.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/AnyOfNoCompare/src/Org.OpenAPITools/Client/ApiResponse`1.cs @@ -145,7 +145,7 @@ public ApiResponse(global::System.Net.Http.HttpRequestMessage httpRequestMessage OnCreated(httpRequestMessage, httpResponseMessage); } - partial void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage); + public virtual void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage) { } } /// diff --git a/samples/client/petstore/csharp/generichost/net4.8/AnyOfNoCompare/src/Org.OpenAPITools/Model/Apple.cs b/samples/client/petstore/csharp/generichost/net4.8/AnyOfNoCompare/src/Org.OpenAPITools/Model/Apple.cs index 70534c23212e..2f0824a2e462 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/AnyOfNoCompare/src/Org.OpenAPITools/Model/Apple.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/AnyOfNoCompare/src/Org.OpenAPITools/Model/Apple.cs @@ -39,7 +39,7 @@ public Apple(Option kind = default) OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Used to track the state of Kind diff --git a/samples/client/petstore/csharp/generichost/net4.8/AnyOfNoCompare/src/Org.OpenAPITools/Model/Banana.cs b/samples/client/petstore/csharp/generichost/net4.8/AnyOfNoCompare/src/Org.OpenAPITools/Model/Banana.cs index bdb8dcaba25b..492d05e98bf9 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/AnyOfNoCompare/src/Org.OpenAPITools/Model/Banana.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/AnyOfNoCompare/src/Org.OpenAPITools/Model/Banana.cs @@ -39,7 +39,7 @@ public Banana(Option count = default) OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Used to track the state of Count diff --git a/samples/client/petstore/csharp/generichost/net4.8/AnyOfNoCompare/src/Org.OpenAPITools/Model/Fruit.cs b/samples/client/petstore/csharp/generichost/net4.8/AnyOfNoCompare/src/Org.OpenAPITools/Model/Fruit.cs index de8c3fcf7b7b..246fad611e67 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/AnyOfNoCompare/src/Org.OpenAPITools/Model/Fruit.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/AnyOfNoCompare/src/Org.OpenAPITools/Model/Fruit.cs @@ -42,7 +42,7 @@ public Fruit(Option apple, Option banana, Option color = OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Used to track the state of Apple 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 1fd1ffef4feb..db88b37887ed 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 @@ -170,7 +170,7 @@ public AnotherFakeApi(ILogger logger, ILoggerFactory loggerFacto OauthTokenProvider = oauthTokenProvider; } - partial void FormatCall123TestSpecialTags(ModelClient modelClient); + public virtual void FormatCall123TestSpecialTags(ModelClient modelClient) { } /// /// Validates the request parameters @@ -202,7 +202,7 @@ private void AfterCall123TestSpecialTagsDefaultImplementation(ICall123TestSpecia /// /// /// - partial void AfterCall123TestSpecialTags(ref bool suppressDefaultLog, ICall123TestSpecialTagsApiResponse apiResponseLocalVar, ModelClient modelClient); + public virtual void AfterCall123TestSpecialTags(ref bool suppressDefaultLog, ICall123TestSpecialTagsApiResponse apiResponseLocalVar, ModelClient modelClient) { } /// /// Logs exceptions that occur while retrieving the server response @@ -227,7 +227,7 @@ private void OnErrorCall123TestSpecialTagsDefaultImplementation(Exception except /// /// /// - partial void OnErrorCall123TestSpecialTags(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, ModelClient modelClient); + public virtual 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 @@ -348,7 +348,7 @@ public Call123TestSpecialTagsApiResponse(ILogger /// Returns true if the response is 200 Ok @@ -396,7 +396,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } - partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); + public virtual void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode) { } } } } 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 879c3ecdb9ad..9cd2655e8814 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 @@ -399,7 +399,7 @@ private void AfterFooGetDefaultImplementation(IFooGetApiResponse apiResponseLoca /// /// /// - partial void AfterFooGet(ref bool suppressDefaultLog, IFooGetApiResponse apiResponseLocalVar); + public virtual void AfterFooGet(ref bool suppressDefaultLog, IFooGetApiResponse apiResponseLocalVar) { } /// /// Logs exceptions that occur while retrieving the server response @@ -422,7 +422,7 @@ private void OnErrorFooGetDefaultImplementation(Exception exceptionLocalVar, str /// /// /// - partial void OnErrorFooGet(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar); + public virtual void OnErrorFooGet(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar) { } /// /// @@ -524,7 +524,7 @@ public FooGetApiResponse(ILogger logger, System.Net.Http.Http OnCreated(httpRequestMessage, httpResponseMessage); } - partial void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage); + public virtual void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage) { } /// /// Returns true if the response is the default response type @@ -572,10 +572,10 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } - partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); + public virtual void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode) { } } - partial void FormatGetCountry(ref string country); + public virtual void FormatGetCountry(ref string country) { } /// /// Validates the request parameters @@ -607,7 +607,7 @@ private void AfterGetCountryDefaultImplementation(IGetCountryApiResponse apiResp /// /// /// - partial void AfterGetCountry(ref bool suppressDefaultLog, IGetCountryApiResponse apiResponseLocalVar, string country); + public virtual void AfterGetCountry(ref bool suppressDefaultLog, IGetCountryApiResponse apiResponseLocalVar, string country) { } /// /// Logs exceptions that occur while retrieving the server response @@ -632,7 +632,7 @@ private void OnErrorGetCountryDefaultImplementation(Exception exceptionLocalVar, /// /// /// - partial void OnErrorGetCountry(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, string country); + public virtual void OnErrorGetCountry(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, string country) { } /// /// @@ -751,7 +751,7 @@ public GetCountryApiResponse(ILogger logger, System.Net.H OnCreated(httpRequestMessage, httpResponseMessage); } - partial void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage); + public virtual void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage) { } /// /// Returns true if the response is 200 Ok @@ -767,7 +767,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } - partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); + public virtual void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode) { } } /// @@ -787,7 +787,7 @@ private void AfterHelloDefaultImplementation(IHelloApiResponse apiResponseLocalV /// /// /// - partial void AfterHello(ref bool suppressDefaultLog, IHelloApiResponse apiResponseLocalVar); + public virtual void AfterHello(ref bool suppressDefaultLog, IHelloApiResponse apiResponseLocalVar) { } /// /// Logs exceptions that occur while retrieving the server response @@ -810,7 +810,7 @@ private void OnErrorHelloDefaultImplementation(Exception exceptionLocalVar, stri /// /// /// - partial void OnErrorHello(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar); + public virtual void OnErrorHello(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar) { } /// /// Hello Hello @@ -912,7 +912,7 @@ public HelloApiResponse(ILogger logger, System.Net.Http.HttpRe OnCreated(httpRequestMessage, httpResponseMessage); } - partial void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage); + public virtual void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage) { } /// /// Returns true if the response is 200 Ok @@ -960,7 +960,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } - partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); + public virtual void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode) { } } /// @@ -980,7 +980,7 @@ private void AfterRolesReportGetDefaultImplementation(IRolesReportGetApiResponse /// /// /// - partial void AfterRolesReportGet(ref bool suppressDefaultLog, IRolesReportGetApiResponse apiResponseLocalVar); + public virtual void AfterRolesReportGet(ref bool suppressDefaultLog, IRolesReportGetApiResponse apiResponseLocalVar) { } /// /// Logs exceptions that occur while retrieving the server response @@ -1003,7 +1003,7 @@ private void OnErrorRolesReportGetDefaultImplementation(Exception exceptionLocal /// /// /// - partial void OnErrorRolesReportGet(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar); + public virtual void OnErrorRolesReportGet(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar) { } /// /// @@ -1105,7 +1105,7 @@ public RolesReportGetApiResponse(ILogger logger, Syst OnCreated(httpRequestMessage, httpResponseMessage); } - partial void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage); + public virtual void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage) { } /// /// Returns true if the response is 200 Ok @@ -1153,7 +1153,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } - partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); + public virtual void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode) { } } /// @@ -1173,7 +1173,7 @@ private void AfterTestDefaultImplementation(ITestApiResponse apiResponseLocalVar /// /// /// - partial void AfterTest(ref bool suppressDefaultLog, ITestApiResponse apiResponseLocalVar); + public virtual void AfterTest(ref bool suppressDefaultLog, ITestApiResponse apiResponseLocalVar) { } /// /// Logs exceptions that occur while retrieving the server response @@ -1196,7 +1196,7 @@ private void OnErrorTestDefaultImplementation(Exception exceptionLocalVar, strin /// /// /// - partial void OnErrorTest(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar); + public virtual void OnErrorTest(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar) { } /// /// Retrieve an existing Notificationtest's Elements @@ -1298,7 +1298,7 @@ public TestApiResponse(ILogger logger, System.Net.Http.HttpRequ OnCreated(httpRequestMessage, httpResponseMessage); } - partial void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage); + public virtual void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage) { } /// /// Returns true if the response is 200 Ok @@ -1346,7 +1346,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } - partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); + public virtual void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode) { } } } } 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 38f936207662..fee7217256d5 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 @@ -1308,7 +1308,7 @@ private void AfterFakeHealthGetDefaultImplementation(IFakeHealthGetApiResponse a /// /// /// - partial void AfterFakeHealthGet(ref bool suppressDefaultLog, IFakeHealthGetApiResponse apiResponseLocalVar); + public virtual void AfterFakeHealthGet(ref bool suppressDefaultLog, IFakeHealthGetApiResponse apiResponseLocalVar) { } /// /// Logs exceptions that occur while retrieving the server response @@ -1331,7 +1331,7 @@ private void OnErrorFakeHealthGetDefaultImplementation(Exception exceptionLocalV /// /// /// - partial void OnErrorFakeHealthGet(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar); + public virtual void OnErrorFakeHealthGet(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar) { } /// /// Health check endpoint @@ -1433,7 +1433,7 @@ public FakeHealthGetApiResponse(ILogger logger, System OnCreated(httpRequestMessage, httpResponseMessage); } - partial void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage); + public virtual void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage) { } /// /// Returns true if the response is 200 Ok @@ -1481,10 +1481,10 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } - partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); + public virtual void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode) { } } - partial void FormatFakeOuterBooleanSerialize(ref Option body); + public virtual void FormatFakeOuterBooleanSerialize(ref Option body) { } /// /// Processes the server response @@ -1505,7 +1505,7 @@ private void AfterFakeOuterBooleanSerializeDefaultImplementation(IFakeOuterBoole /// /// /// - partial void AfterFakeOuterBooleanSerialize(ref bool suppressDefaultLog, IFakeOuterBooleanSerializeApiResponse apiResponseLocalVar, Option body); + public virtual void AfterFakeOuterBooleanSerialize(ref bool suppressDefaultLog, IFakeOuterBooleanSerializeApiResponse apiResponseLocalVar, Option body) { } /// /// Logs exceptions that occur while retrieving the server response @@ -1530,7 +1530,7 @@ private void OnErrorFakeOuterBooleanSerializeDefaultImplementation(Exception exc /// /// /// - partial void OnErrorFakeOuterBooleanSerialize(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, Option body); + public virtual void OnErrorFakeOuterBooleanSerialize(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, Option body) { } /// /// Test serialization of outer boolean types @@ -1650,7 +1650,7 @@ public FakeOuterBooleanSerializeApiResponse(ILogger /// Returns true if the response is 200 Ok @@ -1698,10 +1698,10 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } - partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); + public virtual void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode) { } } - partial void FormatFakeOuterCompositeSerialize(Option outerComposite); + public virtual void FormatFakeOuterCompositeSerialize(Option outerComposite) { } /// /// Validates the request parameters @@ -1733,7 +1733,7 @@ private void AfterFakeOuterCompositeSerializeDefaultImplementation(IFakeOuterCom /// /// /// - partial void AfterFakeOuterCompositeSerialize(ref bool suppressDefaultLog, IFakeOuterCompositeSerializeApiResponse apiResponseLocalVar, Option outerComposite); + public virtual void AfterFakeOuterCompositeSerialize(ref bool suppressDefaultLog, IFakeOuterCompositeSerializeApiResponse apiResponseLocalVar, Option outerComposite) { } /// /// Logs exceptions that occur while retrieving the server response @@ -1758,7 +1758,7 @@ private void OnErrorFakeOuterCompositeSerializeDefaultImplementation(Exception e /// /// /// - partial void OnErrorFakeOuterCompositeSerialize(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, Option outerComposite); + public virtual void OnErrorFakeOuterCompositeSerialize(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, Option outerComposite) { } /// /// Test serialization of object with outer number type @@ -1880,7 +1880,7 @@ public FakeOuterCompositeSerializeApiResponse(ILogger /// Returns true if the response is 200 Ok @@ -1928,10 +1928,10 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } - partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); + public virtual void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode) { } } - partial void FormatFakeOuterNumberSerialize(ref Option body); + public virtual void FormatFakeOuterNumberSerialize(ref Option body) { } /// /// Processes the server response @@ -1952,7 +1952,7 @@ private void AfterFakeOuterNumberSerializeDefaultImplementation(IFakeOuterNumber /// /// /// - partial void AfterFakeOuterNumberSerialize(ref bool suppressDefaultLog, IFakeOuterNumberSerializeApiResponse apiResponseLocalVar, Option body); + public virtual void AfterFakeOuterNumberSerialize(ref bool suppressDefaultLog, IFakeOuterNumberSerializeApiResponse apiResponseLocalVar, Option body) { } /// /// Logs exceptions that occur while retrieving the server response @@ -1977,7 +1977,7 @@ private void OnErrorFakeOuterNumberSerializeDefaultImplementation(Exception exce /// /// /// - partial void OnErrorFakeOuterNumberSerialize(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, Option body); + public virtual void OnErrorFakeOuterNumberSerialize(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, Option body) { } /// /// Test serialization of outer number types @@ -2097,7 +2097,7 @@ public FakeOuterNumberSerializeApiResponse(ILogger /// Returns true if the response is 200 Ok @@ -2145,10 +2145,10 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } - partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); + public virtual void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode) { } } - partial void FormatFakeOuterStringSerialize(ref Guid requiredStringUuid, ref Option body); + public virtual void FormatFakeOuterStringSerialize(ref Guid requiredStringUuid, ref Option body) { } /// /// Validates the request parameters @@ -2182,7 +2182,7 @@ private void AfterFakeOuterStringSerializeDefaultImplementation(IFakeOuterString /// /// /// - partial void AfterFakeOuterStringSerialize(ref bool suppressDefaultLog, IFakeOuterStringSerializeApiResponse apiResponseLocalVar, Guid requiredStringUuid, Option body); + public virtual void AfterFakeOuterStringSerialize(ref bool suppressDefaultLog, IFakeOuterStringSerializeApiResponse apiResponseLocalVar, Guid requiredStringUuid, Option body) { } /// /// Logs exceptions that occur while retrieving the server response @@ -2209,7 +2209,7 @@ private void OnErrorFakeOuterStringSerializeDefaultImplementation(Exception exce /// /// /// - partial void OnErrorFakeOuterStringSerialize(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, Guid requiredStringUuid, Option body); + public virtual void OnErrorFakeOuterStringSerialize(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, Guid requiredStringUuid, Option body) { } /// /// Test serialization of outer string types @@ -2339,7 +2339,7 @@ public FakeOuterStringSerializeApiResponse(ILogger /// Returns true if the response is 200 Ok @@ -2387,7 +2387,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } - partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); + public virtual void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode) { } } /// @@ -2407,7 +2407,7 @@ private void AfterGetArrayOfEnumsDefaultImplementation(IGetArrayOfEnumsApiRespon /// /// /// - partial void AfterGetArrayOfEnums(ref bool suppressDefaultLog, IGetArrayOfEnumsApiResponse apiResponseLocalVar); + public virtual void AfterGetArrayOfEnums(ref bool suppressDefaultLog, IGetArrayOfEnumsApiResponse apiResponseLocalVar) { } /// /// Logs exceptions that occur while retrieving the server response @@ -2430,7 +2430,7 @@ private void OnErrorGetArrayOfEnumsDefaultImplementation(Exception exceptionLoca /// /// /// - partial void OnErrorGetArrayOfEnums(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar); + public virtual void OnErrorGetArrayOfEnums(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar) { } /// /// Array of Enums @@ -2532,7 +2532,7 @@ public GetArrayOfEnumsApiResponse(ILogger logger, Sy OnCreated(httpRequestMessage, httpResponseMessage); } - partial void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage); + public virtual void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage) { } /// /// Returns true if the response is 200 Ok @@ -2580,7 +2580,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } - partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); + public virtual void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode) { } } /// @@ -2600,7 +2600,7 @@ private void AfterGetMixedAnyOfDefaultImplementation(IGetMixedAnyOfApiResponse a /// /// /// - partial void AfterGetMixedAnyOf(ref bool suppressDefaultLog, IGetMixedAnyOfApiResponse apiResponseLocalVar); + public virtual void AfterGetMixedAnyOf(ref bool suppressDefaultLog, IGetMixedAnyOfApiResponse apiResponseLocalVar) { } /// /// Logs exceptions that occur while retrieving the server response @@ -2623,7 +2623,7 @@ private void OnErrorGetMixedAnyOfDefaultImplementation(Exception exceptionLocalV /// /// /// - partial void OnErrorGetMixedAnyOf(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar); + public virtual void OnErrorGetMixedAnyOf(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar) { } /// /// Test mixed type anyOf deserialization @@ -2725,7 +2725,7 @@ public GetMixedAnyOfApiResponse(ILogger logger, System OnCreated(httpRequestMessage, httpResponseMessage); } - partial void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage); + public virtual void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage) { } /// /// Returns true if the response is 200 Ok @@ -2773,7 +2773,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } - partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); + public virtual void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode) { } } /// @@ -2793,7 +2793,7 @@ private void AfterGetMixedOneOfDefaultImplementation(IGetMixedOneOfApiResponse a /// /// /// - partial void AfterGetMixedOneOf(ref bool suppressDefaultLog, IGetMixedOneOfApiResponse apiResponseLocalVar); + public virtual void AfterGetMixedOneOf(ref bool suppressDefaultLog, IGetMixedOneOfApiResponse apiResponseLocalVar) { } /// /// Logs exceptions that occur while retrieving the server response @@ -2816,7 +2816,7 @@ private void OnErrorGetMixedOneOfDefaultImplementation(Exception exceptionLocalV /// /// /// - partial void OnErrorGetMixedOneOf(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar); + public virtual void OnErrorGetMixedOneOf(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar) { } /// /// Test mixed type oneOf deserialization @@ -2918,7 +2918,7 @@ public GetMixedOneOfApiResponse(ILogger logger, System OnCreated(httpRequestMessage, httpResponseMessage); } - partial void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage); + public virtual void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage) { } /// /// Returns true if the response is 200 Ok @@ -2966,10 +2966,10 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } - partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); + public virtual void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode) { } } - partial void FormatTestAdditionalPropertiesReference(Dictionary requestBody); + public virtual void FormatTestAdditionalPropertiesReference(Dictionary requestBody) { } /// /// Validates the request parameters @@ -3001,7 +3001,7 @@ private void AfterTestAdditionalPropertiesReferenceDefaultImplementation(ITestAd /// /// /// - partial void AfterTestAdditionalPropertiesReference(ref bool suppressDefaultLog, ITestAdditionalPropertiesReferenceApiResponse apiResponseLocalVar, Dictionary requestBody); + public virtual void AfterTestAdditionalPropertiesReference(ref bool suppressDefaultLog, ITestAdditionalPropertiesReferenceApiResponse apiResponseLocalVar, Dictionary requestBody) { } /// /// Logs exceptions that occur while retrieving the server response @@ -3026,7 +3026,7 @@ private void OnErrorTestAdditionalPropertiesReferenceDefaultImplementation(Excep /// /// /// - partial void OnErrorTestAdditionalPropertiesReference(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, Dictionary requestBody); + public virtual void OnErrorTestAdditionalPropertiesReference(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, Dictionary requestBody) { } /// /// test referenced additionalProperties @@ -3139,7 +3139,7 @@ public TestAdditionalPropertiesReferenceApiResponse(ILogger /// Returns true if the response is 200 Ok @@ -3155,10 +3155,10 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } - partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); + public virtual void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode) { } } - partial void FormatTestBodyWithFileSchema(FileSchemaTestClass fileSchemaTestClass); + public virtual void FormatTestBodyWithFileSchema(FileSchemaTestClass fileSchemaTestClass) { } /// /// Validates the request parameters @@ -3190,7 +3190,7 @@ private void AfterTestBodyWithFileSchemaDefaultImplementation(ITestBodyWithFileS /// /// /// - partial void AfterTestBodyWithFileSchema(ref bool suppressDefaultLog, ITestBodyWithFileSchemaApiResponse apiResponseLocalVar, FileSchemaTestClass fileSchemaTestClass); + public virtual void AfterTestBodyWithFileSchema(ref bool suppressDefaultLog, ITestBodyWithFileSchemaApiResponse apiResponseLocalVar, FileSchemaTestClass fileSchemaTestClass) { } /// /// Logs exceptions that occur while retrieving the server response @@ -3215,7 +3215,7 @@ private void OnErrorTestBodyWithFileSchemaDefaultImplementation(Exception except /// /// /// - partial void OnErrorTestBodyWithFileSchema(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, FileSchemaTestClass fileSchemaTestClass); + public virtual 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`. @@ -3328,7 +3328,7 @@ public TestBodyWithFileSchemaApiResponse(ILogger /// Returns true if the response is 200 Ok @@ -3344,10 +3344,10 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } - partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); + public virtual void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode) { } } - partial void FormatTestBodyWithQueryParams(ref string query, User user); + public virtual void FormatTestBodyWithQueryParams(ref string query, User user) { } /// /// Validates the request parameters @@ -3385,7 +3385,7 @@ private void AfterTestBodyWithQueryParamsDefaultImplementation(ITestBodyWithQuer /// /// /// - partial void AfterTestBodyWithQueryParams(ref bool suppressDefaultLog, ITestBodyWithQueryParamsApiResponse apiResponseLocalVar, string query, User user); + public virtual void AfterTestBodyWithQueryParams(ref bool suppressDefaultLog, ITestBodyWithQueryParamsApiResponse apiResponseLocalVar, string query, User user) { } /// /// Logs exceptions that occur while retrieving the server response @@ -3412,7 +3412,7 @@ private void OnErrorTestBodyWithQueryParamsDefaultImplementation(Exception excep /// /// /// - partial void OnErrorTestBodyWithQueryParams(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, string query, User user); + public virtual void OnErrorTestBodyWithQueryParams(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, string query, User user) { } /// /// @@ -3533,7 +3533,7 @@ public TestBodyWithQueryParamsApiResponse(ILogger /// Returns true if the response is 200 Ok @@ -3549,10 +3549,10 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } - partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); + public virtual void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode) { } } - partial void FormatTestClientModel(ModelClient modelClient); + public virtual void FormatTestClientModel(ModelClient modelClient) { } /// /// Validates the request parameters @@ -3584,7 +3584,7 @@ private void AfterTestClientModelDefaultImplementation(ITestClientModelApiRespon /// /// /// - partial void AfterTestClientModel(ref bool suppressDefaultLog, ITestClientModelApiResponse apiResponseLocalVar, ModelClient modelClient); + public virtual void AfterTestClientModel(ref bool suppressDefaultLog, ITestClientModelApiResponse apiResponseLocalVar, ModelClient modelClient) { } /// /// Logs exceptions that occur while retrieving the server response @@ -3609,7 +3609,7 @@ private void OnErrorTestClientModelDefaultImplementation(Exception exceptionLoca /// /// /// - partial void OnErrorTestClientModel(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, ModelClient modelClient); + public virtual void OnErrorTestClientModel(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, ModelClient modelClient) { } /// /// To test \"client\" model To test \"client\" model @@ -3730,7 +3730,7 @@ public TestClientModelApiResponse(ILogger logger, Sy OnCreated(httpRequestMessage, httpResponseMessage); } - partial void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage); + public virtual void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage) { } /// /// Returns true if the response is 200 Ok @@ -3778,10 +3778,10 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } - partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); + public virtual void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode) { } } - partial void FormatTestEndpointParameters(ref decimal number, ref string patternWithoutDelimiter, ref byte[] varByte, ref double varDouble, ref Option binary, ref Option callback, ref Option date, ref Option dateTime, ref Option int32, ref Option int64, ref Option integer, ref Option password, ref Option varFloat, ref Option varString); + public virtual void FormatTestEndpointParameters(ref decimal number, ref string patternWithoutDelimiter, ref byte[] varByte, ref double varDouble, ref Option binary, ref Option callback, ref Option date, ref Option dateTime, ref Option int32, ref Option int64, ref Option integer, ref Option password, ref Option varFloat, ref Option varString) { } /// /// Validates the request parameters @@ -3859,7 +3859,7 @@ private void AfterTestEndpointParametersDefaultImplementation(ITestEndpointParam /// /// /// - partial void AfterTestEndpointParameters(ref bool suppressDefaultLog, ITestEndpointParametersApiResponse apiResponseLocalVar, 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); + public virtual void AfterTestEndpointParameters(ref bool suppressDefaultLog, ITestEndpointParametersApiResponse apiResponseLocalVar, 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) { } /// /// Logs exceptions that occur while retrieving the server response @@ -3910,7 +3910,7 @@ private void OnErrorTestEndpointParametersDefaultImplementation(Exception except /// /// /// - 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); + public virtual 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 假端點 偽のエンドポイント 가짜 엔드 포인트 @@ -4102,7 +4102,7 @@ public TestEndpointParametersApiResponse(ILogger /// Returns true if the response is 400 BadRequest @@ -4124,10 +4124,10 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } - partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); + public virtual void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode) { } } - partial void FormatTestEnumParameters(ref Option enumFormString, Option> enumFormStringArray, ref Option enumHeaderString, Option> enumHeaderStringArray, ref Option enumQueryDouble, ref Option enumQueryInteger, ref Option enumQueryString, Option> enumQueryStringArray); + public virtual void FormatTestEnumParameters(ref Option enumFormString, Option> enumFormStringArray, ref Option enumHeaderString, Option> enumHeaderStringArray, ref Option enumQueryDouble, ref Option enumQueryInteger, ref Option enumQueryString, Option> enumQueryStringArray) { } /// /// Validates the request parameters @@ -4181,7 +4181,7 @@ private void AfterTestEnumParametersDefaultImplementation(ITestEnumParametersApi /// /// /// - partial void AfterTestEnumParameters(ref bool suppressDefaultLog, ITestEnumParametersApiResponse apiResponseLocalVar, Option enumFormString, Option> enumFormStringArray, Option enumHeaderString, Option> enumHeaderStringArray, Option enumQueryDouble, Option enumQueryInteger, Option enumQueryString, Option> enumQueryStringArray); + public virtual void AfterTestEnumParameters(ref bool suppressDefaultLog, ITestEnumParametersApiResponse apiResponseLocalVar, Option enumFormString, Option> enumFormStringArray, Option enumHeaderString, Option> enumHeaderStringArray, Option enumQueryDouble, Option enumQueryInteger, Option enumQueryString, Option> enumQueryStringArray) { } /// /// Logs exceptions that occur while retrieving the server response @@ -4220,7 +4220,7 @@ private void OnErrorTestEnumParametersDefaultImplementation(Exception exceptionL /// /// /// - 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); + public virtual 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 @@ -4377,7 +4377,7 @@ public TestEnumParametersApiResponse(ILogger logg OnCreated(httpRequestMessage, httpResponseMessage); } - partial void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage); + public virtual void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage) { } /// /// Returns true if the response is 400 BadRequest @@ -4399,10 +4399,10 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } - partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); + public virtual void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode) { } } - partial void FormatTestGroupParameters(ref bool requiredBooleanGroup, ref long requiredInt64Group, ref int requiredStringGroup, ref Option booleanGroup, ref Option int64Group, ref Option stringGroup); + public virtual void FormatTestGroupParameters(ref bool requiredBooleanGroup, ref long requiredInt64Group, ref int requiredStringGroup, ref Option booleanGroup, ref Option int64Group, ref Option stringGroup) { } /// /// Processes the server response @@ -4433,7 +4433,7 @@ private void AfterTestGroupParametersDefaultImplementation(ITestGroupParametersA /// /// /// - partial void AfterTestGroupParameters(ref bool suppressDefaultLog, ITestGroupParametersApiResponse apiResponseLocalVar, bool requiredBooleanGroup, long requiredInt64Group, int requiredStringGroup, Option booleanGroup, Option int64Group, Option stringGroup); + public virtual void AfterTestGroupParameters(ref bool suppressDefaultLog, ITestGroupParametersApiResponse apiResponseLocalVar, bool requiredBooleanGroup, long requiredInt64Group, int requiredStringGroup, Option booleanGroup, Option int64Group, Option stringGroup) { } /// /// Logs exceptions that occur while retrieving the server response @@ -4468,7 +4468,7 @@ private void OnErrorTestGroupParametersDefaultImplementation(Exception exception /// /// /// - partial void OnErrorTestGroupParameters(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, bool requiredBooleanGroup, long requiredInt64Group, int requiredStringGroup, Option booleanGroup, Option int64Group, Option stringGroup); + public virtual 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) @@ -4604,7 +4604,7 @@ public TestGroupParametersApiResponse(ILogger lo OnCreated(httpRequestMessage, httpResponseMessage); } - partial void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage); + public virtual void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage) { } /// /// Returns true if the response is 400 BadRequest @@ -4620,10 +4620,10 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } - partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); + public virtual void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode) { } } - partial void FormatTestInlineAdditionalProperties(Dictionary requestBody); + public virtual void FormatTestInlineAdditionalProperties(Dictionary requestBody) { } /// /// Validates the request parameters @@ -4655,7 +4655,7 @@ private void AfterTestInlineAdditionalPropertiesDefaultImplementation(ITestInlin /// /// /// - partial void AfterTestInlineAdditionalProperties(ref bool suppressDefaultLog, ITestInlineAdditionalPropertiesApiResponse apiResponseLocalVar, Dictionary requestBody); + public virtual void AfterTestInlineAdditionalProperties(ref bool suppressDefaultLog, ITestInlineAdditionalPropertiesApiResponse apiResponseLocalVar, Dictionary requestBody) { } /// /// Logs exceptions that occur while retrieving the server response @@ -4680,7 +4680,7 @@ private void OnErrorTestInlineAdditionalPropertiesDefaultImplementation(Exceptio /// /// /// - partial void OnErrorTestInlineAdditionalProperties(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, Dictionary requestBody); + public virtual void OnErrorTestInlineAdditionalProperties(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, Dictionary requestBody) { } /// /// test inline additionalProperties @@ -4793,7 +4793,7 @@ public TestInlineAdditionalPropertiesApiResponse(ILogger /// Returns true if the response is 200 Ok @@ -4809,10 +4809,10 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } - partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); + public virtual void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode) { } } - partial void FormatTestInlineFreeformAdditionalProperties(TestInlineFreeformAdditionalPropertiesRequest testInlineFreeformAdditionalPropertiesRequest); + public virtual void FormatTestInlineFreeformAdditionalProperties(TestInlineFreeformAdditionalPropertiesRequest testInlineFreeformAdditionalPropertiesRequest) { } /// /// Validates the request parameters @@ -4844,7 +4844,7 @@ private void AfterTestInlineFreeformAdditionalPropertiesDefaultImplementation(IT /// /// /// - partial void AfterTestInlineFreeformAdditionalProperties(ref bool suppressDefaultLog, ITestInlineFreeformAdditionalPropertiesApiResponse apiResponseLocalVar, TestInlineFreeformAdditionalPropertiesRequest testInlineFreeformAdditionalPropertiesRequest); + public virtual void AfterTestInlineFreeformAdditionalProperties(ref bool suppressDefaultLog, ITestInlineFreeformAdditionalPropertiesApiResponse apiResponseLocalVar, TestInlineFreeformAdditionalPropertiesRequest testInlineFreeformAdditionalPropertiesRequest) { } /// /// Logs exceptions that occur while retrieving the server response @@ -4869,7 +4869,7 @@ private void OnErrorTestInlineFreeformAdditionalPropertiesDefaultImplementation( /// /// /// - partial void OnErrorTestInlineFreeformAdditionalProperties(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, TestInlineFreeformAdditionalPropertiesRequest testInlineFreeformAdditionalPropertiesRequest); + public virtual void OnErrorTestInlineFreeformAdditionalProperties(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, TestInlineFreeformAdditionalPropertiesRequest testInlineFreeformAdditionalPropertiesRequest) { } /// /// test inline free-form additionalProperties @@ -4982,7 +4982,7 @@ public TestInlineFreeformAdditionalPropertiesApiResponse(ILogger /// Returns true if the response is 200 Ok @@ -4998,10 +4998,10 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } - partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); + public virtual void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode) { } } - partial void FormatTestJsonFormData(ref string param, ref string param2); + public virtual void FormatTestJsonFormData(ref string param, ref string param2) { } /// /// Validates the request parameters @@ -5039,7 +5039,7 @@ private void AfterTestJsonFormDataDefaultImplementation(ITestJsonFormDataApiResp /// /// /// - partial void AfterTestJsonFormData(ref bool suppressDefaultLog, ITestJsonFormDataApiResponse apiResponseLocalVar, string param, string param2); + public virtual void AfterTestJsonFormData(ref bool suppressDefaultLog, ITestJsonFormDataApiResponse apiResponseLocalVar, string param, string param2) { } /// /// Logs exceptions that occur while retrieving the server response @@ -5066,7 +5066,7 @@ private void OnErrorTestJsonFormDataDefaultImplementation(Exception exceptionLoc /// /// /// - partial void OnErrorTestJsonFormData(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, string param, string param2); + public virtual void OnErrorTestJsonFormData(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, string param, string param2) { } /// /// test json serialization of form data @@ -5189,7 +5189,7 @@ public TestJsonFormDataApiResponse(ILogger logger, OnCreated(httpRequestMessage, httpResponseMessage); } - partial void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage); + public virtual void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage) { } /// /// Returns true if the response is 200 Ok @@ -5205,10 +5205,10 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } - partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); + public virtual void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode) { } } - partial void FormatTestQueryParameterCollectionFormat(List context, List http, List ioutil, List pipe, ref string requiredNotNullable, List url, ref Option notRequiredNotNullable, ref Option notRequiredNullable, ref string requiredNullable); + public virtual void FormatTestQueryParameterCollectionFormat(List context, List http, List ioutil, List pipe, ref string requiredNotNullable, List url, ref Option notRequiredNotNullable, ref Option notRequiredNullable, ref string requiredNullable) { } /// /// Validates the request parameters @@ -5280,7 +5280,7 @@ private void AfterTestQueryParameterCollectionFormatDefaultImplementation(ITestQ /// /// /// - partial void AfterTestQueryParameterCollectionFormat(ref bool suppressDefaultLog, ITestQueryParameterCollectionFormatApiResponse apiResponseLocalVar, List context, List http, List ioutil, List pipe, string requiredNotNullable, List url, Option notRequiredNotNullable, Option notRequiredNullable, string requiredNullable); + public virtual void AfterTestQueryParameterCollectionFormat(ref bool suppressDefaultLog, ITestQueryParameterCollectionFormatApiResponse apiResponseLocalVar, List context, List http, List ioutil, List pipe, string requiredNotNullable, List url, Option notRequiredNotNullable, Option notRequiredNullable, string requiredNullable) { } /// /// Logs exceptions that occur while retrieving the server response @@ -5321,7 +5321,7 @@ private void OnErrorTestQueryParameterCollectionFormatDefaultImplementation(Exce /// /// /// - 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); + public virtual 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 @@ -5454,7 +5454,7 @@ public TestQueryParameterCollectionFormatApiResponse(ILogger /// Returns true if the response is 200 Ok @@ -5470,10 +5470,10 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } - partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); + public virtual void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode) { } } - partial void FormatTestStringMapReference(Dictionary requestBody); + public virtual void FormatTestStringMapReference(Dictionary requestBody) { } /// /// Validates the request parameters @@ -5505,7 +5505,7 @@ private void AfterTestStringMapReferenceDefaultImplementation(ITestStringMapRefe /// /// /// - partial void AfterTestStringMapReference(ref bool suppressDefaultLog, ITestStringMapReferenceApiResponse apiResponseLocalVar, Dictionary requestBody); + public virtual void AfterTestStringMapReference(ref bool suppressDefaultLog, ITestStringMapReferenceApiResponse apiResponseLocalVar, Dictionary requestBody) { } /// /// Logs exceptions that occur while retrieving the server response @@ -5530,7 +5530,7 @@ private void OnErrorTestStringMapReferenceDefaultImplementation(Exception except /// /// /// - partial void OnErrorTestStringMapReference(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, Dictionary requestBody); + public virtual void OnErrorTestStringMapReference(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, Dictionary requestBody) { } /// /// test referenced string map @@ -5643,7 +5643,7 @@ public TestStringMapReferenceApiResponse(ILogger /// Returns true if the response is 200 Ok @@ -5659,7 +5659,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } - partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); + public virtual void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode) { } } } } 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 010a227c8b27..bb046ae443a5 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 @@ -170,7 +170,7 @@ public FakeClassnameTags123Api(ILogger logger, ILoggerF OauthTokenProvider = oauthTokenProvider; } - partial void FormatTestClassname(ModelClient modelClient); + public virtual void FormatTestClassname(ModelClient modelClient) { } /// /// Validates the request parameters @@ -202,7 +202,7 @@ private void AfterTestClassnameDefaultImplementation(ITestClassnameApiResponse a /// /// /// - partial void AfterTestClassname(ref bool suppressDefaultLog, ITestClassnameApiResponse apiResponseLocalVar, ModelClient modelClient); + public virtual void AfterTestClassname(ref bool suppressDefaultLog, ITestClassnameApiResponse apiResponseLocalVar, ModelClient modelClient) { } /// /// Logs exceptions that occur while retrieving the server response @@ -227,7 +227,7 @@ private void OnErrorTestClassnameDefaultImplementation(Exception exceptionLocalV /// /// /// - partial void OnErrorTestClassname(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, ModelClient modelClient); + public virtual 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 @@ -361,7 +361,7 @@ public TestClassnameApiResponse(ILogger logger, System OnCreated(httpRequestMessage, httpResponseMessage); } - partial void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage); + public virtual void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage) { } /// /// Returns true if the response is 200 Ok @@ -409,7 +409,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } - partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); + public virtual void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode) { } } } } 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 6f1add615397..42ae49bd8dbf 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 @@ -674,7 +674,7 @@ public PetApi(ILogger logger, ILoggerFactory loggerFactory, HttpClient h OauthTokenProvider = oauthTokenProvider; } - partial void FormatAddPet(Pet pet); + public virtual void FormatAddPet(Pet pet) { } /// /// Validates the request parameters @@ -706,7 +706,7 @@ private void AfterAddPetDefaultImplementation(IAddPetApiResponse apiResponseLoca /// /// /// - partial void AfterAddPet(ref bool suppressDefaultLog, IAddPetApiResponse apiResponseLocalVar, Pet pet); + public virtual void AfterAddPet(ref bool suppressDefaultLog, IAddPetApiResponse apiResponseLocalVar, Pet pet) { } /// /// Logs exceptions that occur while retrieving the server response @@ -731,7 +731,7 @@ private void OnErrorAddPetDefaultImplementation(Exception exceptionLocalVar, str /// /// /// - partial void OnErrorAddPet(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, Pet pet); + public virtual void OnErrorAddPet(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, Pet pet) { } /// /// Add a new pet to the store @@ -866,7 +866,7 @@ public AddPetApiResponse(ILogger logger, System.Net.Http.Http OnCreated(httpRequestMessage, httpResponseMessage); } - partial void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage); + public virtual void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage) { } /// /// Returns true if the response is 405 MethodNotAllowed @@ -882,10 +882,10 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } - partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); + public virtual void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode) { } } - partial void FormatDeletePet(ref long petId, ref Option apiKey); + public virtual void FormatDeletePet(ref long petId, ref Option apiKey) { } /// /// Validates the request parameters @@ -919,7 +919,7 @@ private void AfterDeletePetDefaultImplementation(IDeletePetApiResponse apiRespon /// /// /// - partial void AfterDeletePet(ref bool suppressDefaultLog, IDeletePetApiResponse apiResponseLocalVar, long petId, Option apiKey); + public virtual void AfterDeletePet(ref bool suppressDefaultLog, IDeletePetApiResponse apiResponseLocalVar, long petId, Option apiKey) { } /// /// Logs exceptions that occur while retrieving the server response @@ -946,7 +946,7 @@ private void OnErrorDeletePetDefaultImplementation(Exception exceptionLocalVar, /// /// /// - partial void OnErrorDeletePet(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, long petId, Option apiKey); + public virtual void OnErrorDeletePet(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, long petId, Option apiKey) { } /// /// Deletes a pet @@ -1062,7 +1062,7 @@ public DeletePetApiResponse(ILogger logger, System.Net.Htt OnCreated(httpRequestMessage, httpResponseMessage); } - partial void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage); + public virtual void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage) { } /// /// Returns true if the response is 400 BadRequest @@ -1078,10 +1078,10 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } - partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); + public virtual void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode) { } } - partial void FormatFindPetsByStatus(List status); + public virtual void FormatFindPetsByStatus(List status) { } /// /// Validates the request parameters @@ -1113,7 +1113,7 @@ private void AfterFindPetsByStatusDefaultImplementation(IFindPetsByStatusApiResp /// /// /// - partial void AfterFindPetsByStatus(ref bool suppressDefaultLog, IFindPetsByStatusApiResponse apiResponseLocalVar, List status); + public virtual void AfterFindPetsByStatus(ref bool suppressDefaultLog, IFindPetsByStatusApiResponse apiResponseLocalVar, List status) { } /// /// Logs exceptions that occur while retrieving the server response @@ -1138,7 +1138,7 @@ private void OnErrorFindPetsByStatusDefaultImplementation(Exception exceptionLoc /// /// /// - partial void OnErrorFindPetsByStatus(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, List status); + public virtual 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 @@ -1274,7 +1274,7 @@ public FindPetsByStatusApiResponse(ILogger logger, OnCreated(httpRequestMessage, httpResponseMessage); } - partial void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage); + public virtual void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage) { } /// /// Returns true if the response is 200 Ok @@ -1354,10 +1354,10 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } - partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); + public virtual void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode) { } } - partial void FormatFindPetsByTags(List tags); + public virtual void FormatFindPetsByTags(List tags) { } /// /// Validates the request parameters @@ -1389,7 +1389,7 @@ private void AfterFindPetsByTagsDefaultImplementation(IFindPetsByTagsApiResponse /// /// /// - partial void AfterFindPetsByTags(ref bool suppressDefaultLog, IFindPetsByTagsApiResponse apiResponseLocalVar, List tags); + public virtual void AfterFindPetsByTags(ref bool suppressDefaultLog, IFindPetsByTagsApiResponse apiResponseLocalVar, List tags) { } /// /// Logs exceptions that occur while retrieving the server response @@ -1414,7 +1414,7 @@ private void OnErrorFindPetsByTagsDefaultImplementation(Exception exceptionLocal /// /// /// - partial void OnErrorFindPetsByTags(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, List tags); + public virtual 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. @@ -1550,7 +1550,7 @@ public FindPetsByTagsApiResponse(ILogger logger, Syst OnCreated(httpRequestMessage, httpResponseMessage); } - partial void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage); + public virtual void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage) { } /// /// Returns true if the response is 200 Ok @@ -1604,10 +1604,10 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } - partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); + public virtual void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode) { } } - partial void FormatGetPetById(ref long petId); + public virtual void FormatGetPetById(ref long petId) { } /// /// Processes the server response @@ -1628,7 +1628,7 @@ private void AfterGetPetByIdDefaultImplementation(IGetPetByIdApiResponse apiResp /// /// /// - partial void AfterGetPetById(ref bool suppressDefaultLog, IGetPetByIdApiResponse apiResponseLocalVar, long petId); + public virtual void AfterGetPetById(ref bool suppressDefaultLog, IGetPetByIdApiResponse apiResponseLocalVar, long petId) { } /// /// Logs exceptions that occur while retrieving the server response @@ -1653,7 +1653,7 @@ private void OnErrorGetPetByIdDefaultImplementation(Exception exceptionLocalVar, /// /// /// - partial void OnErrorGetPetById(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, long petId); + public virtual void OnErrorGetPetById(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, long petId) { } /// /// Find pet by ID Returns a single pet @@ -1778,7 +1778,7 @@ public GetPetByIdApiResponse(ILogger logger, System.Net.H OnCreated(httpRequestMessage, httpResponseMessage); } - partial void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage); + public virtual void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage) { } /// /// Returns true if the response is 200 Ok @@ -1838,10 +1838,10 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } - partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); + public virtual void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode) { } } - partial void FormatUpdatePet(Pet pet); + public virtual void FormatUpdatePet(Pet pet) { } /// /// Validates the request parameters @@ -1873,7 +1873,7 @@ private void AfterUpdatePetDefaultImplementation(IUpdatePetApiResponse apiRespon /// /// /// - partial void AfterUpdatePet(ref bool suppressDefaultLog, IUpdatePetApiResponse apiResponseLocalVar, Pet pet); + public virtual void AfterUpdatePet(ref bool suppressDefaultLog, IUpdatePetApiResponse apiResponseLocalVar, Pet pet) { } /// /// Logs exceptions that occur while retrieving the server response @@ -1898,7 +1898,7 @@ private void OnErrorUpdatePetDefaultImplementation(Exception exceptionLocalVar, /// /// /// - partial void OnErrorUpdatePet(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, Pet pet); + public virtual void OnErrorUpdatePet(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, Pet pet) { } /// /// Update an existing pet @@ -2033,7 +2033,7 @@ public UpdatePetApiResponse(ILogger logger, System.Net.Htt OnCreated(httpRequestMessage, httpResponseMessage); } - partial void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage); + public virtual void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage) { } /// /// Returns true if the response is 400 BadRequest @@ -2061,10 +2061,10 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } - partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); + public virtual void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode) { } } - partial void FormatUpdatePetWithForm(ref long petId, ref Option name, ref Option status); + public virtual void FormatUpdatePetWithForm(ref long petId, ref Option name, ref Option status) { } /// /// Validates the request parameters @@ -2104,7 +2104,7 @@ private void AfterUpdatePetWithFormDefaultImplementation(IUpdatePetWithFormApiRe /// /// /// - partial void AfterUpdatePetWithForm(ref bool suppressDefaultLog, IUpdatePetWithFormApiResponse apiResponseLocalVar, long petId, Option name, Option status); + public virtual void AfterUpdatePetWithForm(ref bool suppressDefaultLog, IUpdatePetWithFormApiResponse apiResponseLocalVar, long petId, Option name, Option status) { } /// /// Logs exceptions that occur while retrieving the server response @@ -2133,7 +2133,7 @@ private void OnErrorUpdatePetWithFormDefaultImplementation(Exception exceptionLo /// /// /// - partial void OnErrorUpdatePetWithForm(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, long petId, Option name, Option status); + public virtual 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 @@ -2270,7 +2270,7 @@ public UpdatePetWithFormApiResponse(ILogger logger OnCreated(httpRequestMessage, httpResponseMessage); } - partial void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage); + public virtual void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage) { } /// /// Returns true if the response is 405 MethodNotAllowed @@ -2286,10 +2286,10 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } - partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); + public virtual void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode) { } } - partial void FormatUploadFile(ref long petId, ref Option additionalMetadata, ref Option file); + public virtual void FormatUploadFile(ref long petId, ref Option additionalMetadata, ref Option file) { } /// /// Validates the request parameters @@ -2329,7 +2329,7 @@ private void AfterUploadFileDefaultImplementation(IUploadFileApiResponse apiResp /// /// /// - partial void AfterUploadFile(ref bool suppressDefaultLog, IUploadFileApiResponse apiResponseLocalVar, long petId, Option additionalMetadata, Option file); + public virtual void AfterUploadFile(ref bool suppressDefaultLog, IUploadFileApiResponse apiResponseLocalVar, long petId, Option additionalMetadata, Option file) { } /// /// Logs exceptions that occur while retrieving the server response @@ -2358,7 +2358,7 @@ private void OnErrorUploadFileDefaultImplementation(Exception exceptionLocalVar, /// /// /// - partial void OnErrorUploadFile(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, long petId, Option additionalMetadata, Option file); + public virtual void OnErrorUploadFile(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, long petId, Option additionalMetadata, Option file) { } /// /// uploads an image @@ -2503,7 +2503,7 @@ public UploadFileApiResponse(ILogger logger, System.Net.H OnCreated(httpRequestMessage, httpResponseMessage); } - partial void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage); + public virtual void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage) { } /// /// Returns true if the response is 200 Ok @@ -2551,10 +2551,10 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } - partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); + public virtual void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode) { } } - partial void FormatUploadFileWithRequiredFile(ref long petId, ref System.IO.Stream requiredFile, ref Option additionalMetadata); + public virtual void FormatUploadFileWithRequiredFile(ref long petId, ref System.IO.Stream requiredFile, ref Option additionalMetadata) { } /// /// Validates the request parameters @@ -2594,7 +2594,7 @@ private void AfterUploadFileWithRequiredFileDefaultImplementation(IUploadFileWit /// /// /// - partial void AfterUploadFileWithRequiredFile(ref bool suppressDefaultLog, IUploadFileWithRequiredFileApiResponse apiResponseLocalVar, long petId, System.IO.Stream requiredFile, Option additionalMetadata); + public virtual void AfterUploadFileWithRequiredFile(ref bool suppressDefaultLog, IUploadFileWithRequiredFileApiResponse apiResponseLocalVar, long petId, System.IO.Stream requiredFile, Option additionalMetadata) { } /// /// Logs exceptions that occur while retrieving the server response @@ -2623,7 +2623,7 @@ private void OnErrorUploadFileWithRequiredFileDefaultImplementation(Exception ex /// /// /// - partial void OnErrorUploadFileWithRequiredFile(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, long petId, System.IO.Stream requiredFile, Option additionalMetadata); + public virtual void OnErrorUploadFileWithRequiredFile(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, long petId, System.IO.Stream requiredFile, Option additionalMetadata) { } /// /// uploads an image (required) @@ -2768,7 +2768,7 @@ public UploadFileWithRequiredFileApiResponse(ILogger /// Returns true if the response is 200 Ok @@ -2816,7 +2816,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } - partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); + public virtual void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode) { } } } } 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 2cb0523731c5..dd6999ab6093 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 @@ -357,7 +357,7 @@ public StoreApi(ILogger logger, ILoggerFactory loggerFactory, HttpClie OauthTokenProvider = oauthTokenProvider; } - partial void FormatDeleteOrder(ref string orderId); + public virtual void FormatDeleteOrder(ref string orderId) { } /// /// Validates the request parameters @@ -389,7 +389,7 @@ private void AfterDeleteOrderDefaultImplementation(IDeleteOrderApiResponse apiRe /// /// /// - partial void AfterDeleteOrder(ref bool suppressDefaultLog, IDeleteOrderApiResponse apiResponseLocalVar, string orderId); + public virtual void AfterDeleteOrder(ref bool suppressDefaultLog, IDeleteOrderApiResponse apiResponseLocalVar, string orderId) { } /// /// Logs exceptions that occur while retrieving the server response @@ -414,7 +414,7 @@ private void OnErrorDeleteOrderDefaultImplementation(Exception exceptionLocalVar /// /// /// - partial void OnErrorDeleteOrder(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, string orderId); + public virtual 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 @@ -514,7 +514,7 @@ public DeleteOrderApiResponse(ILogger logger, System.Net OnCreated(httpRequestMessage, httpResponseMessage); } - partial void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage); + public virtual void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage) { } /// /// Returns true if the response is 400 BadRequest @@ -536,7 +536,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } - partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); + public virtual void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode) { } } /// @@ -556,7 +556,7 @@ private void AfterGetInventoryDefaultImplementation(IGetInventoryApiResponse api /// /// /// - partial void AfterGetInventory(ref bool suppressDefaultLog, IGetInventoryApiResponse apiResponseLocalVar); + public virtual void AfterGetInventory(ref bool suppressDefaultLog, IGetInventoryApiResponse apiResponseLocalVar) { } /// /// Logs exceptions that occur while retrieving the server response @@ -579,7 +579,7 @@ private void OnErrorGetInventoryDefaultImplementation(Exception exceptionLocalVa /// /// /// - partial void OnErrorGetInventory(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar); + public virtual void OnErrorGetInventory(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar) { } /// /// Returns pet inventories by status Returns a map of status codes to quantities @@ -690,7 +690,7 @@ public GetInventoryApiResponse(ILogger logger, System.N OnCreated(httpRequestMessage, httpResponseMessage); } - partial void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage); + public virtual void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage) { } /// /// Returns true if the response is 200 Ok @@ -738,10 +738,10 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } - partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); + public virtual void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode) { } } - partial void FormatGetOrderById(ref long orderId); + public virtual void FormatGetOrderById(ref long orderId) { } /// /// Processes the server response @@ -762,7 +762,7 @@ private void AfterGetOrderByIdDefaultImplementation(IGetOrderByIdApiResponse api /// /// /// - partial void AfterGetOrderById(ref bool suppressDefaultLog, IGetOrderByIdApiResponse apiResponseLocalVar, long orderId); + public virtual void AfterGetOrderById(ref bool suppressDefaultLog, IGetOrderByIdApiResponse apiResponseLocalVar, long orderId) { } /// /// Logs exceptions that occur while retrieving the server response @@ -787,7 +787,7 @@ private void OnErrorGetOrderByIdDefaultImplementation(Exception exceptionLocalVa /// /// /// - partial void OnErrorGetOrderById(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, long orderId); + public virtual 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 @@ -895,7 +895,7 @@ public GetOrderByIdApiResponse(ILogger logger, System.N OnCreated(httpRequestMessage, httpResponseMessage); } - partial void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage); + public virtual void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage) { } /// /// Returns true if the response is 200 Ok @@ -955,10 +955,10 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } - partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); + public virtual void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode) { } } - partial void FormatPlaceOrder(Order order); + public virtual void FormatPlaceOrder(Order order) { } /// /// Validates the request parameters @@ -990,7 +990,7 @@ private void AfterPlaceOrderDefaultImplementation(IPlaceOrderApiResponse apiResp /// /// /// - partial void AfterPlaceOrder(ref bool suppressDefaultLog, IPlaceOrderApiResponse apiResponseLocalVar, Order order); + public virtual void AfterPlaceOrder(ref bool suppressDefaultLog, IPlaceOrderApiResponse apiResponseLocalVar, Order order) { } /// /// Logs exceptions that occur while retrieving the server response @@ -1015,7 +1015,7 @@ private void OnErrorPlaceOrderDefaultImplementation(Exception exceptionLocalVar, /// /// /// - partial void OnErrorPlaceOrder(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, Order order); + public virtual void OnErrorPlaceOrder(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, Order order) { } /// /// Place an order for a pet @@ -1137,7 +1137,7 @@ public PlaceOrderApiResponse(ILogger logger, System.Net.H OnCreated(httpRequestMessage, httpResponseMessage); } - partial void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage); + public virtual void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage) { } /// /// Returns true if the response is 200 Ok @@ -1191,7 +1191,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } - partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); + public virtual void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode) { } } } } 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 46a87aed2c07..88d7459aa526 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 @@ -599,7 +599,7 @@ public UserApi(ILogger logger, ILoggerFactory loggerFactory, HttpClient OauthTokenProvider = oauthTokenProvider; } - partial void FormatCreateUser(User user); + public virtual void FormatCreateUser(User user) { } /// /// Validates the request parameters @@ -631,7 +631,7 @@ private void AfterCreateUserDefaultImplementation(ICreateUserApiResponse apiResp /// /// /// - partial void AfterCreateUser(ref bool suppressDefaultLog, ICreateUserApiResponse apiResponseLocalVar, User user); + public virtual void AfterCreateUser(ref bool suppressDefaultLog, ICreateUserApiResponse apiResponseLocalVar, User user) { } /// /// Logs exceptions that occur while retrieving the server response @@ -656,7 +656,7 @@ private void OnErrorCreateUserDefaultImplementation(Exception exceptionLocalVar, /// /// /// - partial void OnErrorCreateUser(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, User user); + public virtual 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. @@ -769,7 +769,7 @@ public CreateUserApiResponse(ILogger logger, System.Net.H OnCreated(httpRequestMessage, httpResponseMessage); } - partial void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage); + public virtual void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage) { } /// /// Returns true if the response is the default response type @@ -785,10 +785,10 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } - partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); + public virtual void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode) { } } - partial void FormatCreateUsersWithArrayInput(List user); + public virtual void FormatCreateUsersWithArrayInput(List user) { } /// /// Validates the request parameters @@ -820,7 +820,7 @@ private void AfterCreateUsersWithArrayInputDefaultImplementation(ICreateUsersWit /// /// /// - partial void AfterCreateUsersWithArrayInput(ref bool suppressDefaultLog, ICreateUsersWithArrayInputApiResponse apiResponseLocalVar, List user); + public virtual void AfterCreateUsersWithArrayInput(ref bool suppressDefaultLog, ICreateUsersWithArrayInputApiResponse apiResponseLocalVar, List user) { } /// /// Logs exceptions that occur while retrieving the server response @@ -845,7 +845,7 @@ private void OnErrorCreateUsersWithArrayInputDefaultImplementation(Exception exc /// /// /// - partial void OnErrorCreateUsersWithArrayInput(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, List user); + public virtual void OnErrorCreateUsersWithArrayInput(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, List user) { } /// /// Creates list of users with given input array @@ -958,7 +958,7 @@ public CreateUsersWithArrayInputApiResponse(ILogger /// Returns true if the response is the default response type @@ -974,10 +974,10 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } - partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); + public virtual void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode) { } } - partial void FormatCreateUsersWithListInput(List user); + public virtual void FormatCreateUsersWithListInput(List user) { } /// /// Validates the request parameters @@ -1009,7 +1009,7 @@ private void AfterCreateUsersWithListInputDefaultImplementation(ICreateUsersWith /// /// /// - partial void AfterCreateUsersWithListInput(ref bool suppressDefaultLog, ICreateUsersWithListInputApiResponse apiResponseLocalVar, List user); + public virtual void AfterCreateUsersWithListInput(ref bool suppressDefaultLog, ICreateUsersWithListInputApiResponse apiResponseLocalVar, List user) { } /// /// Logs exceptions that occur while retrieving the server response @@ -1034,7 +1034,7 @@ private void OnErrorCreateUsersWithListInputDefaultImplementation(Exception exce /// /// /// - partial void OnErrorCreateUsersWithListInput(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, List user); + public virtual void OnErrorCreateUsersWithListInput(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, List user) { } /// /// Creates list of users with given input array @@ -1147,7 +1147,7 @@ public CreateUsersWithListInputApiResponse(ILogger /// Returns true if the response is the default response type @@ -1163,10 +1163,10 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } - partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); + public virtual void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode) { } } - partial void FormatDeleteUser(ref string username); + public virtual void FormatDeleteUser(ref string username) { } /// /// Validates the request parameters @@ -1198,7 +1198,7 @@ private void AfterDeleteUserDefaultImplementation(IDeleteUserApiResponse apiResp /// /// /// - partial void AfterDeleteUser(ref bool suppressDefaultLog, IDeleteUserApiResponse apiResponseLocalVar, string username); + public virtual void AfterDeleteUser(ref bool suppressDefaultLog, IDeleteUserApiResponse apiResponseLocalVar, string username) { } /// /// Logs exceptions that occur while retrieving the server response @@ -1223,7 +1223,7 @@ private void OnErrorDeleteUserDefaultImplementation(Exception exceptionLocalVar, /// /// /// - partial void OnErrorDeleteUser(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, string username); + public virtual 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. @@ -1323,7 +1323,7 @@ public DeleteUserApiResponse(ILogger logger, System.Net.H OnCreated(httpRequestMessage, httpResponseMessage); } - partial void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage); + public virtual void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage) { } /// /// Returns true if the response is 400 BadRequest @@ -1345,10 +1345,10 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } - partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); + public virtual void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode) { } } - partial void FormatGetUserByName(ref string username); + public virtual void FormatGetUserByName(ref string username) { } /// /// Validates the request parameters @@ -1380,7 +1380,7 @@ private void AfterGetUserByNameDefaultImplementation(IGetUserByNameApiResponse a /// /// /// - partial void AfterGetUserByName(ref bool suppressDefaultLog, IGetUserByNameApiResponse apiResponseLocalVar, string username); + public virtual void AfterGetUserByName(ref bool suppressDefaultLog, IGetUserByNameApiResponse apiResponseLocalVar, string username) { } /// /// Logs exceptions that occur while retrieving the server response @@ -1405,7 +1405,7 @@ private void OnErrorGetUserByNameDefaultImplementation(Exception exceptionLocalV /// /// /// - partial void OnErrorGetUserByName(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, string username); + public virtual void OnErrorGetUserByName(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, string username) { } /// /// Get user by user name @@ -1515,7 +1515,7 @@ public GetUserByNameApiResponse(ILogger logger, System OnCreated(httpRequestMessage, httpResponseMessage); } - partial void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage); + public virtual void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage) { } /// /// Returns true if the response is 200 Ok @@ -1619,10 +1619,10 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } - partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); + public virtual void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode) { } } - partial void FormatLoginUser(ref string password, ref string username); + public virtual void FormatLoginUser(ref string password, ref string username) { } /// /// Validates the request parameters @@ -1660,7 +1660,7 @@ private void AfterLoginUserDefaultImplementation(ILoginUserApiResponse apiRespon /// /// /// - partial void AfterLoginUser(ref bool suppressDefaultLog, ILoginUserApiResponse apiResponseLocalVar, string password, string username); + public virtual void AfterLoginUser(ref bool suppressDefaultLog, ILoginUserApiResponse apiResponseLocalVar, string password, string username) { } /// /// Logs exceptions that occur while retrieving the server response @@ -1687,7 +1687,7 @@ private void OnErrorLoginUserDefaultImplementation(Exception exceptionLocalVar, /// /// /// - partial void OnErrorLoginUser(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, string password, string username); + public virtual void OnErrorLoginUser(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, string password, string username) { } /// /// Logs user into the system @@ -1805,7 +1805,7 @@ public LoginUserApiResponse(ILogger logger, System.Net.Htt OnCreated(httpRequestMessage, httpResponseMessage); } - partial void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage); + public virtual void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage) { } /// /// Returns true if the response is 200 Ok @@ -1859,7 +1859,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } - partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); + public virtual void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode) { } } /// @@ -1879,7 +1879,7 @@ private void AfterLogoutUserDefaultImplementation(ILogoutUserApiResponse apiResp /// /// /// - partial void AfterLogoutUser(ref bool suppressDefaultLog, ILogoutUserApiResponse apiResponseLocalVar); + public virtual void AfterLogoutUser(ref bool suppressDefaultLog, ILogoutUserApiResponse apiResponseLocalVar) { } /// /// Logs exceptions that occur while retrieving the server response @@ -1902,7 +1902,7 @@ private void OnErrorLogoutUserDefaultImplementation(Exception exceptionLocalVar, /// /// /// - partial void OnErrorLogoutUser(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar); + public virtual void OnErrorLogoutUser(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar) { } /// /// Logs out current logged in user session @@ -1995,7 +1995,7 @@ public LogoutUserApiResponse(ILogger logger, System.Net.H OnCreated(httpRequestMessage, httpResponseMessage); } - partial void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage); + public virtual void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage) { } /// /// Returns true if the response is the default response type @@ -2011,10 +2011,10 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } - partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); + public virtual void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode) { } } - partial void FormatUpdateUser(User user, ref string username); + public virtual void FormatUpdateUser(User user, ref string username) { } /// /// Validates the request parameters @@ -2052,7 +2052,7 @@ private void AfterUpdateUserDefaultImplementation(IUpdateUserApiResponse apiResp /// /// /// - partial void AfterUpdateUser(ref bool suppressDefaultLog, IUpdateUserApiResponse apiResponseLocalVar, User user, string username); + public virtual void AfterUpdateUser(ref bool suppressDefaultLog, IUpdateUserApiResponse apiResponseLocalVar, User user, string username) { } /// /// Logs exceptions that occur while retrieving the server response @@ -2079,7 +2079,7 @@ private void OnErrorUpdateUserDefaultImplementation(Exception exceptionLocalVar, /// /// /// - partial void OnErrorUpdateUser(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, User user, string username); + public virtual 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. @@ -2195,7 +2195,7 @@ public UpdateUserApiResponse(ILogger logger, System.Net.H OnCreated(httpRequestMessage, httpResponseMessage); } - partial void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage); + public virtual void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage) { } /// /// Returns true if the response is 400 BadRequest @@ -2217,7 +2217,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } - partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); + public virtual void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode) { } } } } diff --git a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Client/ApiResponse`1.cs b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Client/ApiResponse`1.cs index 416f7a04e3d6..26f36afb14be 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Client/ApiResponse`1.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Client/ApiResponse`1.cs @@ -145,7 +145,7 @@ public ApiResponse(global::System.Net.Http.HttpRequestMessage httpRequestMessage OnCreated(httpRequestMessage, httpResponseMessage); } - partial void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage); + public virtual void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage) { } } /// diff --git a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/Activity.cs b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/Activity.cs index a5e4bd35e9bc..7c5af7896600 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/Activity.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/Activity.cs @@ -40,7 +40,7 @@ public Activity(Option /// Used to track the state of ActivityOutputs diff --git a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/ActivityOutputElementRepresentation.cs b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/ActivityOutputElementRepresentation.cs index d7b4374e6a7b..3f53511fff0c 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/ActivityOutputElementRepresentation.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/ActivityOutputElementRepresentation.cs @@ -42,7 +42,7 @@ public ActivityOutputElementRepresentation(Option prop1 = default, Optio OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Used to track the state of Prop1 diff --git a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/AdditionalPropertiesClass.cs b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/AdditionalPropertiesClass.cs index ec17222fbc8f..f1db02649575 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/AdditionalPropertiesClass.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/AdditionalPropertiesClass.cs @@ -54,7 +54,7 @@ public AdditionalPropertiesClass(Option anytype1 = default, Option /// Used to track the state of Anytype1 diff --git a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/Animal.cs b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/Animal.cs index 74cb14f52d91..fb7179ed5b86 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/Animal.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/Animal.cs @@ -40,7 +40,7 @@ public Animal(Option color = default) OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// The discriminator diff --git a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/ApiResponse.cs b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/ApiResponse.cs index 77ec0bd5ed2d..6d2870b461f3 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/ApiResponse.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/ApiResponse.cs @@ -44,7 +44,7 @@ public ApiResponse(Option code = default, Option message = default OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Used to track the state of Code diff --git a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/Apple.cs b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/Apple.cs index df3bc9af06cc..d021ad2d4958 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/Apple.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/Apple.cs @@ -44,7 +44,7 @@ public Apple(Option colorCode = default, Option cultivar = defau OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Used to track the state of ColorCode diff --git a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/AppleReq.cs b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/AppleReq.cs index 1cc72ecd59d3..73f39589fe21 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/AppleReq.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/AppleReq.cs @@ -42,7 +42,7 @@ public AppleReq(string cultivar, Option mealy = default) OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Gets or Sets Cultivar diff --git a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/ArrayOfArrayOfNumberOnly.cs b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/ArrayOfArrayOfNumberOnly.cs index d2398a452eee..697f6c964a19 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/ArrayOfArrayOfNumberOnly.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/ArrayOfArrayOfNumberOnly.cs @@ -40,7 +40,7 @@ public ArrayOfArrayOfNumberOnly(Option>> arrayArrayNumber = d OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Used to track the state of ArrayArrayNumber diff --git a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/ArrayOfNumberOnly.cs b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/ArrayOfNumberOnly.cs index cce8d5d564b6..b1bba9d4e9b1 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/ArrayOfNumberOnly.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/ArrayOfNumberOnly.cs @@ -40,7 +40,7 @@ public ArrayOfNumberOnly(Option> arrayNumber = default) OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Used to track the state of ArrayNumber diff --git a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/ArrayTest.cs b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/ArrayTest.cs index 3fbc72e2f5ab..4200504840ed 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/ArrayTest.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/ArrayTest.cs @@ -44,7 +44,7 @@ public ArrayTest(Option>> arrayArrayOfInteger = default, Option< OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Used to track the state of ArrayArrayOfInteger diff --git a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/Banana.cs b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/Banana.cs index d92ba4ae6aef..cdd4c9cc4ce4 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/Banana.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/Banana.cs @@ -40,7 +40,7 @@ public Banana(Option lengthCm = default) OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Used to track the state of LengthCm diff --git a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/BananaReq.cs b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/BananaReq.cs index c9734cbe3808..371a8d61c67b 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/BananaReq.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/BananaReq.cs @@ -42,7 +42,7 @@ public BananaReq(decimal lengthCm, Option sweet = default) OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Gets or Sets LengthCm diff --git a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/BasquePig.cs b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/BasquePig.cs index 9938d89e008d..3bb04d8e04e1 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/BasquePig.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/BasquePig.cs @@ -40,7 +40,7 @@ public BasquePig(string className) OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Gets or Sets ClassName diff --git a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/Capitalization.cs b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/Capitalization.cs index a1fb0b3eb574..c9d0f8a45227 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/Capitalization.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/Capitalization.cs @@ -50,7 +50,7 @@ public Capitalization(Option aTTNAME = default, Option capitalCa OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Used to track the state of ATT_NAME diff --git a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/Cat.cs b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/Cat.cs index 0ffe1228015d..4b85228b4b74 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/Cat.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/Cat.cs @@ -41,7 +41,7 @@ public Cat(Option color = default, Option declawed = default) : b OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// The discriminator diff --git a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/Category.cs b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/Category.cs index f483d87f36c8..a0dfa1015567 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/Category.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/Category.cs @@ -42,7 +42,7 @@ public Category(Option id = default, string name = @"default-name") OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Used to track the state of Id diff --git a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/ChildCat.cs b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/ChildCat.cs index 8d76e5b9a7ce..42783df35af6 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/ChildCat.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/ChildCat.cs @@ -40,7 +40,7 @@ public ChildCat(Option name = default) : base() OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// The discriminator diff --git a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/ClassModel.cs b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/ClassModel.cs index 7c49d7adb55c..e181a808250b 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/ClassModel.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/ClassModel.cs @@ -40,7 +40,7 @@ public ClassModel(Option @class = default) OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Used to track the state of Class diff --git a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/ComplexQuadrilateral.cs b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/ComplexQuadrilateral.cs index 3023a45610e4..9ed7d63b7732 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/ComplexQuadrilateral.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/ComplexQuadrilateral.cs @@ -42,7 +42,7 @@ public ComplexQuadrilateral(string quadrilateralType, string shapeType) OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Gets or Sets QuadrilateralType diff --git a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/DanishPig.cs b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/DanishPig.cs index 14b2ed3b153f..8377e0f76cf5 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/DanishPig.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/DanishPig.cs @@ -40,7 +40,7 @@ public DanishPig(string className) OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Gets or Sets ClassName diff --git a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/DateOnlyClass.cs b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/DateOnlyClass.cs index 1c478cf336df..d67efe6868d1 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/DateOnlyClass.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/DateOnlyClass.cs @@ -40,7 +40,7 @@ public DateOnlyClass(Option dateOnlyProperty = default) OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Used to track the state of DateOnlyProperty diff --git a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/DeprecatedObject.cs b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/DeprecatedObject.cs index 08067c5cc07c..3e5a4c2ed04c 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/DeprecatedObject.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/DeprecatedObject.cs @@ -40,7 +40,7 @@ public DeprecatedObject(Option name = default) OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Used to track the state of Name diff --git a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/Dog.cs b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/Dog.cs index 605dc512434b..f6cb7298cf5f 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/Dog.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/Dog.cs @@ -41,7 +41,7 @@ public Dog(Option breed = default, Option color = default) : bas OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// The discriminator diff --git a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/Drawing.cs b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/Drawing.cs index a853b96144e2..a37514a314cc 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/Drawing.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/Drawing.cs @@ -46,7 +46,7 @@ public Drawing(Option mainShape = default, Option nullable OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Used to track the state of MainShape diff --git a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/EnumArrays.cs b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/EnumArrays.cs index 6520bebabc0f..26d0c767c66b 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/EnumArrays.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/EnumArrays.cs @@ -42,7 +42,7 @@ public EnumArrays(Option> arrayEnum = default, Op OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Used to track the state of JustSymbol diff --git a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/EnumTest.cs b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/EnumTest.cs index cb22e561feaf..c4d95e33d06a 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/EnumTest.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/EnumTest.cs @@ -56,7 +56,7 @@ public EnumTest(EnumTestEnumString enumStringRequired, Option /// Gets or Sets EnumStringRequired diff --git a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/EquilateralTriangle.cs b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/EquilateralTriangle.cs index d65c7740e5e8..e68cf480a05f 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/EquilateralTriangle.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/EquilateralTriangle.cs @@ -42,7 +42,7 @@ public EquilateralTriangle(string shapeType, string triangleType) OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Gets or Sets ShapeType diff --git a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/File.cs b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/File.cs index 092f10c09324..0519a20c9bfc 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/File.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/File.cs @@ -40,7 +40,7 @@ public File(Option sourceURI = default) OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Used to track the state of SourceURI diff --git a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/FileSchemaTestClass.cs b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/FileSchemaTestClass.cs index f9d9d9f7a7b8..1924423c7bc7 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/FileSchemaTestClass.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/FileSchemaTestClass.cs @@ -42,7 +42,7 @@ public FileSchemaTestClass(Option file = default, Option> files OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Used to track the state of File diff --git a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/Foo.cs b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/Foo.cs index 3eeca0aa2112..d3fb68454516 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/Foo.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/Foo.cs @@ -40,7 +40,7 @@ public Foo(Option bar = default) OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Used to track the state of Bar diff --git a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/FooGetDefaultResponse.cs b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/FooGetDefaultResponse.cs index c7d043666115..97979c9952d9 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/FooGetDefaultResponse.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/FooGetDefaultResponse.cs @@ -40,7 +40,7 @@ public FooGetDefaultResponse(Option @string = default) OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Used to track the state of String diff --git a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/FormatTest.cs b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/FormatTest.cs index 86d63c7ac5f6..460ee09eae25 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/FormatTest.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/FormatTest.cs @@ -86,7 +86,7 @@ public FormatTest(byte[] @byte, DateTime date, decimal number, string password, OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Gets or Sets Byte diff --git a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/Fruit.cs b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/Fruit.cs index cc8b4530f01c..39f5367f7a2b 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/Fruit.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/Fruit.cs @@ -53,7 +53,7 @@ public Fruit(Banana banana, Option color = default) OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Gets or Sets Apple diff --git a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/FruitReq.cs b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/FruitReq.cs index 1e72875d4d32..fad135111099 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/FruitReq.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/FruitReq.cs @@ -49,7 +49,7 @@ public FruitReq(BananaReq bananaReq) OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Gets or Sets AppleReq diff --git a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/GmFruit.cs b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/GmFruit.cs index 78cb87b61a31..b093b213ea63 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/GmFruit.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/GmFruit.cs @@ -43,7 +43,7 @@ public GmFruit(Option apple, Option banana, Option color OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Used to track the state of Apple diff --git a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/GrandparentAnimal.cs b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/GrandparentAnimal.cs index b23e4826fd6b..6bbb19b1789e 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/GrandparentAnimal.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/GrandparentAnimal.cs @@ -38,7 +38,7 @@ public GrandparentAnimal() OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// The discriminator diff --git a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/HasOnlyReadOnly.cs b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/HasOnlyReadOnly.cs index a4e67f73a8e5..45947ab3cd6a 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/HasOnlyReadOnly.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/HasOnlyReadOnly.cs @@ -42,7 +42,7 @@ internal HasOnlyReadOnly(Option bar = default, Option foo = defa OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Used to track the state of Bar diff --git a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/HealthCheckResult.cs b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/HealthCheckResult.cs index 16afc025fa03..5b841e42fc13 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/HealthCheckResult.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/HealthCheckResult.cs @@ -40,7 +40,7 @@ public HealthCheckResult(Option nullableMessage = default) OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Used to track the state of NullableMessage diff --git a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/IsoscelesTriangle.cs b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/IsoscelesTriangle.cs index cce859524111..651f261659c1 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/IsoscelesTriangle.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/IsoscelesTriangle.cs @@ -42,7 +42,7 @@ public IsoscelesTriangle(string shapeType, string triangleType) OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Gets or Sets ShapeType diff --git a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/List.cs b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/List.cs index 050d58f85c23..ee5738e61a90 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/List.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/List.cs @@ -40,7 +40,7 @@ public List(Option var123List = default) OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Used to track the state of Var123List diff --git a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/LiteralStringClass.cs b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/LiteralStringClass.cs index 522ba51e6cb3..0ab4393a312a 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/LiteralStringClass.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/LiteralStringClass.cs @@ -42,7 +42,7 @@ public LiteralStringClass(Option escapedLiteralString = default, Option< OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Used to track the state of EscapedLiteralString diff --git a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/Mammal.cs b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/Mammal.cs index 267ac8769d31..d9a8cde9cd81 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/Mammal.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/Mammal.cs @@ -59,7 +59,7 @@ public Mammal(Pig pig) OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Gets or Sets Whale diff --git a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/MapTest.cs b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/MapTest.cs index 120a8fb0dd54..070f3e410adc 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/MapTest.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/MapTest.cs @@ -46,7 +46,7 @@ public MapTest(Option> directMap = default, Option /// Used to track the state of DirectMap diff --git a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/MixLog.cs b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/MixLog.cs index d18711f51031..23ded06af5f3 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/MixLog.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/MixLog.cs @@ -102,7 +102,7 @@ public MixLog(string description, DateTime formulaVersionDate, Guid id, DateTime OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Gets or Sets Description diff --git a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/MixedAnyOf.cs b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/MixedAnyOf.cs index c81de3d2f67d..26da905605af 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/MixedAnyOf.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/MixedAnyOf.cs @@ -40,7 +40,7 @@ public MixedAnyOf(Option content = default) OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Used to track the state of Content diff --git a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/MixedAnyOfContent.cs b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/MixedAnyOfContent.cs index 5de026753ef2..4dc98a482ac3 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/MixedAnyOfContent.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/MixedAnyOfContent.cs @@ -47,7 +47,7 @@ public MixedAnyOfContent(Option @string, Option @bool, Option /// Used to track the state of String diff --git a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/MixedOneOf.cs b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/MixedOneOf.cs index 32515bc04405..231aee38015f 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/MixedOneOf.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/MixedOneOf.cs @@ -40,7 +40,7 @@ public MixedOneOf(Option content = default) OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Used to track the state of Content diff --git a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/MixedOneOfContent.cs b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/MixedOneOfContent.cs index 4cb69dae28cd..bd9823fdcbc1 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/MixedOneOfContent.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/MixedOneOfContent.cs @@ -79,7 +79,7 @@ public MixedOneOfContent(MixedSubId mixedSubId) OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Gets or Sets String diff --git a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/MixedPropertiesAndAdditionalPropertiesClass.cs b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/MixedPropertiesAndAdditionalPropertiesClass.cs index 3cef3330300e..11749dd1fe0f 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/MixedPropertiesAndAdditionalPropertiesClass.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/MixedPropertiesAndAdditionalPropertiesClass.cs @@ -46,7 +46,7 @@ public MixedPropertiesAndAdditionalPropertiesClass(Option dateTime = OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Used to track the state of DateTime diff --git a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/MixedSubId.cs b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/MixedSubId.cs index 34198e6f437a..82f0e9116050 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/MixedSubId.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/MixedSubId.cs @@ -40,7 +40,7 @@ public MixedSubId(Option id = default) OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Used to track the state of Id diff --git a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/Model200Response.cs b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/Model200Response.cs index bf37307ad965..33d75857f84d 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/Model200Response.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/Model200Response.cs @@ -42,7 +42,7 @@ public Model200Response(Option @class = default, Option name = def OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Used to track the state of Class diff --git a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/ModelClient.cs b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/ModelClient.cs index 5d459e8b5eb1..f84fbb6a6186 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/ModelClient.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/ModelClient.cs @@ -40,7 +40,7 @@ public ModelClient(Option varClient = default) OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Used to track the state of VarClient diff --git a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/Name.cs b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/Name.cs index b322aaf568ce..814ee7510454 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/Name.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/Name.cs @@ -46,7 +46,7 @@ public Name(int varName, Option property = default, Option snakeCa OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Gets or Sets VarName diff --git a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/NotificationtestGetElementsV1ResponseMPayload.cs b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/NotificationtestGetElementsV1ResponseMPayload.cs index ea8abdda0d78..d6c1a4bf339b 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/NotificationtestGetElementsV1ResponseMPayload.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/NotificationtestGetElementsV1ResponseMPayload.cs @@ -42,7 +42,7 @@ public NotificationtestGetElementsV1ResponseMPayload(List /// Gets or Sets AObjVariableobject diff --git a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/NullableClass.cs b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/NullableClass.cs index 42533f9c7ebf..6e2518705255 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/NullableClass.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/NullableClass.cs @@ -62,7 +62,7 @@ public NullableClass(Option> arrayAndItemsNullableProp = default, O OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Used to track the state of ArrayAndItemsNullableProp diff --git a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/NullableGuidClass.cs b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/NullableGuidClass.cs index 286d13258dce..446d782de457 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/NullableGuidClass.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/NullableGuidClass.cs @@ -40,7 +40,7 @@ public NullableGuidClass(Option uuid = default) OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Used to track the state of Uuid diff --git a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/NullableShape.cs b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/NullableShape.cs index 9a93cb734e9c..995568e86c42 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/NullableShape.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/NullableShape.cs @@ -49,7 +49,7 @@ public NullableShape(Quadrilateral quadrilateral) OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Gets or Sets Triangle diff --git a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/NumberOnly.cs b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/NumberOnly.cs index 29f5a80e6462..bb0c7a57114a 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/NumberOnly.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/NumberOnly.cs @@ -40,7 +40,7 @@ public NumberOnly(Option justNumber = default) OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Used to track the state of JustNumber diff --git a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/ObjectWithDeprecatedFields.cs b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/ObjectWithDeprecatedFields.cs index 83f513bc63bb..0fa7f080b76c 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/ObjectWithDeprecatedFields.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/ObjectWithDeprecatedFields.cs @@ -46,7 +46,7 @@ public ObjectWithDeprecatedFields(Option> bars = default, Option /// Used to track the state of Bars diff --git a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/OneOfString.cs b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/OneOfString.cs index c89963f55a36..999f3ce9a2e5 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/OneOfString.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/OneOfString.cs @@ -39,7 +39,7 @@ internal OneOfString(string @string) OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Gets or Sets String diff --git a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/Order.cs b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/Order.cs index 3dbb629ecf99..e19a9768bbb4 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/Order.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/Order.cs @@ -50,7 +50,7 @@ public Order(Option complete = default, Option id = default, Optio OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Used to track the state of Status diff --git a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/OuterComposite.cs b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/OuterComposite.cs index 92ec1939d1af..5c00052aa141 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/OuterComposite.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/OuterComposite.cs @@ -44,7 +44,7 @@ public OuterComposite(Option myBoolean = default, Option myNumb OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Used to track the state of MyBoolean diff --git a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/ParentPet.cs b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/ParentPet.cs index 83104e900d01..dd6f0777ee48 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/ParentPet.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/ParentPet.cs @@ -38,7 +38,7 @@ public ParentPet() : base() OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// The discriminator diff --git a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/Pet.cs b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/Pet.cs index e4049df78c03..0f5c5a936463 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/Pet.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/Pet.cs @@ -50,7 +50,7 @@ public Pet(string name, List photoUrls, Option category = defa OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Used to track the state of Status diff --git a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/Pig.cs b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/Pig.cs index b6f300c94400..6cbb846229e6 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/Pig.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/Pig.cs @@ -49,7 +49,7 @@ public Pig(DanishPig danishPig) OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Gets or Sets BasquePig diff --git a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/PolymorphicProperty.cs b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/PolymorphicProperty.cs index ddea47edf40c..a0fdf9fa39c7 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/PolymorphicProperty.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/PolymorphicProperty.cs @@ -69,7 +69,7 @@ internal PolymorphicProperty(List list) OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Gets or Sets Bool diff --git a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/Quadrilateral.cs b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/Quadrilateral.cs index e8a2e2439975..a95ca8f058bf 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/Quadrilateral.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/Quadrilateral.cs @@ -49,7 +49,7 @@ public Quadrilateral(ComplexQuadrilateral complexQuadrilateral) OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Gets or Sets SimpleQuadrilateral diff --git a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/QuadrilateralInterface.cs b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/QuadrilateralInterface.cs index 519ed66393ca..08cade10a83f 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/QuadrilateralInterface.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/QuadrilateralInterface.cs @@ -40,7 +40,7 @@ public QuadrilateralInterface(string quadrilateralType) OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Gets or Sets QuadrilateralType diff --git a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/ReadOnlyFirst.cs b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/ReadOnlyFirst.cs index a7cd43316ac8..d39a761c6756 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/ReadOnlyFirst.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/ReadOnlyFirst.cs @@ -42,7 +42,7 @@ public ReadOnlyFirst(Option bar = default, Option baz = default) OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Used to track the state of Bar diff --git a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/RequiredClass.cs b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/RequiredClass.cs index 4eb4f6acc58d..7b0c113f780a 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/RequiredClass.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/RequiredClass.cs @@ -126,7 +126,7 @@ public RequiredClass(DateTime requiredNotNullableDateProp, List required OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Gets or Sets RequiredNotnullableEnumInteger diff --git a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/Return.cs b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/Return.cs index 6a2c4c85eb4a..69091556b453 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/Return.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/Return.cs @@ -46,7 +46,7 @@ public Return(string @lock, string @abstract = default, Option varReturn = OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Gets or Sets Lock diff --git a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/RolesReportsHash.cs b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/RolesReportsHash.cs index 46625cb093a3..8d0cb0a73562 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/RolesReportsHash.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/RolesReportsHash.cs @@ -42,7 +42,7 @@ public RolesReportsHash(Option role = default, Option /// Used to track the state of Role diff --git a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/RolesReportsHashRole.cs b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/RolesReportsHashRole.cs index 29c8760c9722..7378b0edc04a 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/RolesReportsHashRole.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/RolesReportsHashRole.cs @@ -40,7 +40,7 @@ public RolesReportsHashRole(Option name = default) OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Used to track the state of Name diff --git a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/ScaleneTriangle.cs b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/ScaleneTriangle.cs index 5c960eb54744..ae482c9fd59c 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/ScaleneTriangle.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/ScaleneTriangle.cs @@ -42,7 +42,7 @@ public ScaleneTriangle(string shapeType, string triangleType) OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Gets or Sets ShapeType diff --git a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/Shape.cs b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/Shape.cs index c651ac7d2454..bf15bb26ed51 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/Shape.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/Shape.cs @@ -49,7 +49,7 @@ public Shape(Quadrilateral quadrilateral) OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Gets or Sets Triangle diff --git a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/ShapeInterface.cs b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/ShapeInterface.cs index 37db5df64908..192ca6aef087 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/ShapeInterface.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/ShapeInterface.cs @@ -40,7 +40,7 @@ public ShapeInterface(string shapeType) OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Gets or Sets ShapeType diff --git a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/ShapeOrNull.cs b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/ShapeOrNull.cs index 1f0b22030070..c532dcee99f3 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/ShapeOrNull.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/ShapeOrNull.cs @@ -49,7 +49,7 @@ public ShapeOrNull(Quadrilateral quadrilateral) OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Gets or Sets Triangle diff --git a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/SimpleQuadrilateral.cs b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/SimpleQuadrilateral.cs index ffa68d1e75de..0a8314e7ee3b 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/SimpleQuadrilateral.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/SimpleQuadrilateral.cs @@ -42,7 +42,7 @@ public SimpleQuadrilateral(string quadrilateralType, string shapeType) OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Gets or Sets QuadrilateralType diff --git a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/SpecialModelName.cs b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/SpecialModelName.cs index 7ec3c110c2a1..7ba549f145bb 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/SpecialModelName.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/SpecialModelName.cs @@ -42,7 +42,7 @@ public SpecialModelName(Option varSpecialModelName = default, Option /// Used to track the state of VarSpecialModelName diff --git a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/Tag.cs b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/Tag.cs index 4290e8270ff9..38aca81c755b 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/Tag.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/Tag.cs @@ -42,7 +42,7 @@ public Tag(Option id = default, Option name = default) OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Used to track the state of Id diff --git a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordList.cs b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordList.cs index 11d1cd5963c0..49258bcb159f 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordList.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordList.cs @@ -40,7 +40,7 @@ public TestCollectionEndingWithWordList(Option value = default) OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Used to track the state of Value diff --git a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordListObject.cs b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordListObject.cs index 04d04337aa4a..e9467b8f265f 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordListObject.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordListObject.cs @@ -40,7 +40,7 @@ public TestCollectionEndingWithWordListObject(Option /// Used to track the state of TestCollectionEndingWithWordList diff --git a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/TestInlineFreeformAdditionalPropertiesRequest.cs b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/TestInlineFreeformAdditionalPropertiesRequest.cs index 33f5183651a3..407afedd0da9 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/TestInlineFreeformAdditionalPropertiesRequest.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/TestInlineFreeformAdditionalPropertiesRequest.cs @@ -40,7 +40,7 @@ public TestInlineFreeformAdditionalPropertiesRequest(Option someProperty OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Used to track the state of SomeProperty diff --git a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/Triangle.cs b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/Triangle.cs index cf22051519ad..36cae8b499ba 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/Triangle.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/Triangle.cs @@ -59,7 +59,7 @@ public Triangle(ScaleneTriangle scaleneTriangle) OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Gets or Sets EquilateralTriangle diff --git a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/TriangleInterface.cs b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/TriangleInterface.cs index 0f13b0e77451..55f659bdd721 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/TriangleInterface.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/TriangleInterface.cs @@ -40,7 +40,7 @@ public TriangleInterface(string triangleType) OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Gets or Sets TriangleType diff --git a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/User.cs b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/User.cs index e89d58457324..1f6231bd7a9f 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/User.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/User.cs @@ -62,7 +62,7 @@ public User(Option anyTypeProp = default, Option anyTypePropNull OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Used to track the state of AnyTypeProp diff --git a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/Whale.cs b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/Whale.cs index 834e6957c675..8bf23ccec947 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/Whale.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/Whale.cs @@ -44,7 +44,7 @@ public Whale(string className, Option hasBaleen = default, Option OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Gets or Sets ClassName diff --git a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/Zebra.cs b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/Zebra.cs index 0b9bb3c3bc51..4ff4e8914252 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/Zebra.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/Zebra.cs @@ -42,7 +42,7 @@ public Zebra(string className, Option type = default) OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Used to track the state of Type diff --git a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/ZeroBasedEnumClass.cs b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/ZeroBasedEnumClass.cs index d538b722cae0..1e71e30ec6bb 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/ZeroBasedEnumClass.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/ZeroBasedEnumClass.cs @@ -40,7 +40,7 @@ public ZeroBasedEnumClass(Option zeroBasedEnum OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Used to track the state of ZeroBasedEnum 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 c2a2d862a621..d44541294945 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 @@ -150,7 +150,7 @@ private void AfterRootGetDefaultImplementation(IRootGetApiResponse apiResponseLo /// /// /// - partial void AfterRootGet(ref bool suppressDefaultLog, IRootGetApiResponse apiResponseLocalVar); + public virtual void AfterRootGet(ref bool suppressDefaultLog, IRootGetApiResponse apiResponseLocalVar) { } /// /// Logs exceptions that occur while retrieving the server response @@ -173,7 +173,7 @@ private void OnErrorRootGetDefaultImplementation(Exception exceptionLocalVar, st /// /// /// - partial void OnErrorRootGet(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar); + public virtual void OnErrorRootGet(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar) { } /// /// @@ -275,7 +275,7 @@ public RootGetApiResponse(ILogger logger, System.Net.Http.Ht OnCreated(httpRequestMessage, httpResponseMessage); } - partial void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage); + public virtual void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage) { } /// /// Returns true if the response is 200 Ok @@ -323,7 +323,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } - partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); + public virtual void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode) { } } } } diff --git a/samples/client/petstore/csharp/generichost/net4.8/OneOf/src/Org.OpenAPITools/Client/ApiResponse`1.cs b/samples/client/petstore/csharp/generichost/net4.8/OneOf/src/Org.OpenAPITools/Client/ApiResponse`1.cs index 96bba8467893..64ecfe9c19c3 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/OneOf/src/Org.OpenAPITools/Client/ApiResponse`1.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/OneOf/src/Org.OpenAPITools/Client/ApiResponse`1.cs @@ -145,7 +145,7 @@ public ApiResponse(global::System.Net.Http.HttpRequestMessage httpRequestMessage OnCreated(httpRequestMessage, httpResponseMessage); } - partial void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage); + public virtual void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage) { } } /// diff --git a/samples/client/petstore/csharp/generichost/net4.8/OneOf/src/Org.OpenAPITools/Model/Apple.cs b/samples/client/petstore/csharp/generichost/net4.8/OneOf/src/Org.OpenAPITools/Model/Apple.cs index 7867e6645419..aa7d16779f8e 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/OneOf/src/Org.OpenAPITools/Model/Apple.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/OneOf/src/Org.OpenAPITools/Model/Apple.cs @@ -40,7 +40,7 @@ public Apple(Option kind = default) OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Used to track the state of Kind diff --git a/samples/client/petstore/csharp/generichost/net4.8/OneOf/src/Org.OpenAPITools/Model/Banana.cs b/samples/client/petstore/csharp/generichost/net4.8/OneOf/src/Org.OpenAPITools/Model/Banana.cs index 15899a012afd..de0714efe6cc 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/OneOf/src/Org.OpenAPITools/Model/Banana.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/OneOf/src/Org.OpenAPITools/Model/Banana.cs @@ -40,7 +40,7 @@ public Banana(Option count = default) OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Used to track the state of Count diff --git a/samples/client/petstore/csharp/generichost/net4.8/OneOf/src/Org.OpenAPITools/Model/Fruit.cs b/samples/client/petstore/csharp/generichost/net4.8/OneOf/src/Org.OpenAPITools/Model/Fruit.cs index 1d1c7c5388c0..499222fc9e41 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/OneOf/src/Org.OpenAPITools/Model/Fruit.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/OneOf/src/Org.OpenAPITools/Model/Fruit.cs @@ -53,7 +53,7 @@ public Fruit(Banana banana, Option color = default) OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Gets or Sets Apple 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 1fd1ffef4feb..db88b37887ed 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 @@ -170,7 +170,7 @@ public AnotherFakeApi(ILogger logger, ILoggerFactory loggerFacto OauthTokenProvider = oauthTokenProvider; } - partial void FormatCall123TestSpecialTags(ModelClient modelClient); + public virtual void FormatCall123TestSpecialTags(ModelClient modelClient) { } /// /// Validates the request parameters @@ -202,7 +202,7 @@ private void AfterCall123TestSpecialTagsDefaultImplementation(ICall123TestSpecia /// /// /// - partial void AfterCall123TestSpecialTags(ref bool suppressDefaultLog, ICall123TestSpecialTagsApiResponse apiResponseLocalVar, ModelClient modelClient); + public virtual void AfterCall123TestSpecialTags(ref bool suppressDefaultLog, ICall123TestSpecialTagsApiResponse apiResponseLocalVar, ModelClient modelClient) { } /// /// Logs exceptions that occur while retrieving the server response @@ -227,7 +227,7 @@ private void OnErrorCall123TestSpecialTagsDefaultImplementation(Exception except /// /// /// - partial void OnErrorCall123TestSpecialTags(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, ModelClient modelClient); + public virtual 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 @@ -348,7 +348,7 @@ public Call123TestSpecialTagsApiResponse(ILogger /// Returns true if the response is 200 Ok @@ -396,7 +396,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } - partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); + public virtual void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode) { } } } } 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 879c3ecdb9ad..9cd2655e8814 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 @@ -399,7 +399,7 @@ private void AfterFooGetDefaultImplementation(IFooGetApiResponse apiResponseLoca /// /// /// - partial void AfterFooGet(ref bool suppressDefaultLog, IFooGetApiResponse apiResponseLocalVar); + public virtual void AfterFooGet(ref bool suppressDefaultLog, IFooGetApiResponse apiResponseLocalVar) { } /// /// Logs exceptions that occur while retrieving the server response @@ -422,7 +422,7 @@ private void OnErrorFooGetDefaultImplementation(Exception exceptionLocalVar, str /// /// /// - partial void OnErrorFooGet(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar); + public virtual void OnErrorFooGet(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar) { } /// /// @@ -524,7 +524,7 @@ public FooGetApiResponse(ILogger logger, System.Net.Http.Http OnCreated(httpRequestMessage, httpResponseMessage); } - partial void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage); + public virtual void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage) { } /// /// Returns true if the response is the default response type @@ -572,10 +572,10 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } - partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); + public virtual void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode) { } } - partial void FormatGetCountry(ref string country); + public virtual void FormatGetCountry(ref string country) { } /// /// Validates the request parameters @@ -607,7 +607,7 @@ private void AfterGetCountryDefaultImplementation(IGetCountryApiResponse apiResp /// /// /// - partial void AfterGetCountry(ref bool suppressDefaultLog, IGetCountryApiResponse apiResponseLocalVar, string country); + public virtual void AfterGetCountry(ref bool suppressDefaultLog, IGetCountryApiResponse apiResponseLocalVar, string country) { } /// /// Logs exceptions that occur while retrieving the server response @@ -632,7 +632,7 @@ private void OnErrorGetCountryDefaultImplementation(Exception exceptionLocalVar, /// /// /// - partial void OnErrorGetCountry(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, string country); + public virtual void OnErrorGetCountry(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, string country) { } /// /// @@ -751,7 +751,7 @@ public GetCountryApiResponse(ILogger logger, System.Net.H OnCreated(httpRequestMessage, httpResponseMessage); } - partial void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage); + public virtual void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage) { } /// /// Returns true if the response is 200 Ok @@ -767,7 +767,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } - partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); + public virtual void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode) { } } /// @@ -787,7 +787,7 @@ private void AfterHelloDefaultImplementation(IHelloApiResponse apiResponseLocalV /// /// /// - partial void AfterHello(ref bool suppressDefaultLog, IHelloApiResponse apiResponseLocalVar); + public virtual void AfterHello(ref bool suppressDefaultLog, IHelloApiResponse apiResponseLocalVar) { } /// /// Logs exceptions that occur while retrieving the server response @@ -810,7 +810,7 @@ private void OnErrorHelloDefaultImplementation(Exception exceptionLocalVar, stri /// /// /// - partial void OnErrorHello(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar); + public virtual void OnErrorHello(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar) { } /// /// Hello Hello @@ -912,7 +912,7 @@ public HelloApiResponse(ILogger logger, System.Net.Http.HttpRe OnCreated(httpRequestMessage, httpResponseMessage); } - partial void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage); + public virtual void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage) { } /// /// Returns true if the response is 200 Ok @@ -960,7 +960,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } - partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); + public virtual void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode) { } } /// @@ -980,7 +980,7 @@ private void AfterRolesReportGetDefaultImplementation(IRolesReportGetApiResponse /// /// /// - partial void AfterRolesReportGet(ref bool suppressDefaultLog, IRolesReportGetApiResponse apiResponseLocalVar); + public virtual void AfterRolesReportGet(ref bool suppressDefaultLog, IRolesReportGetApiResponse apiResponseLocalVar) { } /// /// Logs exceptions that occur while retrieving the server response @@ -1003,7 +1003,7 @@ private void OnErrorRolesReportGetDefaultImplementation(Exception exceptionLocal /// /// /// - partial void OnErrorRolesReportGet(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar); + public virtual void OnErrorRolesReportGet(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar) { } /// /// @@ -1105,7 +1105,7 @@ public RolesReportGetApiResponse(ILogger logger, Syst OnCreated(httpRequestMessage, httpResponseMessage); } - partial void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage); + public virtual void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage) { } /// /// Returns true if the response is 200 Ok @@ -1153,7 +1153,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } - partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); + public virtual void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode) { } } /// @@ -1173,7 +1173,7 @@ private void AfterTestDefaultImplementation(ITestApiResponse apiResponseLocalVar /// /// /// - partial void AfterTest(ref bool suppressDefaultLog, ITestApiResponse apiResponseLocalVar); + public virtual void AfterTest(ref bool suppressDefaultLog, ITestApiResponse apiResponseLocalVar) { } /// /// Logs exceptions that occur while retrieving the server response @@ -1196,7 +1196,7 @@ private void OnErrorTestDefaultImplementation(Exception exceptionLocalVar, strin /// /// /// - partial void OnErrorTest(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar); + public virtual void OnErrorTest(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar) { } /// /// Retrieve an existing Notificationtest's Elements @@ -1298,7 +1298,7 @@ public TestApiResponse(ILogger logger, System.Net.Http.HttpRequ OnCreated(httpRequestMessage, httpResponseMessage); } - partial void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage); + public virtual void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage) { } /// /// Returns true if the response is 200 Ok @@ -1346,7 +1346,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } - partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); + public virtual void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode) { } } } } 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 b3b0cf5352ff..80e0ca085e6f 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 @@ -1308,7 +1308,7 @@ private void AfterFakeHealthGetDefaultImplementation(IFakeHealthGetApiResponse a /// /// /// - partial void AfterFakeHealthGet(ref bool suppressDefaultLog, IFakeHealthGetApiResponse apiResponseLocalVar); + public virtual void AfterFakeHealthGet(ref bool suppressDefaultLog, IFakeHealthGetApiResponse apiResponseLocalVar) { } /// /// Logs exceptions that occur while retrieving the server response @@ -1331,7 +1331,7 @@ private void OnErrorFakeHealthGetDefaultImplementation(Exception exceptionLocalV /// /// /// - partial void OnErrorFakeHealthGet(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar); + public virtual void OnErrorFakeHealthGet(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar) { } /// /// Health check endpoint @@ -1433,7 +1433,7 @@ public FakeHealthGetApiResponse(ILogger logger, System OnCreated(httpRequestMessage, httpResponseMessage); } - partial void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage); + public virtual void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage) { } /// /// Returns true if the response is 200 Ok @@ -1481,10 +1481,10 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } - partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); + public virtual void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode) { } } - partial void FormatFakeOuterBooleanSerialize(ref Option body); + public virtual void FormatFakeOuterBooleanSerialize(ref Option body) { } /// /// Processes the server response @@ -1505,7 +1505,7 @@ private void AfterFakeOuterBooleanSerializeDefaultImplementation(IFakeOuterBoole /// /// /// - partial void AfterFakeOuterBooleanSerialize(ref bool suppressDefaultLog, IFakeOuterBooleanSerializeApiResponse apiResponseLocalVar, Option body); + public virtual void AfterFakeOuterBooleanSerialize(ref bool suppressDefaultLog, IFakeOuterBooleanSerializeApiResponse apiResponseLocalVar, Option body) { } /// /// Logs exceptions that occur while retrieving the server response @@ -1530,7 +1530,7 @@ private void OnErrorFakeOuterBooleanSerializeDefaultImplementation(Exception exc /// /// /// - partial void OnErrorFakeOuterBooleanSerialize(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, Option body); + public virtual void OnErrorFakeOuterBooleanSerialize(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, Option body) { } /// /// Test serialization of outer boolean types @@ -1650,7 +1650,7 @@ public FakeOuterBooleanSerializeApiResponse(ILogger /// Returns true if the response is 200 Ok @@ -1698,10 +1698,10 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } - partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); + public virtual void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode) { } } - partial void FormatFakeOuterCompositeSerialize(Option outerComposite); + public virtual void FormatFakeOuterCompositeSerialize(Option outerComposite) { } /// /// Validates the request parameters @@ -1733,7 +1733,7 @@ private void AfterFakeOuterCompositeSerializeDefaultImplementation(IFakeOuterCom /// /// /// - partial void AfterFakeOuterCompositeSerialize(ref bool suppressDefaultLog, IFakeOuterCompositeSerializeApiResponse apiResponseLocalVar, Option outerComposite); + public virtual void AfterFakeOuterCompositeSerialize(ref bool suppressDefaultLog, IFakeOuterCompositeSerializeApiResponse apiResponseLocalVar, Option outerComposite) { } /// /// Logs exceptions that occur while retrieving the server response @@ -1758,7 +1758,7 @@ private void OnErrorFakeOuterCompositeSerializeDefaultImplementation(Exception e /// /// /// - partial void OnErrorFakeOuterCompositeSerialize(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, Option outerComposite); + public virtual void OnErrorFakeOuterCompositeSerialize(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, Option outerComposite) { } /// /// Test serialization of object with outer number type @@ -1880,7 +1880,7 @@ public FakeOuterCompositeSerializeApiResponse(ILogger /// Returns true if the response is 200 Ok @@ -1928,10 +1928,10 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } - partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); + public virtual void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode) { } } - partial void FormatFakeOuterNumberSerialize(ref Option body); + public virtual void FormatFakeOuterNumberSerialize(ref Option body) { } /// /// Processes the server response @@ -1952,7 +1952,7 @@ private void AfterFakeOuterNumberSerializeDefaultImplementation(IFakeOuterNumber /// /// /// - partial void AfterFakeOuterNumberSerialize(ref bool suppressDefaultLog, IFakeOuterNumberSerializeApiResponse apiResponseLocalVar, Option body); + public virtual void AfterFakeOuterNumberSerialize(ref bool suppressDefaultLog, IFakeOuterNumberSerializeApiResponse apiResponseLocalVar, Option body) { } /// /// Logs exceptions that occur while retrieving the server response @@ -1977,7 +1977,7 @@ private void OnErrorFakeOuterNumberSerializeDefaultImplementation(Exception exce /// /// /// - partial void OnErrorFakeOuterNumberSerialize(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, Option body); + public virtual void OnErrorFakeOuterNumberSerialize(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, Option body) { } /// /// Test serialization of outer number types @@ -2097,7 +2097,7 @@ public FakeOuterNumberSerializeApiResponse(ILogger /// Returns true if the response is 200 Ok @@ -2145,10 +2145,10 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } - partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); + public virtual void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode) { } } - partial void FormatFakeOuterStringSerialize(ref Guid requiredStringUuid, ref Option body); + public virtual void FormatFakeOuterStringSerialize(ref Guid requiredStringUuid, ref Option body) { } /// /// Validates the request parameters @@ -2182,7 +2182,7 @@ private void AfterFakeOuterStringSerializeDefaultImplementation(IFakeOuterString /// /// /// - partial void AfterFakeOuterStringSerialize(ref bool suppressDefaultLog, IFakeOuterStringSerializeApiResponse apiResponseLocalVar, Guid requiredStringUuid, Option body); + public virtual void AfterFakeOuterStringSerialize(ref bool suppressDefaultLog, IFakeOuterStringSerializeApiResponse apiResponseLocalVar, Guid requiredStringUuid, Option body) { } /// /// Logs exceptions that occur while retrieving the server response @@ -2209,7 +2209,7 @@ private void OnErrorFakeOuterStringSerializeDefaultImplementation(Exception exce /// /// /// - partial void OnErrorFakeOuterStringSerialize(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, Guid requiredStringUuid, Option body); + public virtual void OnErrorFakeOuterStringSerialize(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, Guid requiredStringUuid, Option body) { } /// /// Test serialization of outer string types @@ -2339,7 +2339,7 @@ public FakeOuterStringSerializeApiResponse(ILogger /// Returns true if the response is 200 Ok @@ -2387,7 +2387,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } - partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); + public virtual void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode) { } } /// @@ -2407,7 +2407,7 @@ private void AfterGetArrayOfEnumsDefaultImplementation(IGetArrayOfEnumsApiRespon /// /// /// - partial void AfterGetArrayOfEnums(ref bool suppressDefaultLog, IGetArrayOfEnumsApiResponse apiResponseLocalVar); + public virtual void AfterGetArrayOfEnums(ref bool suppressDefaultLog, IGetArrayOfEnumsApiResponse apiResponseLocalVar) { } /// /// Logs exceptions that occur while retrieving the server response @@ -2430,7 +2430,7 @@ private void OnErrorGetArrayOfEnumsDefaultImplementation(Exception exceptionLoca /// /// /// - partial void OnErrorGetArrayOfEnums(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar); + public virtual void OnErrorGetArrayOfEnums(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar) { } /// /// Array of Enums @@ -2532,7 +2532,7 @@ public GetArrayOfEnumsApiResponse(ILogger logger, Sy OnCreated(httpRequestMessage, httpResponseMessage); } - partial void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage); + public virtual void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage) { } /// /// Returns true if the response is 200 Ok @@ -2580,7 +2580,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } - partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); + public virtual void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode) { } } /// @@ -2600,7 +2600,7 @@ private void AfterGetMixedAnyOfDefaultImplementation(IGetMixedAnyOfApiResponse a /// /// /// - partial void AfterGetMixedAnyOf(ref bool suppressDefaultLog, IGetMixedAnyOfApiResponse apiResponseLocalVar); + public virtual void AfterGetMixedAnyOf(ref bool suppressDefaultLog, IGetMixedAnyOfApiResponse apiResponseLocalVar) { } /// /// Logs exceptions that occur while retrieving the server response @@ -2623,7 +2623,7 @@ private void OnErrorGetMixedAnyOfDefaultImplementation(Exception exceptionLocalV /// /// /// - partial void OnErrorGetMixedAnyOf(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar); + public virtual void OnErrorGetMixedAnyOf(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar) { } /// /// Test mixed type anyOf deserialization @@ -2725,7 +2725,7 @@ public GetMixedAnyOfApiResponse(ILogger logger, System OnCreated(httpRequestMessage, httpResponseMessage); } - partial void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage); + public virtual void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage) { } /// /// Returns true if the response is 200 Ok @@ -2773,7 +2773,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } - partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); + public virtual void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode) { } } /// @@ -2793,7 +2793,7 @@ private void AfterGetMixedOneOfDefaultImplementation(IGetMixedOneOfApiResponse a /// /// /// - partial void AfterGetMixedOneOf(ref bool suppressDefaultLog, IGetMixedOneOfApiResponse apiResponseLocalVar); + public virtual void AfterGetMixedOneOf(ref bool suppressDefaultLog, IGetMixedOneOfApiResponse apiResponseLocalVar) { } /// /// Logs exceptions that occur while retrieving the server response @@ -2816,7 +2816,7 @@ private void OnErrorGetMixedOneOfDefaultImplementation(Exception exceptionLocalV /// /// /// - partial void OnErrorGetMixedOneOf(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar); + public virtual void OnErrorGetMixedOneOf(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar) { } /// /// Test mixed type oneOf deserialization @@ -2918,7 +2918,7 @@ public GetMixedOneOfApiResponse(ILogger logger, System OnCreated(httpRequestMessage, httpResponseMessage); } - partial void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage); + public virtual void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage) { } /// /// Returns true if the response is 200 Ok @@ -2966,10 +2966,10 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } - partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); + public virtual void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode) { } } - partial void FormatTestAdditionalPropertiesReference(Dictionary requestBody); + public virtual void FormatTestAdditionalPropertiesReference(Dictionary requestBody) { } /// /// Validates the request parameters @@ -3001,7 +3001,7 @@ private void AfterTestAdditionalPropertiesReferenceDefaultImplementation(ITestAd /// /// /// - partial void AfterTestAdditionalPropertiesReference(ref bool suppressDefaultLog, ITestAdditionalPropertiesReferenceApiResponse apiResponseLocalVar, Dictionary requestBody); + public virtual void AfterTestAdditionalPropertiesReference(ref bool suppressDefaultLog, ITestAdditionalPropertiesReferenceApiResponse apiResponseLocalVar, Dictionary requestBody) { } /// /// Logs exceptions that occur while retrieving the server response @@ -3026,7 +3026,7 @@ private void OnErrorTestAdditionalPropertiesReferenceDefaultImplementation(Excep /// /// /// - partial void OnErrorTestAdditionalPropertiesReference(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, Dictionary requestBody); + public virtual void OnErrorTestAdditionalPropertiesReference(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, Dictionary requestBody) { } /// /// test referenced additionalProperties @@ -3139,7 +3139,7 @@ public TestAdditionalPropertiesReferenceApiResponse(ILogger /// Returns true if the response is 200 Ok @@ -3155,10 +3155,10 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } - partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); + public virtual void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode) { } } - partial void FormatTestBodyWithFileSchema(FileSchemaTestClass fileSchemaTestClass); + public virtual void FormatTestBodyWithFileSchema(FileSchemaTestClass fileSchemaTestClass) { } /// /// Validates the request parameters @@ -3190,7 +3190,7 @@ private void AfterTestBodyWithFileSchemaDefaultImplementation(ITestBodyWithFileS /// /// /// - partial void AfterTestBodyWithFileSchema(ref bool suppressDefaultLog, ITestBodyWithFileSchemaApiResponse apiResponseLocalVar, FileSchemaTestClass fileSchemaTestClass); + public virtual void AfterTestBodyWithFileSchema(ref bool suppressDefaultLog, ITestBodyWithFileSchemaApiResponse apiResponseLocalVar, FileSchemaTestClass fileSchemaTestClass) { } /// /// Logs exceptions that occur while retrieving the server response @@ -3215,7 +3215,7 @@ private void OnErrorTestBodyWithFileSchemaDefaultImplementation(Exception except /// /// /// - partial void OnErrorTestBodyWithFileSchema(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, FileSchemaTestClass fileSchemaTestClass); + public virtual 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`. @@ -3328,7 +3328,7 @@ public TestBodyWithFileSchemaApiResponse(ILogger /// Returns true if the response is 200 Ok @@ -3344,10 +3344,10 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } - partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); + public virtual void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode) { } } - partial void FormatTestBodyWithQueryParams(ref string query, User user); + public virtual void FormatTestBodyWithQueryParams(ref string query, User user) { } /// /// Validates the request parameters @@ -3385,7 +3385,7 @@ private void AfterTestBodyWithQueryParamsDefaultImplementation(ITestBodyWithQuer /// /// /// - partial void AfterTestBodyWithQueryParams(ref bool suppressDefaultLog, ITestBodyWithQueryParamsApiResponse apiResponseLocalVar, string query, User user); + public virtual void AfterTestBodyWithQueryParams(ref bool suppressDefaultLog, ITestBodyWithQueryParamsApiResponse apiResponseLocalVar, string query, User user) { } /// /// Logs exceptions that occur while retrieving the server response @@ -3412,7 +3412,7 @@ private void OnErrorTestBodyWithQueryParamsDefaultImplementation(Exception excep /// /// /// - partial void OnErrorTestBodyWithQueryParams(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, string query, User user); + public virtual void OnErrorTestBodyWithQueryParams(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, string query, User user) { } /// /// @@ -3533,7 +3533,7 @@ public TestBodyWithQueryParamsApiResponse(ILogger /// Returns true if the response is 200 Ok @@ -3549,10 +3549,10 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } - partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); + public virtual void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode) { } } - partial void FormatTestClientModel(ModelClient modelClient); + public virtual void FormatTestClientModel(ModelClient modelClient) { } /// /// Validates the request parameters @@ -3584,7 +3584,7 @@ private void AfterTestClientModelDefaultImplementation(ITestClientModelApiRespon /// /// /// - partial void AfterTestClientModel(ref bool suppressDefaultLog, ITestClientModelApiResponse apiResponseLocalVar, ModelClient modelClient); + public virtual void AfterTestClientModel(ref bool suppressDefaultLog, ITestClientModelApiResponse apiResponseLocalVar, ModelClient modelClient) { } /// /// Logs exceptions that occur while retrieving the server response @@ -3609,7 +3609,7 @@ private void OnErrorTestClientModelDefaultImplementation(Exception exceptionLoca /// /// /// - partial void OnErrorTestClientModel(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, ModelClient modelClient); + public virtual void OnErrorTestClientModel(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, ModelClient modelClient) { } /// /// To test \"client\" model To test \"client\" model @@ -3730,7 +3730,7 @@ public TestClientModelApiResponse(ILogger logger, Sy OnCreated(httpRequestMessage, httpResponseMessage); } - partial void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage); + public virtual void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage) { } /// /// Returns true if the response is 200 Ok @@ -3778,10 +3778,10 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } - partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); + public virtual void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode) { } } - partial void FormatTestEndpointParameters(ref decimal number, ref string patternWithoutDelimiter, ref byte[] varByte, ref double varDouble, ref Option binary, ref Option callback, ref Option date, ref Option dateTime, ref Option int32, ref Option int64, ref Option integer, ref Option password, ref Option varFloat, ref Option varString); + public virtual void FormatTestEndpointParameters(ref decimal number, ref string patternWithoutDelimiter, ref byte[] varByte, ref double varDouble, ref Option binary, ref Option callback, ref Option date, ref Option dateTime, ref Option int32, ref Option int64, ref Option integer, ref Option password, ref Option varFloat, ref Option varString) { } /// /// Validates the request parameters @@ -3859,7 +3859,7 @@ private void AfterTestEndpointParametersDefaultImplementation(ITestEndpointParam /// /// /// - partial void AfterTestEndpointParameters(ref bool suppressDefaultLog, ITestEndpointParametersApiResponse apiResponseLocalVar, 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); + public virtual void AfterTestEndpointParameters(ref bool suppressDefaultLog, ITestEndpointParametersApiResponse apiResponseLocalVar, 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) { } /// /// Logs exceptions that occur while retrieving the server response @@ -3910,7 +3910,7 @@ private void OnErrorTestEndpointParametersDefaultImplementation(Exception except /// /// /// - 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); + public virtual 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 假端點 偽のエンドポイント 가짜 엔드 포인트 @@ -4102,7 +4102,7 @@ public TestEndpointParametersApiResponse(ILogger /// Returns true if the response is 400 BadRequest @@ -4124,10 +4124,10 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } - partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); + public virtual void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode) { } } - partial void FormatTestEnumParameters(ref Option enumFormString, Option> enumFormStringArray, ref Option enumHeaderString, Option> enumHeaderStringArray, ref Option enumQueryDouble, ref Option enumQueryInteger, ref Option enumQueryString, Option> enumQueryStringArray); + public virtual void FormatTestEnumParameters(ref Option enumFormString, Option> enumFormStringArray, ref Option enumHeaderString, Option> enumHeaderStringArray, ref Option enumQueryDouble, ref Option enumQueryInteger, ref Option enumQueryString, Option> enumQueryStringArray) { } /// /// Validates the request parameters @@ -4193,7 +4193,7 @@ private void AfterTestEnumParametersDefaultImplementation(ITestEnumParametersApi /// /// /// - partial void AfterTestEnumParameters(ref bool suppressDefaultLog, ITestEnumParametersApiResponse apiResponseLocalVar, Option enumFormString, Option> enumFormStringArray, Option enumHeaderString, Option> enumHeaderStringArray, Option enumQueryDouble, Option enumQueryInteger, Option enumQueryString, Option> enumQueryStringArray); + public virtual void AfterTestEnumParameters(ref bool suppressDefaultLog, ITestEnumParametersApiResponse apiResponseLocalVar, Option enumFormString, Option> enumFormStringArray, Option enumHeaderString, Option> enumHeaderStringArray, Option enumQueryDouble, Option enumQueryInteger, Option enumQueryString, Option> enumQueryStringArray) { } /// /// Logs exceptions that occur while retrieving the server response @@ -4232,7 +4232,7 @@ private void OnErrorTestEnumParametersDefaultImplementation(Exception exceptionL /// /// /// - 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); + public virtual 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 @@ -4389,7 +4389,7 @@ public TestEnumParametersApiResponse(ILogger logg OnCreated(httpRequestMessage, httpResponseMessage); } - partial void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage); + public virtual void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage) { } /// /// Returns true if the response is 400 BadRequest @@ -4411,10 +4411,10 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } - partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); + public virtual void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode) { } } - partial void FormatTestGroupParameters(ref bool requiredBooleanGroup, ref long requiredInt64Group, ref int requiredStringGroup, ref Option booleanGroup, ref Option int64Group, ref Option stringGroup); + public virtual void FormatTestGroupParameters(ref bool requiredBooleanGroup, ref long requiredInt64Group, ref int requiredStringGroup, ref Option booleanGroup, ref Option int64Group, ref Option stringGroup) { } /// /// Processes the server response @@ -4445,7 +4445,7 @@ private void AfterTestGroupParametersDefaultImplementation(ITestGroupParametersA /// /// /// - partial void AfterTestGroupParameters(ref bool suppressDefaultLog, ITestGroupParametersApiResponse apiResponseLocalVar, bool requiredBooleanGroup, long requiredInt64Group, int requiredStringGroup, Option booleanGroup, Option int64Group, Option stringGroup); + public virtual void AfterTestGroupParameters(ref bool suppressDefaultLog, ITestGroupParametersApiResponse apiResponseLocalVar, bool requiredBooleanGroup, long requiredInt64Group, int requiredStringGroup, Option booleanGroup, Option int64Group, Option stringGroup) { } /// /// Logs exceptions that occur while retrieving the server response @@ -4480,7 +4480,7 @@ private void OnErrorTestGroupParametersDefaultImplementation(Exception exception /// /// /// - partial void OnErrorTestGroupParameters(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, bool requiredBooleanGroup, long requiredInt64Group, int requiredStringGroup, Option booleanGroup, Option int64Group, Option stringGroup); + public virtual 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) @@ -4616,7 +4616,7 @@ public TestGroupParametersApiResponse(ILogger lo OnCreated(httpRequestMessage, httpResponseMessage); } - partial void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage); + public virtual void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage) { } /// /// Returns true if the response is 400 BadRequest @@ -4632,10 +4632,10 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } - partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); + public virtual void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode) { } } - partial void FormatTestInlineAdditionalProperties(Dictionary requestBody); + public virtual void FormatTestInlineAdditionalProperties(Dictionary requestBody) { } /// /// Validates the request parameters @@ -4667,7 +4667,7 @@ private void AfterTestInlineAdditionalPropertiesDefaultImplementation(ITestInlin /// /// /// - partial void AfterTestInlineAdditionalProperties(ref bool suppressDefaultLog, ITestInlineAdditionalPropertiesApiResponse apiResponseLocalVar, Dictionary requestBody); + public virtual void AfterTestInlineAdditionalProperties(ref bool suppressDefaultLog, ITestInlineAdditionalPropertiesApiResponse apiResponseLocalVar, Dictionary requestBody) { } /// /// Logs exceptions that occur while retrieving the server response @@ -4692,7 +4692,7 @@ private void OnErrorTestInlineAdditionalPropertiesDefaultImplementation(Exceptio /// /// /// - partial void OnErrorTestInlineAdditionalProperties(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, Dictionary requestBody); + public virtual void OnErrorTestInlineAdditionalProperties(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, Dictionary requestBody) { } /// /// test inline additionalProperties @@ -4805,7 +4805,7 @@ public TestInlineAdditionalPropertiesApiResponse(ILogger /// Returns true if the response is 200 Ok @@ -4821,10 +4821,10 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } - partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); + public virtual void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode) { } } - partial void FormatTestInlineFreeformAdditionalProperties(TestInlineFreeformAdditionalPropertiesRequest testInlineFreeformAdditionalPropertiesRequest); + public virtual void FormatTestInlineFreeformAdditionalProperties(TestInlineFreeformAdditionalPropertiesRequest testInlineFreeformAdditionalPropertiesRequest) { } /// /// Validates the request parameters @@ -4856,7 +4856,7 @@ private void AfterTestInlineFreeformAdditionalPropertiesDefaultImplementation(IT /// /// /// - partial void AfterTestInlineFreeformAdditionalProperties(ref bool suppressDefaultLog, ITestInlineFreeformAdditionalPropertiesApiResponse apiResponseLocalVar, TestInlineFreeformAdditionalPropertiesRequest testInlineFreeformAdditionalPropertiesRequest); + public virtual void AfterTestInlineFreeformAdditionalProperties(ref bool suppressDefaultLog, ITestInlineFreeformAdditionalPropertiesApiResponse apiResponseLocalVar, TestInlineFreeformAdditionalPropertiesRequest testInlineFreeformAdditionalPropertiesRequest) { } /// /// Logs exceptions that occur while retrieving the server response @@ -4881,7 +4881,7 @@ private void OnErrorTestInlineFreeformAdditionalPropertiesDefaultImplementation( /// /// /// - partial void OnErrorTestInlineFreeformAdditionalProperties(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, TestInlineFreeformAdditionalPropertiesRequest testInlineFreeformAdditionalPropertiesRequest); + public virtual void OnErrorTestInlineFreeformAdditionalProperties(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, TestInlineFreeformAdditionalPropertiesRequest testInlineFreeformAdditionalPropertiesRequest) { } /// /// test inline free-form additionalProperties @@ -4994,7 +4994,7 @@ public TestInlineFreeformAdditionalPropertiesApiResponse(ILogger /// Returns true if the response is 200 Ok @@ -5010,10 +5010,10 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } - partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); + public virtual void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode) { } } - partial void FormatTestJsonFormData(ref string param, ref string param2); + public virtual void FormatTestJsonFormData(ref string param, ref string param2) { } /// /// Validates the request parameters @@ -5051,7 +5051,7 @@ private void AfterTestJsonFormDataDefaultImplementation(ITestJsonFormDataApiResp /// /// /// - partial void AfterTestJsonFormData(ref bool suppressDefaultLog, ITestJsonFormDataApiResponse apiResponseLocalVar, string param, string param2); + public virtual void AfterTestJsonFormData(ref bool suppressDefaultLog, ITestJsonFormDataApiResponse apiResponseLocalVar, string param, string param2) { } /// /// Logs exceptions that occur while retrieving the server response @@ -5078,7 +5078,7 @@ private void OnErrorTestJsonFormDataDefaultImplementation(Exception exceptionLoc /// /// /// - partial void OnErrorTestJsonFormData(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, string param, string param2); + public virtual void OnErrorTestJsonFormData(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, string param, string param2) { } /// /// test json serialization of form data @@ -5201,7 +5201,7 @@ public TestJsonFormDataApiResponse(ILogger logger, OnCreated(httpRequestMessage, httpResponseMessage); } - partial void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage); + public virtual void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage) { } /// /// Returns true if the response is 200 Ok @@ -5217,10 +5217,10 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } - partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); + public virtual void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode) { } } - partial void FormatTestQueryParameterCollectionFormat(List context, List http, List ioutil, List pipe, ref string requiredNotNullable, List url, ref Option notRequiredNotNullable, ref Option notRequiredNullable, ref string requiredNullable); + public virtual void FormatTestQueryParameterCollectionFormat(List context, List http, List ioutil, List pipe, ref string requiredNotNullable, List url, ref Option notRequiredNotNullable, ref Option notRequiredNullable, ref string requiredNullable) { } /// /// Validates the request parameters @@ -5292,7 +5292,7 @@ private void AfterTestQueryParameterCollectionFormatDefaultImplementation(ITestQ /// /// /// - partial void AfterTestQueryParameterCollectionFormat(ref bool suppressDefaultLog, ITestQueryParameterCollectionFormatApiResponse apiResponseLocalVar, List context, List http, List ioutil, List pipe, string requiredNotNullable, List url, Option notRequiredNotNullable, Option notRequiredNullable, string requiredNullable); + public virtual void AfterTestQueryParameterCollectionFormat(ref bool suppressDefaultLog, ITestQueryParameterCollectionFormatApiResponse apiResponseLocalVar, List context, List http, List ioutil, List pipe, string requiredNotNullable, List url, Option notRequiredNotNullable, Option notRequiredNullable, string requiredNullable) { } /// /// Logs exceptions that occur while retrieving the server response @@ -5333,7 +5333,7 @@ private void OnErrorTestQueryParameterCollectionFormatDefaultImplementation(Exce /// /// /// - 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); + public virtual 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 @@ -5466,7 +5466,7 @@ public TestQueryParameterCollectionFormatApiResponse(ILogger /// Returns true if the response is 200 Ok @@ -5482,10 +5482,10 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } - partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); + public virtual void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode) { } } - partial void FormatTestStringMapReference(Dictionary requestBody); + public virtual void FormatTestStringMapReference(Dictionary requestBody) { } /// /// Validates the request parameters @@ -5517,7 +5517,7 @@ private void AfterTestStringMapReferenceDefaultImplementation(ITestStringMapRefe /// /// /// - partial void AfterTestStringMapReference(ref bool suppressDefaultLog, ITestStringMapReferenceApiResponse apiResponseLocalVar, Dictionary requestBody); + public virtual void AfterTestStringMapReference(ref bool suppressDefaultLog, ITestStringMapReferenceApiResponse apiResponseLocalVar, Dictionary requestBody) { } /// /// Logs exceptions that occur while retrieving the server response @@ -5542,7 +5542,7 @@ private void OnErrorTestStringMapReferenceDefaultImplementation(Exception except /// /// /// - partial void OnErrorTestStringMapReference(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, Dictionary requestBody); + public virtual void OnErrorTestStringMapReference(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, Dictionary requestBody) { } /// /// test referenced string map @@ -5655,7 +5655,7 @@ public TestStringMapReferenceApiResponse(ILogger /// Returns true if the response is 200 Ok @@ -5671,7 +5671,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } - partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); + public virtual void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode) { } } } } 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 010a227c8b27..bb046ae443a5 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 @@ -170,7 +170,7 @@ public FakeClassnameTags123Api(ILogger logger, ILoggerF OauthTokenProvider = oauthTokenProvider; } - partial void FormatTestClassname(ModelClient modelClient); + public virtual void FormatTestClassname(ModelClient modelClient) { } /// /// Validates the request parameters @@ -202,7 +202,7 @@ private void AfterTestClassnameDefaultImplementation(ITestClassnameApiResponse a /// /// /// - partial void AfterTestClassname(ref bool suppressDefaultLog, ITestClassnameApiResponse apiResponseLocalVar, ModelClient modelClient); + public virtual void AfterTestClassname(ref bool suppressDefaultLog, ITestClassnameApiResponse apiResponseLocalVar, ModelClient modelClient) { } /// /// Logs exceptions that occur while retrieving the server response @@ -227,7 +227,7 @@ private void OnErrorTestClassnameDefaultImplementation(Exception exceptionLocalV /// /// /// - partial void OnErrorTestClassname(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, ModelClient modelClient); + public virtual 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 @@ -361,7 +361,7 @@ public TestClassnameApiResponse(ILogger logger, System OnCreated(httpRequestMessage, httpResponseMessage); } - partial void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage); + public virtual void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage) { } /// /// Returns true if the response is 200 Ok @@ -409,7 +409,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } - partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); + public virtual void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode) { } } } } 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 e86b55647135..7e2e1cc9a555 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 @@ -674,7 +674,7 @@ public PetApi(ILogger logger, ILoggerFactory loggerFactory, HttpClient h OauthTokenProvider = oauthTokenProvider; } - partial void FormatAddPet(Pet pet); + public virtual void FormatAddPet(Pet pet) { } /// /// Validates the request parameters @@ -706,7 +706,7 @@ private void AfterAddPetDefaultImplementation(IAddPetApiResponse apiResponseLoca /// /// /// - partial void AfterAddPet(ref bool suppressDefaultLog, IAddPetApiResponse apiResponseLocalVar, Pet pet); + public virtual void AfterAddPet(ref bool suppressDefaultLog, IAddPetApiResponse apiResponseLocalVar, Pet pet) { } /// /// Logs exceptions that occur while retrieving the server response @@ -731,7 +731,7 @@ private void OnErrorAddPetDefaultImplementation(Exception exceptionLocalVar, str /// /// /// - partial void OnErrorAddPet(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, Pet pet); + public virtual void OnErrorAddPet(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, Pet pet) { } /// /// Add a new pet to the store @@ -866,7 +866,7 @@ public AddPetApiResponse(ILogger logger, System.Net.Http.Http OnCreated(httpRequestMessage, httpResponseMessage); } - partial void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage); + public virtual void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage) { } /// /// Returns true if the response is 405 MethodNotAllowed @@ -882,10 +882,10 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } - partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); + public virtual void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode) { } } - partial void FormatDeletePet(ref long petId, ref Option apiKey); + public virtual void FormatDeletePet(ref long petId, ref Option apiKey) { } /// /// Validates the request parameters @@ -919,7 +919,7 @@ private void AfterDeletePetDefaultImplementation(IDeletePetApiResponse apiRespon /// /// /// - partial void AfterDeletePet(ref bool suppressDefaultLog, IDeletePetApiResponse apiResponseLocalVar, long petId, Option apiKey); + public virtual void AfterDeletePet(ref bool suppressDefaultLog, IDeletePetApiResponse apiResponseLocalVar, long petId, Option apiKey) { } /// /// Logs exceptions that occur while retrieving the server response @@ -946,7 +946,7 @@ private void OnErrorDeletePetDefaultImplementation(Exception exceptionLocalVar, /// /// /// - partial void OnErrorDeletePet(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, long petId, Option apiKey); + public virtual void OnErrorDeletePet(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, long petId, Option apiKey) { } /// /// Deletes a pet @@ -1062,7 +1062,7 @@ public DeletePetApiResponse(ILogger logger, System.Net.Htt OnCreated(httpRequestMessage, httpResponseMessage); } - partial void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage); + public virtual void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage) { } /// /// Returns true if the response is 400 BadRequest @@ -1078,10 +1078,10 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } - partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); + public virtual void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode) { } } - partial void FormatFindPetsByStatus(List status); + public virtual void FormatFindPetsByStatus(List status) { } /// /// Validates the request parameters @@ -1113,7 +1113,7 @@ private void AfterFindPetsByStatusDefaultImplementation(IFindPetsByStatusApiResp /// /// /// - partial void AfterFindPetsByStatus(ref bool suppressDefaultLog, IFindPetsByStatusApiResponse apiResponseLocalVar, List status); + public virtual void AfterFindPetsByStatus(ref bool suppressDefaultLog, IFindPetsByStatusApiResponse apiResponseLocalVar, List status) { } /// /// Logs exceptions that occur while retrieving the server response @@ -1138,7 +1138,7 @@ private void OnErrorFindPetsByStatusDefaultImplementation(Exception exceptionLoc /// /// /// - partial void OnErrorFindPetsByStatus(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, List status); + public virtual 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 @@ -1274,7 +1274,7 @@ public FindPetsByStatusApiResponse(ILogger logger, OnCreated(httpRequestMessage, httpResponseMessage); } - partial void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage); + public virtual void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage) { } /// /// Returns true if the response is 200 Ok @@ -1354,10 +1354,10 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } - partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); + public virtual void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode) { } } - partial void FormatFindPetsByTags(List tags); + public virtual void FormatFindPetsByTags(List tags) { } /// /// Validates the request parameters @@ -1389,7 +1389,7 @@ private void AfterFindPetsByTagsDefaultImplementation(IFindPetsByTagsApiResponse /// /// /// - partial void AfterFindPetsByTags(ref bool suppressDefaultLog, IFindPetsByTagsApiResponse apiResponseLocalVar, List tags); + public virtual void AfterFindPetsByTags(ref bool suppressDefaultLog, IFindPetsByTagsApiResponse apiResponseLocalVar, List tags) { } /// /// Logs exceptions that occur while retrieving the server response @@ -1414,7 +1414,7 @@ private void OnErrorFindPetsByTagsDefaultImplementation(Exception exceptionLocal /// /// /// - partial void OnErrorFindPetsByTags(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, List tags); + public virtual 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. @@ -1550,7 +1550,7 @@ public FindPetsByTagsApiResponse(ILogger logger, Syst OnCreated(httpRequestMessage, httpResponseMessage); } - partial void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage); + public virtual void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage) { } /// /// Returns true if the response is 200 Ok @@ -1604,10 +1604,10 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } - partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); + public virtual void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode) { } } - partial void FormatGetPetById(ref long petId); + public virtual void FormatGetPetById(ref long petId) { } /// /// Processes the server response @@ -1628,7 +1628,7 @@ private void AfterGetPetByIdDefaultImplementation(IGetPetByIdApiResponse apiResp /// /// /// - partial void AfterGetPetById(ref bool suppressDefaultLog, IGetPetByIdApiResponse apiResponseLocalVar, long petId); + public virtual void AfterGetPetById(ref bool suppressDefaultLog, IGetPetByIdApiResponse apiResponseLocalVar, long petId) { } /// /// Logs exceptions that occur while retrieving the server response @@ -1653,7 +1653,7 @@ private void OnErrorGetPetByIdDefaultImplementation(Exception exceptionLocalVar, /// /// /// - partial void OnErrorGetPetById(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, long petId); + public virtual void OnErrorGetPetById(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, long petId) { } /// /// Find pet by ID Returns a single pet @@ -1778,7 +1778,7 @@ public GetPetByIdApiResponse(ILogger logger, System.Net.H OnCreated(httpRequestMessage, httpResponseMessage); } - partial void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage); + public virtual void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage) { } /// /// Returns true if the response is 200 Ok @@ -1838,10 +1838,10 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } - partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); + public virtual void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode) { } } - partial void FormatUpdatePet(Pet pet); + public virtual void FormatUpdatePet(Pet pet) { } /// /// Validates the request parameters @@ -1873,7 +1873,7 @@ private void AfterUpdatePetDefaultImplementation(IUpdatePetApiResponse apiRespon /// /// /// - partial void AfterUpdatePet(ref bool suppressDefaultLog, IUpdatePetApiResponse apiResponseLocalVar, Pet pet); + public virtual void AfterUpdatePet(ref bool suppressDefaultLog, IUpdatePetApiResponse apiResponseLocalVar, Pet pet) { } /// /// Logs exceptions that occur while retrieving the server response @@ -1898,7 +1898,7 @@ private void OnErrorUpdatePetDefaultImplementation(Exception exceptionLocalVar, /// /// /// - partial void OnErrorUpdatePet(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, Pet pet); + public virtual void OnErrorUpdatePet(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, Pet pet) { } /// /// Update an existing pet @@ -2033,7 +2033,7 @@ public UpdatePetApiResponse(ILogger logger, System.Net.Htt OnCreated(httpRequestMessage, httpResponseMessage); } - partial void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage); + public virtual void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage) { } /// /// Returns true if the response is 400 BadRequest @@ -2061,10 +2061,10 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } - partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); + public virtual void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode) { } } - partial void FormatUpdatePetWithForm(ref long petId, ref Option name, ref Option status); + public virtual void FormatUpdatePetWithForm(ref long petId, ref Option name, ref Option status) { } /// /// Validates the request parameters @@ -2104,7 +2104,7 @@ private void AfterUpdatePetWithFormDefaultImplementation(IUpdatePetWithFormApiRe /// /// /// - partial void AfterUpdatePetWithForm(ref bool suppressDefaultLog, IUpdatePetWithFormApiResponse apiResponseLocalVar, long petId, Option name, Option status); + public virtual void AfterUpdatePetWithForm(ref bool suppressDefaultLog, IUpdatePetWithFormApiResponse apiResponseLocalVar, long petId, Option name, Option status) { } /// /// Logs exceptions that occur while retrieving the server response @@ -2133,7 +2133,7 @@ private void OnErrorUpdatePetWithFormDefaultImplementation(Exception exceptionLo /// /// /// - partial void OnErrorUpdatePetWithForm(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, long petId, Option name, Option status); + public virtual 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 @@ -2270,7 +2270,7 @@ public UpdatePetWithFormApiResponse(ILogger logger OnCreated(httpRequestMessage, httpResponseMessage); } - partial void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage); + public virtual void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage) { } /// /// Returns true if the response is 405 MethodNotAllowed @@ -2286,10 +2286,10 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } - partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); + public virtual void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode) { } } - partial void FormatUploadFile(ref long petId, ref Option additionalMetadata, ref Option file); + public virtual void FormatUploadFile(ref long petId, ref Option additionalMetadata, ref Option file) { } /// /// Validates the request parameters @@ -2329,7 +2329,7 @@ private void AfterUploadFileDefaultImplementation(IUploadFileApiResponse apiResp /// /// /// - partial void AfterUploadFile(ref bool suppressDefaultLog, IUploadFileApiResponse apiResponseLocalVar, long petId, Option additionalMetadata, Option file); + public virtual void AfterUploadFile(ref bool suppressDefaultLog, IUploadFileApiResponse apiResponseLocalVar, long petId, Option additionalMetadata, Option file) { } /// /// Logs exceptions that occur while retrieving the server response @@ -2358,7 +2358,7 @@ private void OnErrorUploadFileDefaultImplementation(Exception exceptionLocalVar, /// /// /// - partial void OnErrorUploadFile(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, long petId, Option additionalMetadata, Option file); + public virtual void OnErrorUploadFile(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, long petId, Option additionalMetadata, Option file) { } /// /// uploads an image @@ -2503,7 +2503,7 @@ public UploadFileApiResponse(ILogger logger, System.Net.H OnCreated(httpRequestMessage, httpResponseMessage); } - partial void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage); + public virtual void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage) { } /// /// Returns true if the response is 200 Ok @@ -2551,10 +2551,10 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } - partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); + public virtual void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode) { } } - partial void FormatUploadFileWithRequiredFile(ref long petId, ref System.IO.Stream requiredFile, ref Option additionalMetadata); + public virtual void FormatUploadFileWithRequiredFile(ref long petId, ref System.IO.Stream requiredFile, ref Option additionalMetadata) { } /// /// Validates the request parameters @@ -2594,7 +2594,7 @@ private void AfterUploadFileWithRequiredFileDefaultImplementation(IUploadFileWit /// /// /// - partial void AfterUploadFileWithRequiredFile(ref bool suppressDefaultLog, IUploadFileWithRequiredFileApiResponse apiResponseLocalVar, long petId, System.IO.Stream requiredFile, Option additionalMetadata); + public virtual void AfterUploadFileWithRequiredFile(ref bool suppressDefaultLog, IUploadFileWithRequiredFileApiResponse apiResponseLocalVar, long petId, System.IO.Stream requiredFile, Option additionalMetadata) { } /// /// Logs exceptions that occur while retrieving the server response @@ -2623,7 +2623,7 @@ private void OnErrorUploadFileWithRequiredFileDefaultImplementation(Exception ex /// /// /// - partial void OnErrorUploadFileWithRequiredFile(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, long petId, System.IO.Stream requiredFile, Option additionalMetadata); + public virtual void OnErrorUploadFileWithRequiredFile(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, long petId, System.IO.Stream requiredFile, Option additionalMetadata) { } /// /// uploads an image (required) @@ -2768,7 +2768,7 @@ public UploadFileWithRequiredFileApiResponse(ILogger /// Returns true if the response is 200 Ok @@ -2816,7 +2816,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } - partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); + public virtual void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode) { } } } } 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 2cb0523731c5..dd6999ab6093 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 @@ -357,7 +357,7 @@ public StoreApi(ILogger logger, ILoggerFactory loggerFactory, HttpClie OauthTokenProvider = oauthTokenProvider; } - partial void FormatDeleteOrder(ref string orderId); + public virtual void FormatDeleteOrder(ref string orderId) { } /// /// Validates the request parameters @@ -389,7 +389,7 @@ private void AfterDeleteOrderDefaultImplementation(IDeleteOrderApiResponse apiRe /// /// /// - partial void AfterDeleteOrder(ref bool suppressDefaultLog, IDeleteOrderApiResponse apiResponseLocalVar, string orderId); + public virtual void AfterDeleteOrder(ref bool suppressDefaultLog, IDeleteOrderApiResponse apiResponseLocalVar, string orderId) { } /// /// Logs exceptions that occur while retrieving the server response @@ -414,7 +414,7 @@ private void OnErrorDeleteOrderDefaultImplementation(Exception exceptionLocalVar /// /// /// - partial void OnErrorDeleteOrder(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, string orderId); + public virtual 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 @@ -514,7 +514,7 @@ public DeleteOrderApiResponse(ILogger logger, System.Net OnCreated(httpRequestMessage, httpResponseMessage); } - partial void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage); + public virtual void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage) { } /// /// Returns true if the response is 400 BadRequest @@ -536,7 +536,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } - partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); + public virtual void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode) { } } /// @@ -556,7 +556,7 @@ private void AfterGetInventoryDefaultImplementation(IGetInventoryApiResponse api /// /// /// - partial void AfterGetInventory(ref bool suppressDefaultLog, IGetInventoryApiResponse apiResponseLocalVar); + public virtual void AfterGetInventory(ref bool suppressDefaultLog, IGetInventoryApiResponse apiResponseLocalVar) { } /// /// Logs exceptions that occur while retrieving the server response @@ -579,7 +579,7 @@ private void OnErrorGetInventoryDefaultImplementation(Exception exceptionLocalVa /// /// /// - partial void OnErrorGetInventory(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar); + public virtual void OnErrorGetInventory(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar) { } /// /// Returns pet inventories by status Returns a map of status codes to quantities @@ -690,7 +690,7 @@ public GetInventoryApiResponse(ILogger logger, System.N OnCreated(httpRequestMessage, httpResponseMessage); } - partial void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage); + public virtual void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage) { } /// /// Returns true if the response is 200 Ok @@ -738,10 +738,10 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } - partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); + public virtual void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode) { } } - partial void FormatGetOrderById(ref long orderId); + public virtual void FormatGetOrderById(ref long orderId) { } /// /// Processes the server response @@ -762,7 +762,7 @@ private void AfterGetOrderByIdDefaultImplementation(IGetOrderByIdApiResponse api /// /// /// - partial void AfterGetOrderById(ref bool suppressDefaultLog, IGetOrderByIdApiResponse apiResponseLocalVar, long orderId); + public virtual void AfterGetOrderById(ref bool suppressDefaultLog, IGetOrderByIdApiResponse apiResponseLocalVar, long orderId) { } /// /// Logs exceptions that occur while retrieving the server response @@ -787,7 +787,7 @@ private void OnErrorGetOrderByIdDefaultImplementation(Exception exceptionLocalVa /// /// /// - partial void OnErrorGetOrderById(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, long orderId); + public virtual 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 @@ -895,7 +895,7 @@ public GetOrderByIdApiResponse(ILogger logger, System.N OnCreated(httpRequestMessage, httpResponseMessage); } - partial void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage); + public virtual void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage) { } /// /// Returns true if the response is 200 Ok @@ -955,10 +955,10 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } - partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); + public virtual void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode) { } } - partial void FormatPlaceOrder(Order order); + public virtual void FormatPlaceOrder(Order order) { } /// /// Validates the request parameters @@ -990,7 +990,7 @@ private void AfterPlaceOrderDefaultImplementation(IPlaceOrderApiResponse apiResp /// /// /// - partial void AfterPlaceOrder(ref bool suppressDefaultLog, IPlaceOrderApiResponse apiResponseLocalVar, Order order); + public virtual void AfterPlaceOrder(ref bool suppressDefaultLog, IPlaceOrderApiResponse apiResponseLocalVar, Order order) { } /// /// Logs exceptions that occur while retrieving the server response @@ -1015,7 +1015,7 @@ private void OnErrorPlaceOrderDefaultImplementation(Exception exceptionLocalVar, /// /// /// - partial void OnErrorPlaceOrder(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, Order order); + public virtual void OnErrorPlaceOrder(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, Order order) { } /// /// Place an order for a pet @@ -1137,7 +1137,7 @@ public PlaceOrderApiResponse(ILogger logger, System.Net.H OnCreated(httpRequestMessage, httpResponseMessage); } - partial void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage); + public virtual void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage) { } /// /// Returns true if the response is 200 Ok @@ -1191,7 +1191,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } - partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); + public virtual void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode) { } } } } 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 46a87aed2c07..88d7459aa526 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 @@ -599,7 +599,7 @@ public UserApi(ILogger logger, ILoggerFactory loggerFactory, HttpClient OauthTokenProvider = oauthTokenProvider; } - partial void FormatCreateUser(User user); + public virtual void FormatCreateUser(User user) { } /// /// Validates the request parameters @@ -631,7 +631,7 @@ private void AfterCreateUserDefaultImplementation(ICreateUserApiResponse apiResp /// /// /// - partial void AfterCreateUser(ref bool suppressDefaultLog, ICreateUserApiResponse apiResponseLocalVar, User user); + public virtual void AfterCreateUser(ref bool suppressDefaultLog, ICreateUserApiResponse apiResponseLocalVar, User user) { } /// /// Logs exceptions that occur while retrieving the server response @@ -656,7 +656,7 @@ private void OnErrorCreateUserDefaultImplementation(Exception exceptionLocalVar, /// /// /// - partial void OnErrorCreateUser(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, User user); + public virtual 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. @@ -769,7 +769,7 @@ public CreateUserApiResponse(ILogger logger, System.Net.H OnCreated(httpRequestMessage, httpResponseMessage); } - partial void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage); + public virtual void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage) { } /// /// Returns true if the response is the default response type @@ -785,10 +785,10 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } - partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); + public virtual void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode) { } } - partial void FormatCreateUsersWithArrayInput(List user); + public virtual void FormatCreateUsersWithArrayInput(List user) { } /// /// Validates the request parameters @@ -820,7 +820,7 @@ private void AfterCreateUsersWithArrayInputDefaultImplementation(ICreateUsersWit /// /// /// - partial void AfterCreateUsersWithArrayInput(ref bool suppressDefaultLog, ICreateUsersWithArrayInputApiResponse apiResponseLocalVar, List user); + public virtual void AfterCreateUsersWithArrayInput(ref bool suppressDefaultLog, ICreateUsersWithArrayInputApiResponse apiResponseLocalVar, List user) { } /// /// Logs exceptions that occur while retrieving the server response @@ -845,7 +845,7 @@ private void OnErrorCreateUsersWithArrayInputDefaultImplementation(Exception exc /// /// /// - partial void OnErrorCreateUsersWithArrayInput(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, List user); + public virtual void OnErrorCreateUsersWithArrayInput(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, List user) { } /// /// Creates list of users with given input array @@ -958,7 +958,7 @@ public CreateUsersWithArrayInputApiResponse(ILogger /// Returns true if the response is the default response type @@ -974,10 +974,10 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } - partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); + public virtual void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode) { } } - partial void FormatCreateUsersWithListInput(List user); + public virtual void FormatCreateUsersWithListInput(List user) { } /// /// Validates the request parameters @@ -1009,7 +1009,7 @@ private void AfterCreateUsersWithListInputDefaultImplementation(ICreateUsersWith /// /// /// - partial void AfterCreateUsersWithListInput(ref bool suppressDefaultLog, ICreateUsersWithListInputApiResponse apiResponseLocalVar, List user); + public virtual void AfterCreateUsersWithListInput(ref bool suppressDefaultLog, ICreateUsersWithListInputApiResponse apiResponseLocalVar, List user) { } /// /// Logs exceptions that occur while retrieving the server response @@ -1034,7 +1034,7 @@ private void OnErrorCreateUsersWithListInputDefaultImplementation(Exception exce /// /// /// - partial void OnErrorCreateUsersWithListInput(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, List user); + public virtual void OnErrorCreateUsersWithListInput(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, List user) { } /// /// Creates list of users with given input array @@ -1147,7 +1147,7 @@ public CreateUsersWithListInputApiResponse(ILogger /// Returns true if the response is the default response type @@ -1163,10 +1163,10 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } - partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); + public virtual void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode) { } } - partial void FormatDeleteUser(ref string username); + public virtual void FormatDeleteUser(ref string username) { } /// /// Validates the request parameters @@ -1198,7 +1198,7 @@ private void AfterDeleteUserDefaultImplementation(IDeleteUserApiResponse apiResp /// /// /// - partial void AfterDeleteUser(ref bool suppressDefaultLog, IDeleteUserApiResponse apiResponseLocalVar, string username); + public virtual void AfterDeleteUser(ref bool suppressDefaultLog, IDeleteUserApiResponse apiResponseLocalVar, string username) { } /// /// Logs exceptions that occur while retrieving the server response @@ -1223,7 +1223,7 @@ private void OnErrorDeleteUserDefaultImplementation(Exception exceptionLocalVar, /// /// /// - partial void OnErrorDeleteUser(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, string username); + public virtual 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. @@ -1323,7 +1323,7 @@ public DeleteUserApiResponse(ILogger logger, System.Net.H OnCreated(httpRequestMessage, httpResponseMessage); } - partial void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage); + public virtual void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage) { } /// /// Returns true if the response is 400 BadRequest @@ -1345,10 +1345,10 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } - partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); + public virtual void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode) { } } - partial void FormatGetUserByName(ref string username); + public virtual void FormatGetUserByName(ref string username) { } /// /// Validates the request parameters @@ -1380,7 +1380,7 @@ private void AfterGetUserByNameDefaultImplementation(IGetUserByNameApiResponse a /// /// /// - partial void AfterGetUserByName(ref bool suppressDefaultLog, IGetUserByNameApiResponse apiResponseLocalVar, string username); + public virtual void AfterGetUserByName(ref bool suppressDefaultLog, IGetUserByNameApiResponse apiResponseLocalVar, string username) { } /// /// Logs exceptions that occur while retrieving the server response @@ -1405,7 +1405,7 @@ private void OnErrorGetUserByNameDefaultImplementation(Exception exceptionLocalV /// /// /// - partial void OnErrorGetUserByName(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, string username); + public virtual void OnErrorGetUserByName(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, string username) { } /// /// Get user by user name @@ -1515,7 +1515,7 @@ public GetUserByNameApiResponse(ILogger logger, System OnCreated(httpRequestMessage, httpResponseMessage); } - partial void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage); + public virtual void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage) { } /// /// Returns true if the response is 200 Ok @@ -1619,10 +1619,10 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } - partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); + public virtual void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode) { } } - partial void FormatLoginUser(ref string password, ref string username); + public virtual void FormatLoginUser(ref string password, ref string username) { } /// /// Validates the request parameters @@ -1660,7 +1660,7 @@ private void AfterLoginUserDefaultImplementation(ILoginUserApiResponse apiRespon /// /// /// - partial void AfterLoginUser(ref bool suppressDefaultLog, ILoginUserApiResponse apiResponseLocalVar, string password, string username); + public virtual void AfterLoginUser(ref bool suppressDefaultLog, ILoginUserApiResponse apiResponseLocalVar, string password, string username) { } /// /// Logs exceptions that occur while retrieving the server response @@ -1687,7 +1687,7 @@ private void OnErrorLoginUserDefaultImplementation(Exception exceptionLocalVar, /// /// /// - partial void OnErrorLoginUser(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, string password, string username); + public virtual void OnErrorLoginUser(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, string password, string username) { } /// /// Logs user into the system @@ -1805,7 +1805,7 @@ public LoginUserApiResponse(ILogger logger, System.Net.Htt OnCreated(httpRequestMessage, httpResponseMessage); } - partial void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage); + public virtual void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage) { } /// /// Returns true if the response is 200 Ok @@ -1859,7 +1859,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } - partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); + public virtual void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode) { } } /// @@ -1879,7 +1879,7 @@ private void AfterLogoutUserDefaultImplementation(ILogoutUserApiResponse apiResp /// /// /// - partial void AfterLogoutUser(ref bool suppressDefaultLog, ILogoutUserApiResponse apiResponseLocalVar); + public virtual void AfterLogoutUser(ref bool suppressDefaultLog, ILogoutUserApiResponse apiResponseLocalVar) { } /// /// Logs exceptions that occur while retrieving the server response @@ -1902,7 +1902,7 @@ private void OnErrorLogoutUserDefaultImplementation(Exception exceptionLocalVar, /// /// /// - partial void OnErrorLogoutUser(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar); + public virtual void OnErrorLogoutUser(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar) { } /// /// Logs out current logged in user session @@ -1995,7 +1995,7 @@ public LogoutUserApiResponse(ILogger logger, System.Net.H OnCreated(httpRequestMessage, httpResponseMessage); } - partial void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage); + public virtual void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage) { } /// /// Returns true if the response is the default response type @@ -2011,10 +2011,10 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } - partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); + public virtual void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode) { } } - partial void FormatUpdateUser(User user, ref string username); + public virtual void FormatUpdateUser(User user, ref string username) { } /// /// Validates the request parameters @@ -2052,7 +2052,7 @@ private void AfterUpdateUserDefaultImplementation(IUpdateUserApiResponse apiResp /// /// /// - partial void AfterUpdateUser(ref bool suppressDefaultLog, IUpdateUserApiResponse apiResponseLocalVar, User user, string username); + public virtual void AfterUpdateUser(ref bool suppressDefaultLog, IUpdateUserApiResponse apiResponseLocalVar, User user, string username) { } /// /// Logs exceptions that occur while retrieving the server response @@ -2079,7 +2079,7 @@ private void OnErrorUpdateUserDefaultImplementation(Exception exceptionLocalVar, /// /// /// - partial void OnErrorUpdateUser(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, User user, string username); + public virtual 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. @@ -2195,7 +2195,7 @@ public UpdateUserApiResponse(ILogger logger, System.Net.H OnCreated(httpRequestMessage, httpResponseMessage); } - partial void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage); + public virtual void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage) { } /// /// Returns true if the response is 400 BadRequest @@ -2217,7 +2217,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } - partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); + public virtual void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode) { } } } } diff --git a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Client/ApiResponse`1.cs b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Client/ApiResponse`1.cs index 416f7a04e3d6..26f36afb14be 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Client/ApiResponse`1.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Client/ApiResponse`1.cs @@ -145,7 +145,7 @@ public ApiResponse(global::System.Net.Http.HttpRequestMessage httpRequestMessage OnCreated(httpRequestMessage, httpResponseMessage); } - partial void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage); + public virtual void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage) { } } /// diff --git a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/Activity.cs b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/Activity.cs index a5e4bd35e9bc..7c5af7896600 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/Activity.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/Activity.cs @@ -40,7 +40,7 @@ public Activity(Option /// Used to track the state of ActivityOutputs diff --git a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/ActivityOutputElementRepresentation.cs b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/ActivityOutputElementRepresentation.cs index d7b4374e6a7b..3f53511fff0c 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/ActivityOutputElementRepresentation.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/ActivityOutputElementRepresentation.cs @@ -42,7 +42,7 @@ public ActivityOutputElementRepresentation(Option prop1 = default, Optio OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Used to track the state of Prop1 diff --git a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/AdditionalPropertiesClass.cs b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/AdditionalPropertiesClass.cs index ec17222fbc8f..f1db02649575 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/AdditionalPropertiesClass.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/AdditionalPropertiesClass.cs @@ -54,7 +54,7 @@ public AdditionalPropertiesClass(Option anytype1 = default, Option /// Used to track the state of Anytype1 diff --git a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/Animal.cs b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/Animal.cs index 74cb14f52d91..fb7179ed5b86 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/Animal.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/Animal.cs @@ -40,7 +40,7 @@ public Animal(Option color = default) OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// The discriminator diff --git a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/ApiResponse.cs b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/ApiResponse.cs index 77ec0bd5ed2d..6d2870b461f3 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/ApiResponse.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/ApiResponse.cs @@ -44,7 +44,7 @@ public ApiResponse(Option code = default, Option message = default OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Used to track the state of Code diff --git a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/Apple.cs b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/Apple.cs index df3bc9af06cc..d021ad2d4958 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/Apple.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/Apple.cs @@ -44,7 +44,7 @@ public Apple(Option colorCode = default, Option cultivar = defau OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Used to track the state of ColorCode diff --git a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/AppleReq.cs b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/AppleReq.cs index 1cc72ecd59d3..73f39589fe21 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/AppleReq.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/AppleReq.cs @@ -42,7 +42,7 @@ public AppleReq(string cultivar, Option mealy = default) OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Gets or Sets Cultivar diff --git a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/ArrayOfArrayOfNumberOnly.cs b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/ArrayOfArrayOfNumberOnly.cs index d2398a452eee..697f6c964a19 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/ArrayOfArrayOfNumberOnly.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/ArrayOfArrayOfNumberOnly.cs @@ -40,7 +40,7 @@ public ArrayOfArrayOfNumberOnly(Option>> arrayArrayNumber = d OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Used to track the state of ArrayArrayNumber diff --git a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/ArrayOfNumberOnly.cs b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/ArrayOfNumberOnly.cs index cce8d5d564b6..b1bba9d4e9b1 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/ArrayOfNumberOnly.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/ArrayOfNumberOnly.cs @@ -40,7 +40,7 @@ public ArrayOfNumberOnly(Option> arrayNumber = default) OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Used to track the state of ArrayNumber diff --git a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/ArrayTest.cs b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/ArrayTest.cs index 3fbc72e2f5ab..4200504840ed 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/ArrayTest.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/ArrayTest.cs @@ -44,7 +44,7 @@ public ArrayTest(Option>> arrayArrayOfInteger = default, Option< OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Used to track the state of ArrayArrayOfInteger diff --git a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/Banana.cs b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/Banana.cs index d92ba4ae6aef..cdd4c9cc4ce4 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/Banana.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/Banana.cs @@ -40,7 +40,7 @@ public Banana(Option lengthCm = default) OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Used to track the state of LengthCm diff --git a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/BananaReq.cs b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/BananaReq.cs index c9734cbe3808..371a8d61c67b 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/BananaReq.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/BananaReq.cs @@ -42,7 +42,7 @@ public BananaReq(decimal lengthCm, Option sweet = default) OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Gets or Sets LengthCm diff --git a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/BasquePig.cs b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/BasquePig.cs index 9938d89e008d..3bb04d8e04e1 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/BasquePig.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/BasquePig.cs @@ -40,7 +40,7 @@ public BasquePig(string className) OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Gets or Sets ClassName diff --git a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/Capitalization.cs b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/Capitalization.cs index a1fb0b3eb574..c9d0f8a45227 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/Capitalization.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/Capitalization.cs @@ -50,7 +50,7 @@ public Capitalization(Option aTTNAME = default, Option capitalCa OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Used to track the state of ATT_NAME diff --git a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/Cat.cs b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/Cat.cs index 0ffe1228015d..4b85228b4b74 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/Cat.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/Cat.cs @@ -41,7 +41,7 @@ public Cat(Option color = default, Option declawed = default) : b OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// The discriminator diff --git a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/Category.cs b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/Category.cs index f483d87f36c8..a0dfa1015567 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/Category.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/Category.cs @@ -42,7 +42,7 @@ public Category(Option id = default, string name = @"default-name") OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Used to track the state of Id diff --git a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/ChildCat.cs b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/ChildCat.cs index 2eb5dd8dc35a..c495b86f5c99 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/ChildCat.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/ChildCat.cs @@ -40,7 +40,7 @@ public ChildCat(Option name = default) : base() OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Defines PetType diff --git a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/ClassModel.cs b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/ClassModel.cs index 7c49d7adb55c..e181a808250b 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/ClassModel.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/ClassModel.cs @@ -40,7 +40,7 @@ public ClassModel(Option @class = default) OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Used to track the state of Class diff --git a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/ComplexQuadrilateral.cs b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/ComplexQuadrilateral.cs index 3023a45610e4..9ed7d63b7732 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/ComplexQuadrilateral.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/ComplexQuadrilateral.cs @@ -42,7 +42,7 @@ public ComplexQuadrilateral(string quadrilateralType, string shapeType) OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Gets or Sets QuadrilateralType diff --git a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/DanishPig.cs b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/DanishPig.cs index 14b2ed3b153f..8377e0f76cf5 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/DanishPig.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/DanishPig.cs @@ -40,7 +40,7 @@ public DanishPig(string className) OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Gets or Sets ClassName diff --git a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/DateOnlyClass.cs b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/DateOnlyClass.cs index 1c478cf336df..d67efe6868d1 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/DateOnlyClass.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/DateOnlyClass.cs @@ -40,7 +40,7 @@ public DateOnlyClass(Option dateOnlyProperty = default) OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Used to track the state of DateOnlyProperty diff --git a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/DeprecatedObject.cs b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/DeprecatedObject.cs index 08067c5cc07c..3e5a4c2ed04c 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/DeprecatedObject.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/DeprecatedObject.cs @@ -40,7 +40,7 @@ public DeprecatedObject(Option name = default) OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Used to track the state of Name diff --git a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/Dog.cs b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/Dog.cs index 605dc512434b..f6cb7298cf5f 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/Dog.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/Dog.cs @@ -41,7 +41,7 @@ public Dog(Option breed = default, Option color = default) : bas OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// The discriminator diff --git a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/Drawing.cs b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/Drawing.cs index a853b96144e2..a37514a314cc 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/Drawing.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/Drawing.cs @@ -46,7 +46,7 @@ public Drawing(Option mainShape = default, Option nullable OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Used to track the state of MainShape diff --git a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/EnumArrays.cs b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/EnumArrays.cs index b6716a58e539..7fb174dac22f 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/EnumArrays.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/EnumArrays.cs @@ -42,7 +42,7 @@ public EnumArrays(Option> arrayEnum = default, Op OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Defines ArrayEnum diff --git a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/EnumTest.cs b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/EnumTest.cs index 08e961298725..33ddf1643207 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/EnumTest.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/EnumTest.cs @@ -56,7 +56,7 @@ public EnumTest(EnumStringRequiredEnum enumStringRequired, Option /// Defines EnumStringRequired diff --git a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/EquilateralTriangle.cs b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/EquilateralTriangle.cs index d65c7740e5e8..e68cf480a05f 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/EquilateralTriangle.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/EquilateralTriangle.cs @@ -42,7 +42,7 @@ public EquilateralTriangle(string shapeType, string triangleType) OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Gets or Sets ShapeType diff --git a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/File.cs b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/File.cs index 092f10c09324..0519a20c9bfc 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/File.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/File.cs @@ -40,7 +40,7 @@ public File(Option sourceURI = default) OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Used to track the state of SourceURI diff --git a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/FileSchemaTestClass.cs b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/FileSchemaTestClass.cs index f9d9d9f7a7b8..1924423c7bc7 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/FileSchemaTestClass.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/FileSchemaTestClass.cs @@ -42,7 +42,7 @@ public FileSchemaTestClass(Option file = default, Option> files OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Used to track the state of File diff --git a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/Foo.cs b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/Foo.cs index 3eeca0aa2112..d3fb68454516 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/Foo.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/Foo.cs @@ -40,7 +40,7 @@ public Foo(Option bar = default) OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Used to track the state of Bar diff --git a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/FooGetDefaultResponse.cs b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/FooGetDefaultResponse.cs index c7d043666115..97979c9952d9 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/FooGetDefaultResponse.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/FooGetDefaultResponse.cs @@ -40,7 +40,7 @@ public FooGetDefaultResponse(Option @string = default) OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Used to track the state of String diff --git a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/FormatTest.cs b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/FormatTest.cs index 86d63c7ac5f6..460ee09eae25 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/FormatTest.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/FormatTest.cs @@ -86,7 +86,7 @@ public FormatTest(byte[] @byte, DateTime date, decimal number, string password, OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Gets or Sets Byte diff --git a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/Fruit.cs b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/Fruit.cs index cc8b4530f01c..39f5367f7a2b 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/Fruit.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/Fruit.cs @@ -53,7 +53,7 @@ public Fruit(Banana banana, Option color = default) OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Gets or Sets Apple diff --git a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/FruitReq.cs b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/FruitReq.cs index 1e72875d4d32..fad135111099 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/FruitReq.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/FruitReq.cs @@ -49,7 +49,7 @@ public FruitReq(BananaReq bananaReq) OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Gets or Sets AppleReq diff --git a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/GmFruit.cs b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/GmFruit.cs index 78cb87b61a31..b093b213ea63 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/GmFruit.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/GmFruit.cs @@ -43,7 +43,7 @@ public GmFruit(Option apple, Option banana, Option color OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Used to track the state of Apple diff --git a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/GrandparentAnimal.cs b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/GrandparentAnimal.cs index b23e4826fd6b..6bbb19b1789e 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/GrandparentAnimal.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/GrandparentAnimal.cs @@ -38,7 +38,7 @@ public GrandparentAnimal() OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// The discriminator diff --git a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/HasOnlyReadOnly.cs b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/HasOnlyReadOnly.cs index a4e67f73a8e5..45947ab3cd6a 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/HasOnlyReadOnly.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/HasOnlyReadOnly.cs @@ -42,7 +42,7 @@ internal HasOnlyReadOnly(Option bar = default, Option foo = defa OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Used to track the state of Bar diff --git a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/HealthCheckResult.cs b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/HealthCheckResult.cs index 16afc025fa03..5b841e42fc13 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/HealthCheckResult.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/HealthCheckResult.cs @@ -40,7 +40,7 @@ public HealthCheckResult(Option nullableMessage = default) OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Used to track the state of NullableMessage diff --git a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/IsoscelesTriangle.cs b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/IsoscelesTriangle.cs index cce859524111..651f261659c1 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/IsoscelesTriangle.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/IsoscelesTriangle.cs @@ -42,7 +42,7 @@ public IsoscelesTriangle(string shapeType, string triangleType) OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Gets or Sets ShapeType diff --git a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/List.cs b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/List.cs index 050d58f85c23..ee5738e61a90 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/List.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/List.cs @@ -40,7 +40,7 @@ public List(Option var123List = default) OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Used to track the state of Var123List diff --git a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/LiteralStringClass.cs b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/LiteralStringClass.cs index 522ba51e6cb3..0ab4393a312a 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/LiteralStringClass.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/LiteralStringClass.cs @@ -42,7 +42,7 @@ public LiteralStringClass(Option escapedLiteralString = default, Option< OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Used to track the state of EscapedLiteralString diff --git a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/Mammal.cs b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/Mammal.cs index 267ac8769d31..d9a8cde9cd81 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/Mammal.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/Mammal.cs @@ -59,7 +59,7 @@ public Mammal(Pig pig) OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Gets or Sets Whale diff --git a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/MapTest.cs b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/MapTest.cs index 97588d56888a..c20106d3c894 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/MapTest.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/MapTest.cs @@ -46,7 +46,7 @@ public MapTest(Option> directMap = default, Option /// Defines Inner diff --git a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/MixLog.cs b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/MixLog.cs index d18711f51031..23ded06af5f3 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/MixLog.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/MixLog.cs @@ -102,7 +102,7 @@ public MixLog(string description, DateTime formulaVersionDate, Guid id, DateTime OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Gets or Sets Description diff --git a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/MixedAnyOf.cs b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/MixedAnyOf.cs index c81de3d2f67d..26da905605af 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/MixedAnyOf.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/MixedAnyOf.cs @@ -40,7 +40,7 @@ public MixedAnyOf(Option content = default) OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Used to track the state of Content diff --git a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/MixedAnyOfContent.cs b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/MixedAnyOfContent.cs index 5de026753ef2..4dc98a482ac3 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/MixedAnyOfContent.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/MixedAnyOfContent.cs @@ -47,7 +47,7 @@ public MixedAnyOfContent(Option @string, Option @bool, Option /// Used to track the state of String diff --git a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/MixedOneOf.cs b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/MixedOneOf.cs index 32515bc04405..231aee38015f 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/MixedOneOf.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/MixedOneOf.cs @@ -40,7 +40,7 @@ public MixedOneOf(Option content = default) OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Used to track the state of Content diff --git a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/MixedOneOfContent.cs b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/MixedOneOfContent.cs index 4cb69dae28cd..bd9823fdcbc1 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/MixedOneOfContent.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/MixedOneOfContent.cs @@ -79,7 +79,7 @@ public MixedOneOfContent(MixedSubId mixedSubId) OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Gets or Sets String diff --git a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/MixedPropertiesAndAdditionalPropertiesClass.cs b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/MixedPropertiesAndAdditionalPropertiesClass.cs index 3cef3330300e..11749dd1fe0f 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/MixedPropertiesAndAdditionalPropertiesClass.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/MixedPropertiesAndAdditionalPropertiesClass.cs @@ -46,7 +46,7 @@ public MixedPropertiesAndAdditionalPropertiesClass(Option dateTime = OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Used to track the state of DateTime diff --git a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/MixedSubId.cs b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/MixedSubId.cs index 34198e6f437a..82f0e9116050 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/MixedSubId.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/MixedSubId.cs @@ -40,7 +40,7 @@ public MixedSubId(Option id = default) OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Used to track the state of Id diff --git a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/Model200Response.cs b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/Model200Response.cs index bf37307ad965..33d75857f84d 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/Model200Response.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/Model200Response.cs @@ -42,7 +42,7 @@ public Model200Response(Option @class = default, Option name = def OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Used to track the state of Class diff --git a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/ModelClient.cs b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/ModelClient.cs index 5d459e8b5eb1..f84fbb6a6186 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/ModelClient.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/ModelClient.cs @@ -40,7 +40,7 @@ public ModelClient(Option varClient = default) OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Used to track the state of VarClient diff --git a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/Name.cs b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/Name.cs index b322aaf568ce..814ee7510454 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/Name.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/Name.cs @@ -46,7 +46,7 @@ public Name(int varName, Option property = default, Option snakeCa OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Gets or Sets VarName diff --git a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/NotificationtestGetElementsV1ResponseMPayload.cs b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/NotificationtestGetElementsV1ResponseMPayload.cs index ea8abdda0d78..d6c1a4bf339b 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/NotificationtestGetElementsV1ResponseMPayload.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/NotificationtestGetElementsV1ResponseMPayload.cs @@ -42,7 +42,7 @@ public NotificationtestGetElementsV1ResponseMPayload(List /// Gets or Sets AObjVariableobject diff --git a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/NullableClass.cs b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/NullableClass.cs index 42533f9c7ebf..6e2518705255 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/NullableClass.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/NullableClass.cs @@ -62,7 +62,7 @@ public NullableClass(Option> arrayAndItemsNullableProp = default, O OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Used to track the state of ArrayAndItemsNullableProp diff --git a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/NullableGuidClass.cs b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/NullableGuidClass.cs index 286d13258dce..446d782de457 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/NullableGuidClass.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/NullableGuidClass.cs @@ -40,7 +40,7 @@ public NullableGuidClass(Option uuid = default) OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Used to track the state of Uuid diff --git a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/NullableShape.cs b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/NullableShape.cs index 9a93cb734e9c..995568e86c42 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/NullableShape.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/NullableShape.cs @@ -49,7 +49,7 @@ public NullableShape(Quadrilateral quadrilateral) OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Gets or Sets Triangle diff --git a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/NumberOnly.cs b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/NumberOnly.cs index 29f5a80e6462..bb0c7a57114a 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/NumberOnly.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/NumberOnly.cs @@ -40,7 +40,7 @@ public NumberOnly(Option justNumber = default) OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Used to track the state of JustNumber diff --git a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/ObjectWithDeprecatedFields.cs b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/ObjectWithDeprecatedFields.cs index 83f513bc63bb..0fa7f080b76c 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/ObjectWithDeprecatedFields.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/ObjectWithDeprecatedFields.cs @@ -46,7 +46,7 @@ public ObjectWithDeprecatedFields(Option> bars = default, Option /// Used to track the state of Bars diff --git a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/OneOfString.cs b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/OneOfString.cs index c89963f55a36..999f3ce9a2e5 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/OneOfString.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/OneOfString.cs @@ -39,7 +39,7 @@ internal OneOfString(string @string) OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Gets or Sets String diff --git a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/Order.cs b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/Order.cs index 580ef432ecf1..d510e57328de 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/Order.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/Order.cs @@ -50,7 +50,7 @@ public Order(Option complete = default, Option id = default, Optio OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Order Status diff --git a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/OuterComposite.cs b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/OuterComposite.cs index 92ec1939d1af..5c00052aa141 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/OuterComposite.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/OuterComposite.cs @@ -44,7 +44,7 @@ public OuterComposite(Option myBoolean = default, Option myNumb OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Used to track the state of MyBoolean diff --git a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/ParentPet.cs b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/ParentPet.cs index 83104e900d01..dd6f0777ee48 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/ParentPet.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/ParentPet.cs @@ -38,7 +38,7 @@ public ParentPet() : base() OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// The discriminator diff --git a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/Pet.cs b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/Pet.cs index 81d80e33de70..f56ba1be1e2c 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/Pet.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/Pet.cs @@ -50,7 +50,7 @@ public Pet(string name, List photoUrls, Option category = defa OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// pet status in the store diff --git a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/Pig.cs b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/Pig.cs index b6f300c94400..6cbb846229e6 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/Pig.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/Pig.cs @@ -49,7 +49,7 @@ public Pig(DanishPig danishPig) OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Gets or Sets BasquePig diff --git a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/PolymorphicProperty.cs b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/PolymorphicProperty.cs index ddea47edf40c..a0fdf9fa39c7 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/PolymorphicProperty.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/PolymorphicProperty.cs @@ -69,7 +69,7 @@ internal PolymorphicProperty(List list) OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Gets or Sets Bool diff --git a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/Quadrilateral.cs b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/Quadrilateral.cs index e8a2e2439975..a95ca8f058bf 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/Quadrilateral.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/Quadrilateral.cs @@ -49,7 +49,7 @@ public Quadrilateral(ComplexQuadrilateral complexQuadrilateral) OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Gets or Sets SimpleQuadrilateral diff --git a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/QuadrilateralInterface.cs b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/QuadrilateralInterface.cs index 519ed66393ca..08cade10a83f 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/QuadrilateralInterface.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/QuadrilateralInterface.cs @@ -40,7 +40,7 @@ public QuadrilateralInterface(string quadrilateralType) OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Gets or Sets QuadrilateralType diff --git a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/ReadOnlyFirst.cs b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/ReadOnlyFirst.cs index a7cd43316ac8..d39a761c6756 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/ReadOnlyFirst.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/ReadOnlyFirst.cs @@ -42,7 +42,7 @@ public ReadOnlyFirst(Option bar = default, Option baz = default) OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Used to track the state of Bar diff --git a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/RequiredClass.cs b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/RequiredClass.cs index 0990c0ab7a40..e9e94bdfae5d 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/RequiredClass.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/RequiredClass.cs @@ -126,7 +126,7 @@ public RequiredClass(DateTime requiredNotNullableDateProp, List required OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Defines RequiredNotnullableEnumInteger diff --git a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/Return.cs b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/Return.cs index 6a2c4c85eb4a..69091556b453 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/Return.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/Return.cs @@ -46,7 +46,7 @@ public Return(string @lock, string @abstract = default, Option varReturn = OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Gets or Sets Lock diff --git a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/RolesReportsHash.cs b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/RolesReportsHash.cs index 46625cb093a3..8d0cb0a73562 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/RolesReportsHash.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/RolesReportsHash.cs @@ -42,7 +42,7 @@ public RolesReportsHash(Option role = default, Option /// Used to track the state of Role diff --git a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/RolesReportsHashRole.cs b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/RolesReportsHashRole.cs index 29c8760c9722..7378b0edc04a 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/RolesReportsHashRole.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/RolesReportsHashRole.cs @@ -40,7 +40,7 @@ public RolesReportsHashRole(Option name = default) OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Used to track the state of Name diff --git a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/ScaleneTriangle.cs b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/ScaleneTriangle.cs index 5c960eb54744..ae482c9fd59c 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/ScaleneTriangle.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/ScaleneTriangle.cs @@ -42,7 +42,7 @@ public ScaleneTriangle(string shapeType, string triangleType) OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Gets or Sets ShapeType diff --git a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/Shape.cs b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/Shape.cs index c651ac7d2454..bf15bb26ed51 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/Shape.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/Shape.cs @@ -49,7 +49,7 @@ public Shape(Quadrilateral quadrilateral) OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Gets or Sets Triangle diff --git a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/ShapeInterface.cs b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/ShapeInterface.cs index 37db5df64908..192ca6aef087 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/ShapeInterface.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/ShapeInterface.cs @@ -40,7 +40,7 @@ public ShapeInterface(string shapeType) OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Gets or Sets ShapeType diff --git a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/ShapeOrNull.cs b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/ShapeOrNull.cs index 1f0b22030070..c532dcee99f3 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/ShapeOrNull.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/ShapeOrNull.cs @@ -49,7 +49,7 @@ public ShapeOrNull(Quadrilateral quadrilateral) OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Gets or Sets Triangle diff --git a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/SimpleQuadrilateral.cs b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/SimpleQuadrilateral.cs index ffa68d1e75de..0a8314e7ee3b 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/SimpleQuadrilateral.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/SimpleQuadrilateral.cs @@ -42,7 +42,7 @@ public SimpleQuadrilateral(string quadrilateralType, string shapeType) OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Gets or Sets QuadrilateralType diff --git a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/SpecialModelName.cs b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/SpecialModelName.cs index 7ec3c110c2a1..7ba549f145bb 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/SpecialModelName.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/SpecialModelName.cs @@ -42,7 +42,7 @@ public SpecialModelName(Option varSpecialModelName = default, Option /// Used to track the state of VarSpecialModelName diff --git a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/Tag.cs b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/Tag.cs index 4290e8270ff9..38aca81c755b 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/Tag.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/Tag.cs @@ -42,7 +42,7 @@ public Tag(Option id = default, Option name = default) OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Used to track the state of Id diff --git a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordList.cs b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordList.cs index 11d1cd5963c0..49258bcb159f 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordList.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordList.cs @@ -40,7 +40,7 @@ public TestCollectionEndingWithWordList(Option value = default) OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Used to track the state of Value diff --git a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordListObject.cs b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordListObject.cs index 04d04337aa4a..e9467b8f265f 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordListObject.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordListObject.cs @@ -40,7 +40,7 @@ public TestCollectionEndingWithWordListObject(Option /// Used to track the state of TestCollectionEndingWithWordList diff --git a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/TestInlineFreeformAdditionalPropertiesRequest.cs b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/TestInlineFreeformAdditionalPropertiesRequest.cs index 33f5183651a3..407afedd0da9 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/TestInlineFreeformAdditionalPropertiesRequest.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/TestInlineFreeformAdditionalPropertiesRequest.cs @@ -40,7 +40,7 @@ public TestInlineFreeformAdditionalPropertiesRequest(Option someProperty OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Used to track the state of SomeProperty diff --git a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/Triangle.cs b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/Triangle.cs index cf22051519ad..36cae8b499ba 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/Triangle.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/Triangle.cs @@ -59,7 +59,7 @@ public Triangle(ScaleneTriangle scaleneTriangle) OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Gets or Sets EquilateralTriangle diff --git a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/TriangleInterface.cs b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/TriangleInterface.cs index 0f13b0e77451..55f659bdd721 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/TriangleInterface.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/TriangleInterface.cs @@ -40,7 +40,7 @@ public TriangleInterface(string triangleType) OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Gets or Sets TriangleType diff --git a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/User.cs b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/User.cs index e89d58457324..1f6231bd7a9f 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/User.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/User.cs @@ -62,7 +62,7 @@ public User(Option anyTypeProp = default, Option anyTypePropNull OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Used to track the state of AnyTypeProp diff --git a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/Whale.cs b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/Whale.cs index 834e6957c675..8bf23ccec947 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/Whale.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/Whale.cs @@ -44,7 +44,7 @@ public Whale(string className, Option hasBaleen = default, Option OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Gets or Sets ClassName diff --git a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/Zebra.cs b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/Zebra.cs index bdf489815279..26f62a0157ab 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/Zebra.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/Zebra.cs @@ -42,7 +42,7 @@ public Zebra(string className, Option type = default) OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Defines Type diff --git a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/ZeroBasedEnumClass.cs b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/ZeroBasedEnumClass.cs index a6d408aeecc1..40e3d6d25f59 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/ZeroBasedEnumClass.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/ZeroBasedEnumClass.cs @@ -40,7 +40,7 @@ public ZeroBasedEnumClass(Option zeroBasedEnum = default) OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Defines ZeroBasedEnum 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 1662385fe8f8..cbb2c3b58c0b 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 @@ -150,7 +150,7 @@ private void AfterNowGetDefaultImplementation(INowGetApiResponse apiResponseLoca /// /// /// - partial void AfterNowGet(ref bool suppressDefaultLog, INowGetApiResponse apiResponseLocalVar); + public virtual void AfterNowGet(ref bool suppressDefaultLog, INowGetApiResponse apiResponseLocalVar) { } /// /// Logs exceptions that occur while retrieving the server response @@ -173,7 +173,7 @@ private void OnErrorNowGetDefaultImplementation(Exception exceptionLocalVar, str /// /// /// - partial void OnErrorNowGet(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar); + public virtual void OnErrorNowGet(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar) { } /// /// @@ -275,7 +275,7 @@ public NowGetApiResponse(ILogger logger, System.Net.Http.Http OnCreated(httpRequestMessage, httpResponseMessage); } - partial void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage); + public virtual void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage) { } /// /// Returns true if the response is 200 Ok @@ -323,7 +323,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } - partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); + public virtual void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode) { } } } } diff --git a/samples/client/petstore/csharp/generichost/net4.8/UseDateTimeForDate/src/Org.OpenAPITools/Client/ApiResponse`1.cs b/samples/client/petstore/csharp/generichost/net4.8/UseDateTimeForDate/src/Org.OpenAPITools/Client/ApiResponse`1.cs index fe5b2fe67aa2..76ab6e712b3b 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/UseDateTimeForDate/src/Org.OpenAPITools/Client/ApiResponse`1.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/UseDateTimeForDate/src/Org.OpenAPITools/Client/ApiResponse`1.cs @@ -145,7 +145,7 @@ public ApiResponse(global::System.Net.Http.HttpRequestMessage httpRequestMessage OnCreated(httpRequestMessage, httpResponseMessage); } - partial void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage); + public virtual void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage) { } } /// diff --git a/samples/client/petstore/csharp/generichost/net4.8/UseDateTimeForDate/src/Org.OpenAPITools/Model/NowGet200Response.cs b/samples/client/petstore/csharp/generichost/net4.8/UseDateTimeForDate/src/Org.OpenAPITools/Model/NowGet200Response.cs index 504c2976b3f4..df0c1752b505 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/UseDateTimeForDate/src/Org.OpenAPITools/Model/NowGet200Response.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/UseDateTimeForDate/src/Org.OpenAPITools/Model/NowGet200Response.cs @@ -41,7 +41,7 @@ public NowGet200Response(Option now = default, Option toda OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Used to track the state of Now 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 910c5c211fba..69685e6b943f 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 @@ -137,7 +137,7 @@ public DefaultApi(ILogger logger, ILoggerFactory loggerFactory, Http Events = defaultApiEvents; } - partial void FormatList(ref string personId); + public virtual void FormatList(ref string personId) { } /// /// Validates the request parameters @@ -169,7 +169,7 @@ private void AfterListDefaultImplementation(IListApiResponse apiResponseLocalVar /// /// /// - partial void AfterList(ref bool suppressDefaultLog, IListApiResponse apiResponseLocalVar, string personId); + public virtual void AfterList(ref bool suppressDefaultLog, IListApiResponse apiResponseLocalVar, string personId) { } /// /// Logs exceptions that occur while retrieving the server response @@ -194,7 +194,7 @@ private void OnErrorListDefaultImplementation(Exception exceptionLocalVar, strin /// /// /// - partial void OnErrorList(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, string personId); + public virtual void OnErrorList(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, string personId) { } /// /// @@ -304,7 +304,7 @@ public ListApiResponse(ILogger logger, System.Net.Http.HttpRequ OnCreated(httpRequestMessage, httpResponseMessage); } - partial void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage); + public virtual void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage) { } /// /// Returns true if the response is 200 Ok @@ -352,7 +352,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } - partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); + public virtual void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode) { } } } } diff --git a/samples/client/petstore/csharp/generichost/net8/AllOf/src/Org.OpenAPITools/Client/ApiResponse`1.cs b/samples/client/petstore/csharp/generichost/net8/AllOf/src/Org.OpenAPITools/Client/ApiResponse`1.cs index 29ca5094b343..18b3a5ff71c1 100644 --- a/samples/client/petstore/csharp/generichost/net8/AllOf/src/Org.OpenAPITools/Client/ApiResponse`1.cs +++ b/samples/client/petstore/csharp/generichost/net8/AllOf/src/Org.OpenAPITools/Client/ApiResponse`1.cs @@ -147,7 +147,7 @@ public ApiResponse(global::System.Net.Http.HttpRequestMessage httpRequestMessage OnCreated(httpRequestMessage, httpResponseMessage); } - partial void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage); + public virtual void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage) { } } /// diff --git a/samples/client/petstore/csharp/generichost/net8/AllOf/src/Org.OpenAPITools/Model/Adult.cs b/samples/client/petstore/csharp/generichost/net8/AllOf/src/Org.OpenAPITools/Model/Adult.cs index 061761d954f3..9da05037db96 100644 --- a/samples/client/petstore/csharp/generichost/net8/AllOf/src/Org.OpenAPITools/Model/Adult.cs +++ b/samples/client/petstore/csharp/generichost/net8/AllOf/src/Org.OpenAPITools/Model/Adult.cs @@ -44,7 +44,7 @@ public Adult(Option?> children = default, Option firstName OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Used to track the state of Children diff --git a/samples/client/petstore/csharp/generichost/net8/AllOf/src/Org.OpenAPITools/Model/Child.cs b/samples/client/petstore/csharp/generichost/net8/AllOf/src/Org.OpenAPITools/Model/Child.cs index 94bb37a7732d..b004f6828286 100644 --- a/samples/client/petstore/csharp/generichost/net8/AllOf/src/Org.OpenAPITools/Model/Child.cs +++ b/samples/client/petstore/csharp/generichost/net8/AllOf/src/Org.OpenAPITools/Model/Child.cs @@ -46,7 +46,7 @@ public Child(Option age = default, Option firstName = default, Op OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Used to track the state of Age diff --git a/samples/client/petstore/csharp/generichost/net8/AllOf/src/Org.OpenAPITools/Model/Person.cs b/samples/client/petstore/csharp/generichost/net8/AllOf/src/Org.OpenAPITools/Model/Person.cs index d3f9d198830e..2170ffeb3c95 100644 --- a/samples/client/petstore/csharp/generichost/net8/AllOf/src/Org.OpenAPITools/Model/Person.cs +++ b/samples/client/petstore/csharp/generichost/net8/AllOf/src/Org.OpenAPITools/Model/Person.cs @@ -44,7 +44,7 @@ public Person(Option firstName = default, Option lastName = de OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Used to track the state of FirstName 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 030cc3bf12e0..aba93ad77f6d 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 @@ -152,7 +152,7 @@ private void AfterRootGetDefaultImplementation(IRootGetApiResponse apiResponseLo /// /// /// - partial void AfterRootGet(ref bool suppressDefaultLog, IRootGetApiResponse apiResponseLocalVar); + public virtual void AfterRootGet(ref bool suppressDefaultLog, IRootGetApiResponse apiResponseLocalVar) { } /// /// Logs exceptions that occur while retrieving the server response @@ -175,7 +175,7 @@ private void OnErrorRootGetDefaultImplementation(Exception exceptionLocalVar, st /// /// /// - partial void OnErrorRootGet(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar); + public virtual void OnErrorRootGet(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar) { } /// /// @@ -278,7 +278,7 @@ public RootGetApiResponse(ILogger logger, System.Net.Http.Ht OnCreated(httpRequestMessage, httpResponseMessage); } - partial void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage); + public virtual void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage) { } /// /// Returns true if the response is 200 Ok @@ -326,7 +326,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } - partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); + public virtual void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode) { } } } } diff --git a/samples/client/petstore/csharp/generichost/net8/AnyOf/src/Org.OpenAPITools/Client/ApiResponse`1.cs b/samples/client/petstore/csharp/generichost/net8/AnyOf/src/Org.OpenAPITools/Client/ApiResponse`1.cs index 2675478b8b4f..f1b3c91302e2 100644 --- a/samples/client/petstore/csharp/generichost/net8/AnyOf/src/Org.OpenAPITools/Client/ApiResponse`1.cs +++ b/samples/client/petstore/csharp/generichost/net8/AnyOf/src/Org.OpenAPITools/Client/ApiResponse`1.cs @@ -147,7 +147,7 @@ public ApiResponse(global::System.Net.Http.HttpRequestMessage httpRequestMessage OnCreated(httpRequestMessage, httpResponseMessage); } - partial void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage); + public virtual void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage) { } } /// diff --git a/samples/client/petstore/csharp/generichost/net8/AnyOf/src/Org.OpenAPITools/Model/Apple.cs b/samples/client/petstore/csharp/generichost/net8/AnyOf/src/Org.OpenAPITools/Model/Apple.cs index dd3528fa42a4..653d5387c7db 100644 --- a/samples/client/petstore/csharp/generichost/net8/AnyOf/src/Org.OpenAPITools/Model/Apple.cs +++ b/samples/client/petstore/csharp/generichost/net8/AnyOf/src/Org.OpenAPITools/Model/Apple.cs @@ -42,7 +42,7 @@ public Apple(Option kind = default) OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Used to track the state of Kind diff --git a/samples/client/petstore/csharp/generichost/net8/AnyOf/src/Org.OpenAPITools/Model/Banana.cs b/samples/client/petstore/csharp/generichost/net8/AnyOf/src/Org.OpenAPITools/Model/Banana.cs index 66a33723aebc..68da040ec73d 100644 --- a/samples/client/petstore/csharp/generichost/net8/AnyOf/src/Org.OpenAPITools/Model/Banana.cs +++ b/samples/client/petstore/csharp/generichost/net8/AnyOf/src/Org.OpenAPITools/Model/Banana.cs @@ -42,7 +42,7 @@ public Banana(Option count = default) OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Used to track the state of Count diff --git a/samples/client/petstore/csharp/generichost/net8/AnyOf/src/Org.OpenAPITools/Model/Fruit.cs b/samples/client/petstore/csharp/generichost/net8/AnyOf/src/Org.OpenAPITools/Model/Fruit.cs index 64a206e3bd57..5ee91c97bf25 100644 --- a/samples/client/petstore/csharp/generichost/net8/AnyOf/src/Org.OpenAPITools/Model/Fruit.cs +++ b/samples/client/petstore/csharp/generichost/net8/AnyOf/src/Org.OpenAPITools/Model/Fruit.cs @@ -45,7 +45,7 @@ public Fruit(Option apple, Option banana, Option color OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Used to track the state of Apple 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 030cc3bf12e0..aba93ad77f6d 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 @@ -152,7 +152,7 @@ private void AfterRootGetDefaultImplementation(IRootGetApiResponse apiResponseLo /// /// /// - partial void AfterRootGet(ref bool suppressDefaultLog, IRootGetApiResponse apiResponseLocalVar); + public virtual void AfterRootGet(ref bool suppressDefaultLog, IRootGetApiResponse apiResponseLocalVar) { } /// /// Logs exceptions that occur while retrieving the server response @@ -175,7 +175,7 @@ private void OnErrorRootGetDefaultImplementation(Exception exceptionLocalVar, st /// /// /// - partial void OnErrorRootGet(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar); + public virtual void OnErrorRootGet(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar) { } /// /// @@ -278,7 +278,7 @@ public RootGetApiResponse(ILogger logger, System.Net.Http.Ht OnCreated(httpRequestMessage, httpResponseMessage); } - partial void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage); + public virtual void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage) { } /// /// Returns true if the response is 200 Ok @@ -326,7 +326,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } - partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); + public virtual void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode) { } } } } diff --git a/samples/client/petstore/csharp/generichost/net8/AnyOfNoCompare/src/Org.OpenAPITools/Client/ApiResponse`1.cs b/samples/client/petstore/csharp/generichost/net8/AnyOfNoCompare/src/Org.OpenAPITools/Client/ApiResponse`1.cs index 2675478b8b4f..f1b3c91302e2 100644 --- a/samples/client/petstore/csharp/generichost/net8/AnyOfNoCompare/src/Org.OpenAPITools/Client/ApiResponse`1.cs +++ b/samples/client/petstore/csharp/generichost/net8/AnyOfNoCompare/src/Org.OpenAPITools/Client/ApiResponse`1.cs @@ -147,7 +147,7 @@ public ApiResponse(global::System.Net.Http.HttpRequestMessage httpRequestMessage OnCreated(httpRequestMessage, httpResponseMessage); } - partial void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage); + public virtual void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage) { } } /// diff --git a/samples/client/petstore/csharp/generichost/net8/AnyOfNoCompare/src/Org.OpenAPITools/Model/Apple.cs b/samples/client/petstore/csharp/generichost/net8/AnyOfNoCompare/src/Org.OpenAPITools/Model/Apple.cs index 8531edebf731..210f30b37e89 100644 --- a/samples/client/petstore/csharp/generichost/net8/AnyOfNoCompare/src/Org.OpenAPITools/Model/Apple.cs +++ b/samples/client/petstore/csharp/generichost/net8/AnyOfNoCompare/src/Org.OpenAPITools/Model/Apple.cs @@ -41,7 +41,7 @@ public Apple(Option kind = default) OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Used to track the state of Kind diff --git a/samples/client/petstore/csharp/generichost/net8/AnyOfNoCompare/src/Org.OpenAPITools/Model/Banana.cs b/samples/client/petstore/csharp/generichost/net8/AnyOfNoCompare/src/Org.OpenAPITools/Model/Banana.cs index 36e0ac854e6d..c5357f52febb 100644 --- a/samples/client/petstore/csharp/generichost/net8/AnyOfNoCompare/src/Org.OpenAPITools/Model/Banana.cs +++ b/samples/client/petstore/csharp/generichost/net8/AnyOfNoCompare/src/Org.OpenAPITools/Model/Banana.cs @@ -41,7 +41,7 @@ public Banana(Option count = default) OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Used to track the state of Count diff --git a/samples/client/petstore/csharp/generichost/net8/AnyOfNoCompare/src/Org.OpenAPITools/Model/Fruit.cs b/samples/client/petstore/csharp/generichost/net8/AnyOfNoCompare/src/Org.OpenAPITools/Model/Fruit.cs index 73c92d0cded3..2029ace52aa8 100644 --- a/samples/client/petstore/csharp/generichost/net8/AnyOfNoCompare/src/Org.OpenAPITools/Model/Fruit.cs +++ b/samples/client/petstore/csharp/generichost/net8/AnyOfNoCompare/src/Org.OpenAPITools/Model/Fruit.cs @@ -44,7 +44,7 @@ public Fruit(Option apple, Option banana, Option color OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Used to track the state of Apple 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 3d7d0c482339..fe8544340a67 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 @@ -170,7 +170,7 @@ public AnotherFakeApi(ILogger logger, ILoggerFactory loggerFacto OauthTokenProvider = oauthTokenProvider; } - partial void FormatCall123TestSpecialTags(ModelClient modelClient); + public virtual void FormatCall123TestSpecialTags(ModelClient modelClient) { } /// /// Validates the request parameters @@ -202,7 +202,7 @@ private void AfterCall123TestSpecialTagsDefaultImplementation(ICall123TestSpecia /// /// /// - partial void AfterCall123TestSpecialTags(ref bool suppressDefaultLog, ICall123TestSpecialTagsApiResponse apiResponseLocalVar, ModelClient modelClient); + public virtual void AfterCall123TestSpecialTags(ref bool suppressDefaultLog, ICall123TestSpecialTagsApiResponse apiResponseLocalVar, ModelClient modelClient) { } /// /// Logs exceptions that occur while retrieving the server response @@ -227,7 +227,7 @@ private void OnErrorCall123TestSpecialTagsDefaultImplementation(Exception except /// /// /// - partial void OnErrorCall123TestSpecialTags(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, ModelClient modelClient); + public virtual 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 @@ -349,7 +349,7 @@ public Call123TestSpecialTagsApiResponse(ILogger /// Returns true if the response is 200 Ok @@ -397,7 +397,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } - partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); + public virtual void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode) { } } } } 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 84ec2eff6bff..07e78f664b90 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 @@ -399,7 +399,7 @@ private void AfterFooGetDefaultImplementation(IFooGetApiResponse apiResponseLoca /// /// /// - partial void AfterFooGet(ref bool suppressDefaultLog, IFooGetApiResponse apiResponseLocalVar); + public virtual void AfterFooGet(ref bool suppressDefaultLog, IFooGetApiResponse apiResponseLocalVar) { } /// /// Logs exceptions that occur while retrieving the server response @@ -422,7 +422,7 @@ private void OnErrorFooGetDefaultImplementation(Exception exceptionLocalVar, str /// /// /// - partial void OnErrorFooGet(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar); + public virtual void OnErrorFooGet(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar) { } /// /// @@ -525,7 +525,7 @@ public FooGetApiResponse(ILogger logger, System.Net.Http.Http OnCreated(httpRequestMessage, httpResponseMessage); } - partial void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage); + public virtual void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage) { } /// /// Returns true if the response is the default response type @@ -573,10 +573,10 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } - partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); + public virtual void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode) { } } - partial void FormatGetCountry(ref string country); + public virtual void FormatGetCountry(ref string country) { } /// /// Validates the request parameters @@ -608,7 +608,7 @@ private void AfterGetCountryDefaultImplementation(IGetCountryApiResponse apiResp /// /// /// - partial void AfterGetCountry(ref bool suppressDefaultLog, IGetCountryApiResponse apiResponseLocalVar, string country); + public virtual void AfterGetCountry(ref bool suppressDefaultLog, IGetCountryApiResponse apiResponseLocalVar, string country) { } /// /// Logs exceptions that occur while retrieving the server response @@ -633,7 +633,7 @@ private void OnErrorGetCountryDefaultImplementation(Exception exceptionLocalVar, /// /// /// - partial void OnErrorGetCountry(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, string country); + public virtual void OnErrorGetCountry(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, string country) { } /// /// @@ -752,7 +752,7 @@ public GetCountryApiResponse(ILogger logger, System.Net.H OnCreated(httpRequestMessage, httpResponseMessage); } - partial void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage); + public virtual void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage) { } /// /// Returns true if the response is 200 Ok @@ -768,7 +768,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } - partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); + public virtual void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode) { } } /// @@ -788,7 +788,7 @@ private void AfterHelloDefaultImplementation(IHelloApiResponse apiResponseLocalV /// /// /// - partial void AfterHello(ref bool suppressDefaultLog, IHelloApiResponse apiResponseLocalVar); + public virtual void AfterHello(ref bool suppressDefaultLog, IHelloApiResponse apiResponseLocalVar) { } /// /// Logs exceptions that occur while retrieving the server response @@ -811,7 +811,7 @@ private void OnErrorHelloDefaultImplementation(Exception exceptionLocalVar, stri /// /// /// - partial void OnErrorHello(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar); + public virtual void OnErrorHello(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar) { } /// /// Hello Hello @@ -914,7 +914,7 @@ public HelloApiResponse(ILogger logger, System.Net.Http.HttpRe OnCreated(httpRequestMessage, httpResponseMessage); } - partial void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage); + public virtual void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage) { } /// /// Returns true if the response is 200 Ok @@ -962,7 +962,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } - partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); + public virtual void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode) { } } /// @@ -982,7 +982,7 @@ private void AfterRolesReportGetDefaultImplementation(IRolesReportGetApiResponse /// /// /// - partial void AfterRolesReportGet(ref bool suppressDefaultLog, IRolesReportGetApiResponse apiResponseLocalVar); + public virtual void AfterRolesReportGet(ref bool suppressDefaultLog, IRolesReportGetApiResponse apiResponseLocalVar) { } /// /// Logs exceptions that occur while retrieving the server response @@ -1005,7 +1005,7 @@ private void OnErrorRolesReportGetDefaultImplementation(Exception exceptionLocal /// /// /// - partial void OnErrorRolesReportGet(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar); + public virtual void OnErrorRolesReportGet(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar) { } /// /// @@ -1108,7 +1108,7 @@ public RolesReportGetApiResponse(ILogger logger, Syst OnCreated(httpRequestMessage, httpResponseMessage); } - partial void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage); + public virtual void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage) { } /// /// Returns true if the response is 200 Ok @@ -1156,7 +1156,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } - partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); + public virtual void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode) { } } /// @@ -1176,7 +1176,7 @@ private void AfterTestDefaultImplementation(ITestApiResponse apiResponseLocalVar /// /// /// - partial void AfterTest(ref bool suppressDefaultLog, ITestApiResponse apiResponseLocalVar); + public virtual void AfterTest(ref bool suppressDefaultLog, ITestApiResponse apiResponseLocalVar) { } /// /// Logs exceptions that occur while retrieving the server response @@ -1199,7 +1199,7 @@ private void OnErrorTestDefaultImplementation(Exception exceptionLocalVar, strin /// /// /// - partial void OnErrorTest(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar); + public virtual void OnErrorTest(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar) { } /// /// Retrieve an existing Notificationtest's Elements @@ -1302,7 +1302,7 @@ public TestApiResponse(ILogger logger, System.Net.Http.HttpRequ OnCreated(httpRequestMessage, httpResponseMessage); } - partial void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage); + public virtual void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage) { } /// /// Returns true if the response is 200 Ok @@ -1350,7 +1350,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } - partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); + public virtual void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode) { } } } } 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 567ffe1fa4d2..e8ac6e6f9ff3 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 @@ -1308,7 +1308,7 @@ private void AfterFakeHealthGetDefaultImplementation(IFakeHealthGetApiResponse a /// /// /// - partial void AfterFakeHealthGet(ref bool suppressDefaultLog, IFakeHealthGetApiResponse apiResponseLocalVar); + public virtual void AfterFakeHealthGet(ref bool suppressDefaultLog, IFakeHealthGetApiResponse apiResponseLocalVar) { } /// /// Logs exceptions that occur while retrieving the server response @@ -1331,7 +1331,7 @@ private void OnErrorFakeHealthGetDefaultImplementation(Exception exceptionLocalV /// /// /// - partial void OnErrorFakeHealthGet(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar); + public virtual void OnErrorFakeHealthGet(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar) { } /// /// Health check endpoint @@ -1434,7 +1434,7 @@ public FakeHealthGetApiResponse(ILogger logger, System OnCreated(httpRequestMessage, httpResponseMessage); } - partial void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage); + public virtual void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage) { } /// /// Returns true if the response is 200 Ok @@ -1482,10 +1482,10 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } - partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); + public virtual void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode) { } } - partial void FormatFakeOuterBooleanSerialize(ref Option body); + public virtual void FormatFakeOuterBooleanSerialize(ref Option body) { } /// /// Processes the server response @@ -1506,7 +1506,7 @@ private void AfterFakeOuterBooleanSerializeDefaultImplementation(IFakeOuterBoole /// /// /// - partial void AfterFakeOuterBooleanSerialize(ref bool suppressDefaultLog, IFakeOuterBooleanSerializeApiResponse apiResponseLocalVar, Option body); + public virtual void AfterFakeOuterBooleanSerialize(ref bool suppressDefaultLog, IFakeOuterBooleanSerializeApiResponse apiResponseLocalVar, Option body) { } /// /// Logs exceptions that occur while retrieving the server response @@ -1531,7 +1531,7 @@ private void OnErrorFakeOuterBooleanSerializeDefaultImplementation(Exception exc /// /// /// - partial void OnErrorFakeOuterBooleanSerialize(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, Option body); + public virtual void OnErrorFakeOuterBooleanSerialize(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, Option body) { } /// /// Test serialization of outer boolean types @@ -1652,7 +1652,7 @@ public FakeOuterBooleanSerializeApiResponse(ILogger /// Returns true if the response is 200 Ok @@ -1700,10 +1700,10 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } - partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); + public virtual void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode) { } } - partial void FormatFakeOuterCompositeSerialize(Option outerComposite); + public virtual void FormatFakeOuterCompositeSerialize(Option outerComposite) { } /// /// Validates the request parameters @@ -1735,7 +1735,7 @@ private void AfterFakeOuterCompositeSerializeDefaultImplementation(IFakeOuterCom /// /// /// - partial void AfterFakeOuterCompositeSerialize(ref bool suppressDefaultLog, IFakeOuterCompositeSerializeApiResponse apiResponseLocalVar, Option outerComposite); + public virtual void AfterFakeOuterCompositeSerialize(ref bool suppressDefaultLog, IFakeOuterCompositeSerializeApiResponse apiResponseLocalVar, Option outerComposite) { } /// /// Logs exceptions that occur while retrieving the server response @@ -1760,7 +1760,7 @@ private void OnErrorFakeOuterCompositeSerializeDefaultImplementation(Exception e /// /// /// - partial void OnErrorFakeOuterCompositeSerialize(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, Option outerComposite); + public virtual void OnErrorFakeOuterCompositeSerialize(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, Option outerComposite) { } /// /// Test serialization of object with outer number type @@ -1883,7 +1883,7 @@ public FakeOuterCompositeSerializeApiResponse(ILogger /// Returns true if the response is 200 Ok @@ -1931,10 +1931,10 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } - partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); + public virtual void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode) { } } - partial void FormatFakeOuterNumberSerialize(ref Option body); + public virtual void FormatFakeOuterNumberSerialize(ref Option body) { } /// /// Processes the server response @@ -1955,7 +1955,7 @@ private void AfterFakeOuterNumberSerializeDefaultImplementation(IFakeOuterNumber /// /// /// - partial void AfterFakeOuterNumberSerialize(ref bool suppressDefaultLog, IFakeOuterNumberSerializeApiResponse apiResponseLocalVar, Option body); + public virtual void AfterFakeOuterNumberSerialize(ref bool suppressDefaultLog, IFakeOuterNumberSerializeApiResponse apiResponseLocalVar, Option body) { } /// /// Logs exceptions that occur while retrieving the server response @@ -1980,7 +1980,7 @@ private void OnErrorFakeOuterNumberSerializeDefaultImplementation(Exception exce /// /// /// - partial void OnErrorFakeOuterNumberSerialize(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, Option body); + public virtual void OnErrorFakeOuterNumberSerialize(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, Option body) { } /// /// Test serialization of outer number types @@ -2101,7 +2101,7 @@ public FakeOuterNumberSerializeApiResponse(ILogger /// Returns true if the response is 200 Ok @@ -2149,10 +2149,10 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } - partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); + public virtual void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode) { } } - partial void FormatFakeOuterStringSerialize(ref Guid requiredStringUuid, ref Option body); + public virtual void FormatFakeOuterStringSerialize(ref Guid requiredStringUuid, ref Option body) { } /// /// Validates the request parameters @@ -2186,7 +2186,7 @@ private void AfterFakeOuterStringSerializeDefaultImplementation(IFakeOuterString /// /// /// - partial void AfterFakeOuterStringSerialize(ref bool suppressDefaultLog, IFakeOuterStringSerializeApiResponse apiResponseLocalVar, Guid requiredStringUuid, Option body); + public virtual void AfterFakeOuterStringSerialize(ref bool suppressDefaultLog, IFakeOuterStringSerializeApiResponse apiResponseLocalVar, Guid requiredStringUuid, Option body) { } /// /// Logs exceptions that occur while retrieving the server response @@ -2213,7 +2213,7 @@ private void OnErrorFakeOuterStringSerializeDefaultImplementation(Exception exce /// /// /// - partial void OnErrorFakeOuterStringSerialize(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, Guid requiredStringUuid, Option body); + public virtual void OnErrorFakeOuterStringSerialize(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, Guid requiredStringUuid, Option body) { } /// /// Test serialization of outer string types @@ -2344,7 +2344,7 @@ public FakeOuterStringSerializeApiResponse(ILogger /// Returns true if the response is 200 Ok @@ -2392,7 +2392,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } - partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); + public virtual void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode) { } } /// @@ -2412,7 +2412,7 @@ private void AfterGetArrayOfEnumsDefaultImplementation(IGetArrayOfEnumsApiRespon /// /// /// - partial void AfterGetArrayOfEnums(ref bool suppressDefaultLog, IGetArrayOfEnumsApiResponse apiResponseLocalVar); + public virtual void AfterGetArrayOfEnums(ref bool suppressDefaultLog, IGetArrayOfEnumsApiResponse apiResponseLocalVar) { } /// /// Logs exceptions that occur while retrieving the server response @@ -2435,7 +2435,7 @@ private void OnErrorGetArrayOfEnumsDefaultImplementation(Exception exceptionLoca /// /// /// - partial void OnErrorGetArrayOfEnums(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar); + public virtual void OnErrorGetArrayOfEnums(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar) { } /// /// Array of Enums @@ -2538,7 +2538,7 @@ public GetArrayOfEnumsApiResponse(ILogger logger, Sy OnCreated(httpRequestMessage, httpResponseMessage); } - partial void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage); + public virtual void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage) { } /// /// Returns true if the response is 200 Ok @@ -2586,7 +2586,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } - partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); + public virtual void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode) { } } /// @@ -2606,7 +2606,7 @@ private void AfterGetMixedAnyOfDefaultImplementation(IGetMixedAnyOfApiResponse a /// /// /// - partial void AfterGetMixedAnyOf(ref bool suppressDefaultLog, IGetMixedAnyOfApiResponse apiResponseLocalVar); + public virtual void AfterGetMixedAnyOf(ref bool suppressDefaultLog, IGetMixedAnyOfApiResponse apiResponseLocalVar) { } /// /// Logs exceptions that occur while retrieving the server response @@ -2629,7 +2629,7 @@ private void OnErrorGetMixedAnyOfDefaultImplementation(Exception exceptionLocalV /// /// /// - partial void OnErrorGetMixedAnyOf(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar); + public virtual void OnErrorGetMixedAnyOf(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar) { } /// /// Test mixed type anyOf deserialization @@ -2732,7 +2732,7 @@ public GetMixedAnyOfApiResponse(ILogger logger, System OnCreated(httpRequestMessage, httpResponseMessage); } - partial void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage); + public virtual void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage) { } /// /// Returns true if the response is 200 Ok @@ -2780,7 +2780,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } - partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); + public virtual void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode) { } } /// @@ -2800,7 +2800,7 @@ private void AfterGetMixedOneOfDefaultImplementation(IGetMixedOneOfApiResponse a /// /// /// - partial void AfterGetMixedOneOf(ref bool suppressDefaultLog, IGetMixedOneOfApiResponse apiResponseLocalVar); + public virtual void AfterGetMixedOneOf(ref bool suppressDefaultLog, IGetMixedOneOfApiResponse apiResponseLocalVar) { } /// /// Logs exceptions that occur while retrieving the server response @@ -2823,7 +2823,7 @@ private void OnErrorGetMixedOneOfDefaultImplementation(Exception exceptionLocalV /// /// /// - partial void OnErrorGetMixedOneOf(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar); + public virtual void OnErrorGetMixedOneOf(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar) { } /// /// Test mixed type oneOf deserialization @@ -2926,7 +2926,7 @@ public GetMixedOneOfApiResponse(ILogger logger, System OnCreated(httpRequestMessage, httpResponseMessage); } - partial void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage); + public virtual void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage) { } /// /// Returns true if the response is 200 Ok @@ -2974,10 +2974,10 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } - partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); + public virtual void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode) { } } - partial void FormatTestAdditionalPropertiesReference(Dictionary requestBody); + public virtual void FormatTestAdditionalPropertiesReference(Dictionary requestBody) { } /// /// Validates the request parameters @@ -3009,7 +3009,7 @@ private void AfterTestAdditionalPropertiesReferenceDefaultImplementation(ITestAd /// /// /// - partial void AfterTestAdditionalPropertiesReference(ref bool suppressDefaultLog, ITestAdditionalPropertiesReferenceApiResponse apiResponseLocalVar, Dictionary requestBody); + public virtual void AfterTestAdditionalPropertiesReference(ref bool suppressDefaultLog, ITestAdditionalPropertiesReferenceApiResponse apiResponseLocalVar, Dictionary requestBody) { } /// /// Logs exceptions that occur while retrieving the server response @@ -3034,7 +3034,7 @@ private void OnErrorTestAdditionalPropertiesReferenceDefaultImplementation(Excep /// /// /// - partial void OnErrorTestAdditionalPropertiesReference(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, Dictionary requestBody); + public virtual void OnErrorTestAdditionalPropertiesReference(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, Dictionary requestBody) { } /// /// test referenced additionalProperties @@ -3147,7 +3147,7 @@ public TestAdditionalPropertiesReferenceApiResponse(ILogger /// Returns true if the response is 200 Ok @@ -3163,10 +3163,10 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } - partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); + public virtual void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode) { } } - partial void FormatTestBodyWithFileSchema(FileSchemaTestClass fileSchemaTestClass); + public virtual void FormatTestBodyWithFileSchema(FileSchemaTestClass fileSchemaTestClass) { } /// /// Validates the request parameters @@ -3198,7 +3198,7 @@ private void AfterTestBodyWithFileSchemaDefaultImplementation(ITestBodyWithFileS /// /// /// - partial void AfterTestBodyWithFileSchema(ref bool suppressDefaultLog, ITestBodyWithFileSchemaApiResponse apiResponseLocalVar, FileSchemaTestClass fileSchemaTestClass); + public virtual void AfterTestBodyWithFileSchema(ref bool suppressDefaultLog, ITestBodyWithFileSchemaApiResponse apiResponseLocalVar, FileSchemaTestClass fileSchemaTestClass) { } /// /// Logs exceptions that occur while retrieving the server response @@ -3223,7 +3223,7 @@ private void OnErrorTestBodyWithFileSchemaDefaultImplementation(Exception except /// /// /// - partial void OnErrorTestBodyWithFileSchema(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, FileSchemaTestClass fileSchemaTestClass); + public virtual 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`. @@ -3336,7 +3336,7 @@ public TestBodyWithFileSchemaApiResponse(ILogger /// Returns true if the response is 200 Ok @@ -3352,10 +3352,10 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } - partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); + public virtual void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode) { } } - partial void FormatTestBodyWithQueryParams(ref string query, User user); + public virtual void FormatTestBodyWithQueryParams(ref string query, User user) { } /// /// Validates the request parameters @@ -3393,7 +3393,7 @@ private void AfterTestBodyWithQueryParamsDefaultImplementation(ITestBodyWithQuer /// /// /// - partial void AfterTestBodyWithQueryParams(ref bool suppressDefaultLog, ITestBodyWithQueryParamsApiResponse apiResponseLocalVar, string query, User user); + public virtual void AfterTestBodyWithQueryParams(ref bool suppressDefaultLog, ITestBodyWithQueryParamsApiResponse apiResponseLocalVar, string query, User user) { } /// /// Logs exceptions that occur while retrieving the server response @@ -3420,7 +3420,7 @@ private void OnErrorTestBodyWithQueryParamsDefaultImplementation(Exception excep /// /// /// - partial void OnErrorTestBodyWithQueryParams(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, string query, User user); + public virtual void OnErrorTestBodyWithQueryParams(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, string query, User user) { } /// /// @@ -3541,7 +3541,7 @@ public TestBodyWithQueryParamsApiResponse(ILogger /// Returns true if the response is 200 Ok @@ -3557,10 +3557,10 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } - partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); + public virtual void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode) { } } - partial void FormatTestClientModel(ModelClient modelClient); + public virtual void FormatTestClientModel(ModelClient modelClient) { } /// /// Validates the request parameters @@ -3592,7 +3592,7 @@ private void AfterTestClientModelDefaultImplementation(ITestClientModelApiRespon /// /// /// - partial void AfterTestClientModel(ref bool suppressDefaultLog, ITestClientModelApiResponse apiResponseLocalVar, ModelClient modelClient); + public virtual void AfterTestClientModel(ref bool suppressDefaultLog, ITestClientModelApiResponse apiResponseLocalVar, ModelClient modelClient) { } /// /// Logs exceptions that occur while retrieving the server response @@ -3617,7 +3617,7 @@ private void OnErrorTestClientModelDefaultImplementation(Exception exceptionLoca /// /// /// - partial void OnErrorTestClientModel(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, ModelClient modelClient); + public virtual void OnErrorTestClientModel(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, ModelClient modelClient) { } /// /// To test \"client\" model To test \"client\" model @@ -3739,7 +3739,7 @@ public TestClientModelApiResponse(ILogger logger, Sy OnCreated(httpRequestMessage, httpResponseMessage); } - partial void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage); + public virtual void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage) { } /// /// Returns true if the response is 200 Ok @@ -3787,10 +3787,10 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } - partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); + public virtual void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode) { } } - partial void FormatTestEndpointParameters(ref decimal number, ref string patternWithoutDelimiter, ref byte[] varByte, ref double varDouble, ref Option binary, ref Option callback, ref Option date, ref Option dateTime, ref Option int32, ref Option int64, ref Option integer, ref Option password, ref Option varFloat, ref Option varString); + public virtual void FormatTestEndpointParameters(ref decimal number, ref string patternWithoutDelimiter, ref byte[] varByte, ref double varDouble, ref Option binary, ref Option callback, ref Option date, ref Option dateTime, ref Option int32, ref Option int64, ref Option integer, ref Option password, ref Option varFloat, ref Option varString) { } /// /// Validates the request parameters @@ -3868,7 +3868,7 @@ private void AfterTestEndpointParametersDefaultImplementation(ITestEndpointParam /// /// /// - partial void AfterTestEndpointParameters(ref bool suppressDefaultLog, ITestEndpointParametersApiResponse apiResponseLocalVar, 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); + public virtual void AfterTestEndpointParameters(ref bool suppressDefaultLog, ITestEndpointParametersApiResponse apiResponseLocalVar, 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) { } /// /// Logs exceptions that occur while retrieving the server response @@ -3919,7 +3919,7 @@ private void OnErrorTestEndpointParametersDefaultImplementation(Exception except /// /// /// - 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); + public virtual 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 假端點 偽のエンドポイント 가짜 엔드 포인트 @@ -4111,7 +4111,7 @@ public TestEndpointParametersApiResponse(ILogger /// Returns true if the response is 400 BadRequest @@ -4133,10 +4133,10 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } - partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); + public virtual void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode) { } } - partial void FormatTestEnumParameters(ref Option enumFormString, Option> enumFormStringArray, ref Option enumHeaderString, Option> enumHeaderStringArray, ref Option enumQueryDouble, ref Option enumQueryInteger, ref Option enumQueryString, Option> enumQueryStringArray); + public virtual void FormatTestEnumParameters(ref Option enumFormString, Option> enumFormStringArray, ref Option enumHeaderString, Option> enumHeaderStringArray, ref Option enumQueryDouble, ref Option enumQueryInteger, ref Option enumQueryString, Option> enumQueryStringArray) { } /// /// Validates the request parameters @@ -4190,7 +4190,7 @@ private void AfterTestEnumParametersDefaultImplementation(ITestEnumParametersApi /// /// /// - partial void AfterTestEnumParameters(ref bool suppressDefaultLog, ITestEnumParametersApiResponse apiResponseLocalVar, Option enumFormString, Option> enumFormStringArray, Option enumHeaderString, Option> enumHeaderStringArray, Option enumQueryDouble, Option enumQueryInteger, Option enumQueryString, Option> enumQueryStringArray); + public virtual void AfterTestEnumParameters(ref bool suppressDefaultLog, ITestEnumParametersApiResponse apiResponseLocalVar, Option enumFormString, Option> enumFormStringArray, Option enumHeaderString, Option> enumHeaderStringArray, Option enumQueryDouble, Option enumQueryInteger, Option enumQueryString, Option> enumQueryStringArray) { } /// /// Logs exceptions that occur while retrieving the server response @@ -4229,7 +4229,7 @@ private void OnErrorTestEnumParametersDefaultImplementation(Exception exceptionL /// /// /// - 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); + public virtual 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 @@ -4386,7 +4386,7 @@ public TestEnumParametersApiResponse(ILogger logg OnCreated(httpRequestMessage, httpResponseMessage); } - partial void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage); + public virtual void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage) { } /// /// Returns true if the response is 400 BadRequest @@ -4408,10 +4408,10 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } - partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); + public virtual void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode) { } } - partial void FormatTestGroupParameters(ref bool requiredBooleanGroup, ref long requiredInt64Group, ref int requiredStringGroup, ref Option booleanGroup, ref Option int64Group, ref Option stringGroup); + public virtual void FormatTestGroupParameters(ref bool requiredBooleanGroup, ref long requiredInt64Group, ref int requiredStringGroup, ref Option booleanGroup, ref Option int64Group, ref Option stringGroup) { } /// /// Processes the server response @@ -4442,7 +4442,7 @@ private void AfterTestGroupParametersDefaultImplementation(ITestGroupParametersA /// /// /// - partial void AfterTestGroupParameters(ref bool suppressDefaultLog, ITestGroupParametersApiResponse apiResponseLocalVar, bool requiredBooleanGroup, long requiredInt64Group, int requiredStringGroup, Option booleanGroup, Option int64Group, Option stringGroup); + public virtual void AfterTestGroupParameters(ref bool suppressDefaultLog, ITestGroupParametersApiResponse apiResponseLocalVar, bool requiredBooleanGroup, long requiredInt64Group, int requiredStringGroup, Option booleanGroup, Option int64Group, Option stringGroup) { } /// /// Logs exceptions that occur while retrieving the server response @@ -4477,7 +4477,7 @@ private void OnErrorTestGroupParametersDefaultImplementation(Exception exception /// /// /// - partial void OnErrorTestGroupParameters(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, bool requiredBooleanGroup, long requiredInt64Group, int requiredStringGroup, Option booleanGroup, Option int64Group, Option stringGroup); + public virtual 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) @@ -4614,7 +4614,7 @@ public TestGroupParametersApiResponse(ILogger lo OnCreated(httpRequestMessage, httpResponseMessage); } - partial void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage); + public virtual void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage) { } /// /// Returns true if the response is 400 BadRequest @@ -4630,10 +4630,10 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } - partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); + public virtual void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode) { } } - partial void FormatTestInlineAdditionalProperties(Dictionary requestBody); + public virtual void FormatTestInlineAdditionalProperties(Dictionary requestBody) { } /// /// Validates the request parameters @@ -4665,7 +4665,7 @@ private void AfterTestInlineAdditionalPropertiesDefaultImplementation(ITestInlin /// /// /// - partial void AfterTestInlineAdditionalProperties(ref bool suppressDefaultLog, ITestInlineAdditionalPropertiesApiResponse apiResponseLocalVar, Dictionary requestBody); + public virtual void AfterTestInlineAdditionalProperties(ref bool suppressDefaultLog, ITestInlineAdditionalPropertiesApiResponse apiResponseLocalVar, Dictionary requestBody) { } /// /// Logs exceptions that occur while retrieving the server response @@ -4690,7 +4690,7 @@ private void OnErrorTestInlineAdditionalPropertiesDefaultImplementation(Exceptio /// /// /// - partial void OnErrorTestInlineAdditionalProperties(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, Dictionary requestBody); + public virtual void OnErrorTestInlineAdditionalProperties(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, Dictionary requestBody) { } /// /// test inline additionalProperties @@ -4803,7 +4803,7 @@ public TestInlineAdditionalPropertiesApiResponse(ILogger /// Returns true if the response is 200 Ok @@ -4819,10 +4819,10 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } - partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); + public virtual void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode) { } } - partial void FormatTestInlineFreeformAdditionalProperties(TestInlineFreeformAdditionalPropertiesRequest testInlineFreeformAdditionalPropertiesRequest); + public virtual void FormatTestInlineFreeformAdditionalProperties(TestInlineFreeformAdditionalPropertiesRequest testInlineFreeformAdditionalPropertiesRequest) { } /// /// Validates the request parameters @@ -4854,7 +4854,7 @@ private void AfterTestInlineFreeformAdditionalPropertiesDefaultImplementation(IT /// /// /// - partial void AfterTestInlineFreeformAdditionalProperties(ref bool suppressDefaultLog, ITestInlineFreeformAdditionalPropertiesApiResponse apiResponseLocalVar, TestInlineFreeformAdditionalPropertiesRequest testInlineFreeformAdditionalPropertiesRequest); + public virtual void AfterTestInlineFreeformAdditionalProperties(ref bool suppressDefaultLog, ITestInlineFreeformAdditionalPropertiesApiResponse apiResponseLocalVar, TestInlineFreeformAdditionalPropertiesRequest testInlineFreeformAdditionalPropertiesRequest) { } /// /// Logs exceptions that occur while retrieving the server response @@ -4879,7 +4879,7 @@ private void OnErrorTestInlineFreeformAdditionalPropertiesDefaultImplementation( /// /// /// - partial void OnErrorTestInlineFreeformAdditionalProperties(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, TestInlineFreeformAdditionalPropertiesRequest testInlineFreeformAdditionalPropertiesRequest); + public virtual void OnErrorTestInlineFreeformAdditionalProperties(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, TestInlineFreeformAdditionalPropertiesRequest testInlineFreeformAdditionalPropertiesRequest) { } /// /// test inline free-form additionalProperties @@ -4992,7 +4992,7 @@ public TestInlineFreeformAdditionalPropertiesApiResponse(ILogger /// Returns true if the response is 200 Ok @@ -5008,10 +5008,10 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } - partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); + public virtual void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode) { } } - partial void FormatTestJsonFormData(ref string param, ref string param2); + public virtual void FormatTestJsonFormData(ref string param, ref string param2) { } /// /// Validates the request parameters @@ -5049,7 +5049,7 @@ private void AfterTestJsonFormDataDefaultImplementation(ITestJsonFormDataApiResp /// /// /// - partial void AfterTestJsonFormData(ref bool suppressDefaultLog, ITestJsonFormDataApiResponse apiResponseLocalVar, string param, string param2); + public virtual void AfterTestJsonFormData(ref bool suppressDefaultLog, ITestJsonFormDataApiResponse apiResponseLocalVar, string param, string param2) { } /// /// Logs exceptions that occur while retrieving the server response @@ -5076,7 +5076,7 @@ private void OnErrorTestJsonFormDataDefaultImplementation(Exception exceptionLoc /// /// /// - partial void OnErrorTestJsonFormData(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, string param, string param2); + public virtual void OnErrorTestJsonFormData(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, string param, string param2) { } /// /// test json serialization of form data @@ -5199,7 +5199,7 @@ public TestJsonFormDataApiResponse(ILogger logger, OnCreated(httpRequestMessage, httpResponseMessage); } - partial void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage); + public virtual void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage) { } /// /// Returns true if the response is 200 Ok @@ -5215,10 +5215,10 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } - partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); + public virtual void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode) { } } - partial void FormatTestQueryParameterCollectionFormat(List context, List http, List ioutil, List pipe, ref string requiredNotNullable, List url, ref Option notRequiredNotNullable, ref Option notRequiredNullable, ref string requiredNullable); + public virtual void FormatTestQueryParameterCollectionFormat(List context, List http, List ioutil, List pipe, ref string requiredNotNullable, List url, ref Option notRequiredNotNullable, ref Option notRequiredNullable, ref string requiredNullable) { } /// /// Validates the request parameters @@ -5290,7 +5290,7 @@ private void AfterTestQueryParameterCollectionFormatDefaultImplementation(ITestQ /// /// /// - partial void AfterTestQueryParameterCollectionFormat(ref bool suppressDefaultLog, ITestQueryParameterCollectionFormatApiResponse apiResponseLocalVar, List context, List http, List ioutil, List pipe, string requiredNotNullable, List url, Option notRequiredNotNullable, Option notRequiredNullable, string requiredNullable); + public virtual void AfterTestQueryParameterCollectionFormat(ref bool suppressDefaultLog, ITestQueryParameterCollectionFormatApiResponse apiResponseLocalVar, List context, List http, List ioutil, List pipe, string requiredNotNullable, List url, Option notRequiredNotNullable, Option notRequiredNullable, string requiredNullable) { } /// /// Logs exceptions that occur while retrieving the server response @@ -5331,7 +5331,7 @@ private void OnErrorTestQueryParameterCollectionFormatDefaultImplementation(Exce /// /// /// - 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); + public virtual 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 @@ -5465,7 +5465,7 @@ public TestQueryParameterCollectionFormatApiResponse(ILogger /// Returns true if the response is 200 Ok @@ -5481,10 +5481,10 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } - partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); + public virtual void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode) { } } - partial void FormatTestStringMapReference(Dictionary requestBody); + public virtual void FormatTestStringMapReference(Dictionary requestBody) { } /// /// Validates the request parameters @@ -5516,7 +5516,7 @@ private void AfterTestStringMapReferenceDefaultImplementation(ITestStringMapRefe /// /// /// - partial void AfterTestStringMapReference(ref bool suppressDefaultLog, ITestStringMapReferenceApiResponse apiResponseLocalVar, Dictionary requestBody); + public virtual void AfterTestStringMapReference(ref bool suppressDefaultLog, ITestStringMapReferenceApiResponse apiResponseLocalVar, Dictionary requestBody) { } /// /// Logs exceptions that occur while retrieving the server response @@ -5541,7 +5541,7 @@ private void OnErrorTestStringMapReferenceDefaultImplementation(Exception except /// /// /// - partial void OnErrorTestStringMapReference(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, Dictionary requestBody); + public virtual void OnErrorTestStringMapReference(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, Dictionary requestBody) { } /// /// test referenced string map @@ -5654,7 +5654,7 @@ public TestStringMapReferenceApiResponse(ILogger /// Returns true if the response is 200 Ok @@ -5670,7 +5670,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } - partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); + public virtual void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode) { } } } } 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 a12284afb01b..82701402673a 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 @@ -170,7 +170,7 @@ public FakeClassnameTags123Api(ILogger logger, ILoggerF OauthTokenProvider = oauthTokenProvider; } - partial void FormatTestClassname(ModelClient modelClient); + public virtual void FormatTestClassname(ModelClient modelClient) { } /// /// Validates the request parameters @@ -202,7 +202,7 @@ private void AfterTestClassnameDefaultImplementation(ITestClassnameApiResponse a /// /// /// - partial void AfterTestClassname(ref bool suppressDefaultLog, ITestClassnameApiResponse apiResponseLocalVar, ModelClient modelClient); + public virtual void AfterTestClassname(ref bool suppressDefaultLog, ITestClassnameApiResponse apiResponseLocalVar, ModelClient modelClient) { } /// /// Logs exceptions that occur while retrieving the server response @@ -227,7 +227,7 @@ private void OnErrorTestClassnameDefaultImplementation(Exception exceptionLocalV /// /// /// - partial void OnErrorTestClassname(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, ModelClient modelClient); + public virtual 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 @@ -362,7 +362,7 @@ public TestClassnameApiResponse(ILogger logger, System OnCreated(httpRequestMessage, httpResponseMessage); } - partial void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage); + public virtual void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage) { } /// /// Returns true if the response is 200 Ok @@ -410,7 +410,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } - partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); + public virtual void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode) { } } } } 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 3361c03e39bf..ca03a851fb1c 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 @@ -674,7 +674,7 @@ public PetApi(ILogger logger, ILoggerFactory loggerFactory, HttpClient h OauthTokenProvider = oauthTokenProvider; } - partial void FormatAddPet(Pet pet); + public virtual void FormatAddPet(Pet pet) { } /// /// Validates the request parameters @@ -706,7 +706,7 @@ private void AfterAddPetDefaultImplementation(IAddPetApiResponse apiResponseLoca /// /// /// - partial void AfterAddPet(ref bool suppressDefaultLog, IAddPetApiResponse apiResponseLocalVar, Pet pet); + public virtual void AfterAddPet(ref bool suppressDefaultLog, IAddPetApiResponse apiResponseLocalVar, Pet pet) { } /// /// Logs exceptions that occur while retrieving the server response @@ -731,7 +731,7 @@ private void OnErrorAddPetDefaultImplementation(Exception exceptionLocalVar, str /// /// /// - partial void OnErrorAddPet(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, Pet pet); + public virtual void OnErrorAddPet(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, Pet pet) { } /// /// Add a new pet to the store @@ -866,7 +866,7 @@ public AddPetApiResponse(ILogger logger, System.Net.Http.Http OnCreated(httpRequestMessage, httpResponseMessage); } - partial void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage); + public virtual void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage) { } /// /// Returns true if the response is 405 MethodNotAllowed @@ -882,10 +882,10 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } - partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); + public virtual void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode) { } } - partial void FormatDeletePet(ref long petId, ref Option apiKey); + public virtual void FormatDeletePet(ref long petId, ref Option apiKey) { } /// /// Validates the request parameters @@ -919,7 +919,7 @@ private void AfterDeletePetDefaultImplementation(IDeletePetApiResponse apiRespon /// /// /// - partial void AfterDeletePet(ref bool suppressDefaultLog, IDeletePetApiResponse apiResponseLocalVar, long petId, Option apiKey); + public virtual void AfterDeletePet(ref bool suppressDefaultLog, IDeletePetApiResponse apiResponseLocalVar, long petId, Option apiKey) { } /// /// Logs exceptions that occur while retrieving the server response @@ -946,7 +946,7 @@ private void OnErrorDeletePetDefaultImplementation(Exception exceptionLocalVar, /// /// /// - partial void OnErrorDeletePet(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, long petId, Option apiKey); + public virtual void OnErrorDeletePet(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, long petId, Option apiKey) { } /// /// Deletes a pet @@ -1063,7 +1063,7 @@ public DeletePetApiResponse(ILogger logger, System.Net.Htt OnCreated(httpRequestMessage, httpResponseMessage); } - partial void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage); + public virtual void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage) { } /// /// Returns true if the response is 400 BadRequest @@ -1079,10 +1079,10 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } - partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); + public virtual void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode) { } } - partial void FormatFindPetsByStatus(List status); + public virtual void FormatFindPetsByStatus(List status) { } /// /// Validates the request parameters @@ -1114,7 +1114,7 @@ private void AfterFindPetsByStatusDefaultImplementation(IFindPetsByStatusApiResp /// /// /// - partial void AfterFindPetsByStatus(ref bool suppressDefaultLog, IFindPetsByStatusApiResponse apiResponseLocalVar, List status); + public virtual void AfterFindPetsByStatus(ref bool suppressDefaultLog, IFindPetsByStatusApiResponse apiResponseLocalVar, List status) { } /// /// Logs exceptions that occur while retrieving the server response @@ -1139,7 +1139,7 @@ private void OnErrorFindPetsByStatusDefaultImplementation(Exception exceptionLoc /// /// /// - partial void OnErrorFindPetsByStatus(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, List status); + public virtual 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 @@ -1276,7 +1276,7 @@ public FindPetsByStatusApiResponse(ILogger logger, OnCreated(httpRequestMessage, httpResponseMessage); } - partial void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage); + public virtual void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage) { } /// /// Returns true if the response is 200 Ok @@ -1356,10 +1356,10 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } - partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); + public virtual void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode) { } } - partial void FormatFindPetsByTags(List tags); + public virtual void FormatFindPetsByTags(List tags) { } /// /// Validates the request parameters @@ -1391,7 +1391,7 @@ private void AfterFindPetsByTagsDefaultImplementation(IFindPetsByTagsApiResponse /// /// /// - partial void AfterFindPetsByTags(ref bool suppressDefaultLog, IFindPetsByTagsApiResponse apiResponseLocalVar, List tags); + public virtual void AfterFindPetsByTags(ref bool suppressDefaultLog, IFindPetsByTagsApiResponse apiResponseLocalVar, List tags) { } /// /// Logs exceptions that occur while retrieving the server response @@ -1416,7 +1416,7 @@ private void OnErrorFindPetsByTagsDefaultImplementation(Exception exceptionLocal /// /// /// - partial void OnErrorFindPetsByTags(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, List tags); + public virtual 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. @@ -1553,7 +1553,7 @@ public FindPetsByTagsApiResponse(ILogger logger, Syst OnCreated(httpRequestMessage, httpResponseMessage); } - partial void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage); + public virtual void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage) { } /// /// Returns true if the response is 200 Ok @@ -1607,10 +1607,10 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } - partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); + public virtual void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode) { } } - partial void FormatGetPetById(ref long petId); + public virtual void FormatGetPetById(ref long petId) { } /// /// Processes the server response @@ -1631,7 +1631,7 @@ private void AfterGetPetByIdDefaultImplementation(IGetPetByIdApiResponse apiResp /// /// /// - partial void AfterGetPetById(ref bool suppressDefaultLog, IGetPetByIdApiResponse apiResponseLocalVar, long petId); + public virtual void AfterGetPetById(ref bool suppressDefaultLog, IGetPetByIdApiResponse apiResponseLocalVar, long petId) { } /// /// Logs exceptions that occur while retrieving the server response @@ -1656,7 +1656,7 @@ private void OnErrorGetPetByIdDefaultImplementation(Exception exceptionLocalVar, /// /// /// - partial void OnErrorGetPetById(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, long petId); + public virtual void OnErrorGetPetById(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, long petId) { } /// /// Find pet by ID Returns a single pet @@ -1782,7 +1782,7 @@ public GetPetByIdApiResponse(ILogger logger, System.Net.H OnCreated(httpRequestMessage, httpResponseMessage); } - partial void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage); + public virtual void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage) { } /// /// Returns true if the response is 200 Ok @@ -1842,10 +1842,10 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } - partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); + public virtual void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode) { } } - partial void FormatUpdatePet(Pet pet); + public virtual void FormatUpdatePet(Pet pet) { } /// /// Validates the request parameters @@ -1877,7 +1877,7 @@ private void AfterUpdatePetDefaultImplementation(IUpdatePetApiResponse apiRespon /// /// /// - partial void AfterUpdatePet(ref bool suppressDefaultLog, IUpdatePetApiResponse apiResponseLocalVar, Pet pet); + public virtual void AfterUpdatePet(ref bool suppressDefaultLog, IUpdatePetApiResponse apiResponseLocalVar, Pet pet) { } /// /// Logs exceptions that occur while retrieving the server response @@ -1902,7 +1902,7 @@ private void OnErrorUpdatePetDefaultImplementation(Exception exceptionLocalVar, /// /// /// - partial void OnErrorUpdatePet(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, Pet pet); + public virtual void OnErrorUpdatePet(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, Pet pet) { } /// /// Update an existing pet @@ -2037,7 +2037,7 @@ public UpdatePetApiResponse(ILogger logger, System.Net.Htt OnCreated(httpRequestMessage, httpResponseMessage); } - partial void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage); + public virtual void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage) { } /// /// Returns true if the response is 400 BadRequest @@ -2065,10 +2065,10 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } - partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); + public virtual void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode) { } } - partial void FormatUpdatePetWithForm(ref long petId, ref Option name, ref Option status); + public virtual void FormatUpdatePetWithForm(ref long petId, ref Option name, ref Option status) { } /// /// Validates the request parameters @@ -2108,7 +2108,7 @@ private void AfterUpdatePetWithFormDefaultImplementation(IUpdatePetWithFormApiRe /// /// /// - partial void AfterUpdatePetWithForm(ref bool suppressDefaultLog, IUpdatePetWithFormApiResponse apiResponseLocalVar, long petId, Option name, Option status); + public virtual void AfterUpdatePetWithForm(ref bool suppressDefaultLog, IUpdatePetWithFormApiResponse apiResponseLocalVar, long petId, Option name, Option status) { } /// /// Logs exceptions that occur while retrieving the server response @@ -2137,7 +2137,7 @@ private void OnErrorUpdatePetWithFormDefaultImplementation(Exception exceptionLo /// /// /// - partial void OnErrorUpdatePetWithForm(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, long petId, Option name, Option status); + public virtual 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 @@ -2274,7 +2274,7 @@ public UpdatePetWithFormApiResponse(ILogger logger OnCreated(httpRequestMessage, httpResponseMessage); } - partial void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage); + public virtual void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage) { } /// /// Returns true if the response is 405 MethodNotAllowed @@ -2290,10 +2290,10 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } - partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); + public virtual void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode) { } } - partial void FormatUploadFile(ref long petId, ref Option additionalMetadata, ref Option file); + public virtual void FormatUploadFile(ref long petId, ref Option additionalMetadata, ref Option file) { } /// /// Validates the request parameters @@ -2333,7 +2333,7 @@ private void AfterUploadFileDefaultImplementation(IUploadFileApiResponse apiResp /// /// /// - partial void AfterUploadFile(ref bool suppressDefaultLog, IUploadFileApiResponse apiResponseLocalVar, long petId, Option additionalMetadata, Option file); + public virtual void AfterUploadFile(ref bool suppressDefaultLog, IUploadFileApiResponse apiResponseLocalVar, long petId, Option additionalMetadata, Option file) { } /// /// Logs exceptions that occur while retrieving the server response @@ -2362,7 +2362,7 @@ private void OnErrorUploadFileDefaultImplementation(Exception exceptionLocalVar, /// /// /// - partial void OnErrorUploadFile(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, long petId, Option additionalMetadata, Option file); + public virtual void OnErrorUploadFile(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, long petId, Option additionalMetadata, Option file) { } /// /// uploads an image @@ -2508,7 +2508,7 @@ public UploadFileApiResponse(ILogger logger, System.Net.H OnCreated(httpRequestMessage, httpResponseMessage); } - partial void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage); + public virtual void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage) { } /// /// Returns true if the response is 200 Ok @@ -2556,10 +2556,10 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } - partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); + public virtual void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode) { } } - partial void FormatUploadFileWithRequiredFile(ref long petId, ref System.IO.Stream requiredFile, ref Option additionalMetadata); + public virtual void FormatUploadFileWithRequiredFile(ref long petId, ref System.IO.Stream requiredFile, ref Option additionalMetadata) { } /// /// Validates the request parameters @@ -2599,7 +2599,7 @@ private void AfterUploadFileWithRequiredFileDefaultImplementation(IUploadFileWit /// /// /// - partial void AfterUploadFileWithRequiredFile(ref bool suppressDefaultLog, IUploadFileWithRequiredFileApiResponse apiResponseLocalVar, long petId, System.IO.Stream requiredFile, Option additionalMetadata); + public virtual void AfterUploadFileWithRequiredFile(ref bool suppressDefaultLog, IUploadFileWithRequiredFileApiResponse apiResponseLocalVar, long petId, System.IO.Stream requiredFile, Option additionalMetadata) { } /// /// Logs exceptions that occur while retrieving the server response @@ -2628,7 +2628,7 @@ private void OnErrorUploadFileWithRequiredFileDefaultImplementation(Exception ex /// /// /// - partial void OnErrorUploadFileWithRequiredFile(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, long petId, System.IO.Stream requiredFile, Option additionalMetadata); + public virtual void OnErrorUploadFileWithRequiredFile(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, long petId, System.IO.Stream requiredFile, Option additionalMetadata) { } /// /// uploads an image (required) @@ -2774,7 +2774,7 @@ public UploadFileWithRequiredFileApiResponse(ILogger /// Returns true if the response is 200 Ok @@ -2822,7 +2822,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } - partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); + public virtual void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode) { } } } } 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 b3cd5adcbcca..784116525742 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 @@ -357,7 +357,7 @@ public StoreApi(ILogger logger, ILoggerFactory loggerFactory, HttpClie OauthTokenProvider = oauthTokenProvider; } - partial void FormatDeleteOrder(ref string orderId); + public virtual void FormatDeleteOrder(ref string orderId) { } /// /// Validates the request parameters @@ -389,7 +389,7 @@ private void AfterDeleteOrderDefaultImplementation(IDeleteOrderApiResponse apiRe /// /// /// - partial void AfterDeleteOrder(ref bool suppressDefaultLog, IDeleteOrderApiResponse apiResponseLocalVar, string orderId); + public virtual void AfterDeleteOrder(ref bool suppressDefaultLog, IDeleteOrderApiResponse apiResponseLocalVar, string orderId) { } /// /// Logs exceptions that occur while retrieving the server response @@ -414,7 +414,7 @@ private void OnErrorDeleteOrderDefaultImplementation(Exception exceptionLocalVar /// /// /// - partial void OnErrorDeleteOrder(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, string orderId); + public virtual 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 @@ -515,7 +515,7 @@ public DeleteOrderApiResponse(ILogger logger, System.Net OnCreated(httpRequestMessage, httpResponseMessage); } - partial void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage); + public virtual void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage) { } /// /// Returns true if the response is 400 BadRequest @@ -537,7 +537,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } - partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); + public virtual void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode) { } } /// @@ -557,7 +557,7 @@ private void AfterGetInventoryDefaultImplementation(IGetInventoryApiResponse api /// /// /// - partial void AfterGetInventory(ref bool suppressDefaultLog, IGetInventoryApiResponse apiResponseLocalVar); + public virtual void AfterGetInventory(ref bool suppressDefaultLog, IGetInventoryApiResponse apiResponseLocalVar) { } /// /// Logs exceptions that occur while retrieving the server response @@ -580,7 +580,7 @@ private void OnErrorGetInventoryDefaultImplementation(Exception exceptionLocalVa /// /// /// - partial void OnErrorGetInventory(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar); + public virtual void OnErrorGetInventory(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar) { } /// /// Returns pet inventories by status Returns a map of status codes to quantities @@ -692,7 +692,7 @@ public GetInventoryApiResponse(ILogger logger, System.N OnCreated(httpRequestMessage, httpResponseMessage); } - partial void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage); + public virtual void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage) { } /// /// Returns true if the response is 200 Ok @@ -740,10 +740,10 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } - partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); + public virtual void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode) { } } - partial void FormatGetOrderById(ref long orderId); + public virtual void FormatGetOrderById(ref long orderId) { } /// /// Processes the server response @@ -764,7 +764,7 @@ private void AfterGetOrderByIdDefaultImplementation(IGetOrderByIdApiResponse api /// /// /// - partial void AfterGetOrderById(ref bool suppressDefaultLog, IGetOrderByIdApiResponse apiResponseLocalVar, long orderId); + public virtual void AfterGetOrderById(ref bool suppressDefaultLog, IGetOrderByIdApiResponse apiResponseLocalVar, long orderId) { } /// /// Logs exceptions that occur while retrieving the server response @@ -789,7 +789,7 @@ private void OnErrorGetOrderByIdDefaultImplementation(Exception exceptionLocalVa /// /// /// - partial void OnErrorGetOrderById(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, long orderId); + public virtual 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 @@ -898,7 +898,7 @@ public GetOrderByIdApiResponse(ILogger logger, System.N OnCreated(httpRequestMessage, httpResponseMessage); } - partial void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage); + public virtual void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage) { } /// /// Returns true if the response is 200 Ok @@ -958,10 +958,10 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } - partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); + public virtual void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode) { } } - partial void FormatPlaceOrder(Order order); + public virtual void FormatPlaceOrder(Order order) { } /// /// Validates the request parameters @@ -993,7 +993,7 @@ private void AfterPlaceOrderDefaultImplementation(IPlaceOrderApiResponse apiResp /// /// /// - partial void AfterPlaceOrder(ref bool suppressDefaultLog, IPlaceOrderApiResponse apiResponseLocalVar, Order order); + public virtual void AfterPlaceOrder(ref bool suppressDefaultLog, IPlaceOrderApiResponse apiResponseLocalVar, Order order) { } /// /// Logs exceptions that occur while retrieving the server response @@ -1018,7 +1018,7 @@ private void OnErrorPlaceOrderDefaultImplementation(Exception exceptionLocalVar, /// /// /// - partial void OnErrorPlaceOrder(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, Order order); + public virtual void OnErrorPlaceOrder(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, Order order) { } /// /// Place an order for a pet @@ -1141,7 +1141,7 @@ public PlaceOrderApiResponse(ILogger logger, System.Net.H OnCreated(httpRequestMessage, httpResponseMessage); } - partial void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage); + public virtual void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage) { } /// /// Returns true if the response is 200 Ok @@ -1195,7 +1195,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } - partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); + public virtual void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode) { } } } } 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 788e681d73c8..8bbc51664cf0 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 @@ -607,7 +607,7 @@ public UserApi(ILogger logger, ILoggerFactory loggerFactory, HttpClient CookieContainer = cookieContainer; } - partial void FormatCreateUser(User user); + public virtual void FormatCreateUser(User user) { } /// /// Validates the request parameters @@ -639,7 +639,7 @@ private void AfterCreateUserDefaultImplementation(ICreateUserApiResponse apiResp /// /// /// - partial void AfterCreateUser(ref bool suppressDefaultLog, ICreateUserApiResponse apiResponseLocalVar, User user); + public virtual void AfterCreateUser(ref bool suppressDefaultLog, ICreateUserApiResponse apiResponseLocalVar, User user) { } /// /// Logs exceptions that occur while retrieving the server response @@ -664,7 +664,7 @@ private void OnErrorCreateUserDefaultImplementation(Exception exceptionLocalVar, /// /// /// - partial void OnErrorCreateUser(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, User user); + public virtual 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. @@ -777,7 +777,7 @@ public CreateUserApiResponse(ILogger logger, System.Net.H OnCreated(httpRequestMessage, httpResponseMessage); } - partial void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage); + public virtual void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage) { } /// /// Returns true if the response is the default response type @@ -793,10 +793,10 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } - partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); + public virtual void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode) { } } - partial void FormatCreateUsersWithArrayInput(List user); + public virtual void FormatCreateUsersWithArrayInput(List user) { } /// /// Validates the request parameters @@ -828,7 +828,7 @@ private void AfterCreateUsersWithArrayInputDefaultImplementation(ICreateUsersWit /// /// /// - partial void AfterCreateUsersWithArrayInput(ref bool suppressDefaultLog, ICreateUsersWithArrayInputApiResponse apiResponseLocalVar, List user); + public virtual void AfterCreateUsersWithArrayInput(ref bool suppressDefaultLog, ICreateUsersWithArrayInputApiResponse apiResponseLocalVar, List user) { } /// /// Logs exceptions that occur while retrieving the server response @@ -853,7 +853,7 @@ private void OnErrorCreateUsersWithArrayInputDefaultImplementation(Exception exc /// /// /// - partial void OnErrorCreateUsersWithArrayInput(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, List user); + public virtual void OnErrorCreateUsersWithArrayInput(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, List user) { } /// /// Creates list of users with given input array @@ -966,7 +966,7 @@ public CreateUsersWithArrayInputApiResponse(ILogger /// Returns true if the response is the default response type @@ -982,10 +982,10 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } - partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); + public virtual void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode) { } } - partial void FormatCreateUsersWithListInput(List user); + public virtual void FormatCreateUsersWithListInput(List user) { } /// /// Validates the request parameters @@ -1017,7 +1017,7 @@ private void AfterCreateUsersWithListInputDefaultImplementation(ICreateUsersWith /// /// /// - partial void AfterCreateUsersWithListInput(ref bool suppressDefaultLog, ICreateUsersWithListInputApiResponse apiResponseLocalVar, List user); + public virtual void AfterCreateUsersWithListInput(ref bool suppressDefaultLog, ICreateUsersWithListInputApiResponse apiResponseLocalVar, List user) { } /// /// Logs exceptions that occur while retrieving the server response @@ -1042,7 +1042,7 @@ private void OnErrorCreateUsersWithListInputDefaultImplementation(Exception exce /// /// /// - partial void OnErrorCreateUsersWithListInput(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, List user); + public virtual void OnErrorCreateUsersWithListInput(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, List user) { } /// /// Creates list of users with given input array @@ -1155,7 +1155,7 @@ public CreateUsersWithListInputApiResponse(ILogger /// Returns true if the response is the default response type @@ -1171,10 +1171,10 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } - partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); + public virtual void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode) { } } - partial void FormatDeleteUser(ref string username); + public virtual void FormatDeleteUser(ref string username) { } /// /// Validates the request parameters @@ -1206,7 +1206,7 @@ private void AfterDeleteUserDefaultImplementation(IDeleteUserApiResponse apiResp /// /// /// - partial void AfterDeleteUser(ref bool suppressDefaultLog, IDeleteUserApiResponse apiResponseLocalVar, string username); + public virtual void AfterDeleteUser(ref bool suppressDefaultLog, IDeleteUserApiResponse apiResponseLocalVar, string username) { } /// /// Logs exceptions that occur while retrieving the server response @@ -1231,7 +1231,7 @@ private void OnErrorDeleteUserDefaultImplementation(Exception exceptionLocalVar, /// /// /// - partial void OnErrorDeleteUser(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, string username); + public virtual 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. @@ -1332,7 +1332,7 @@ public DeleteUserApiResponse(ILogger logger, System.Net.H OnCreated(httpRequestMessage, httpResponseMessage); } - partial void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage); + public virtual void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage) { } /// /// Returns true if the response is 400 BadRequest @@ -1354,10 +1354,10 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } - partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); + public virtual void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode) { } } - partial void FormatGetUserByName(ref string username); + public virtual void FormatGetUserByName(ref string username) { } /// /// Validates the request parameters @@ -1389,7 +1389,7 @@ private void AfterGetUserByNameDefaultImplementation(IGetUserByNameApiResponse a /// /// /// - partial void AfterGetUserByName(ref bool suppressDefaultLog, IGetUserByNameApiResponse apiResponseLocalVar, string username); + public virtual void AfterGetUserByName(ref bool suppressDefaultLog, IGetUserByNameApiResponse apiResponseLocalVar, string username) { } /// /// Logs exceptions that occur while retrieving the server response @@ -1414,7 +1414,7 @@ private void OnErrorGetUserByNameDefaultImplementation(Exception exceptionLocalV /// /// /// - partial void OnErrorGetUserByName(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, string username); + public virtual void OnErrorGetUserByName(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, string username) { } /// /// Get user by user name @@ -1525,7 +1525,7 @@ public GetUserByNameApiResponse(ILogger logger, System OnCreated(httpRequestMessage, httpResponseMessage); } - partial void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage); + public virtual void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage) { } /// /// Returns true if the response is 200 Ok @@ -1629,10 +1629,10 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } - partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); + public virtual void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode) { } } - partial void FormatLoginUser(ref string password, ref string username); + public virtual void FormatLoginUser(ref string password, ref string username) { } /// /// Validates the request parameters @@ -1670,7 +1670,7 @@ private void AfterLoginUserDefaultImplementation(ILoginUserApiResponse apiRespon /// /// /// - partial void AfterLoginUser(ref bool suppressDefaultLog, ILoginUserApiResponse apiResponseLocalVar, string password, string username); + public virtual void AfterLoginUser(ref bool suppressDefaultLog, ILoginUserApiResponse apiResponseLocalVar, string password, string username) { } /// /// Logs exceptions that occur while retrieving the server response @@ -1697,7 +1697,7 @@ private void OnErrorLoginUserDefaultImplementation(Exception exceptionLocalVar, /// /// /// - partial void OnErrorLoginUser(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, string password, string username); + public virtual void OnErrorLoginUser(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, string password, string username) { } /// /// Logs user into the system @@ -1843,7 +1843,7 @@ public LoginUserApiResponse(ILogger logger, System.Net.Htt OnCreated(httpRequestMessage, httpResponseMessage); } - partial void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage); + public virtual void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage) { } /// /// Returns true if the response is 200 Ok @@ -1897,7 +1897,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } - partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); + public virtual void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode) { } } /// @@ -1917,7 +1917,7 @@ private void AfterLogoutUserDefaultImplementation(ILogoutUserApiResponse apiResp /// /// /// - partial void AfterLogoutUser(ref bool suppressDefaultLog, ILogoutUserApiResponse apiResponseLocalVar); + public virtual void AfterLogoutUser(ref bool suppressDefaultLog, ILogoutUserApiResponse apiResponseLocalVar) { } /// /// Logs exceptions that occur while retrieving the server response @@ -1940,7 +1940,7 @@ private void OnErrorLogoutUserDefaultImplementation(Exception exceptionLocalVar, /// /// /// - partial void OnErrorLogoutUser(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar); + public virtual void OnErrorLogoutUser(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar) { } /// /// Logs out current logged in user session @@ -2034,7 +2034,7 @@ public LogoutUserApiResponse(ILogger logger, System.Net.H OnCreated(httpRequestMessage, httpResponseMessage); } - partial void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage); + public virtual void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage) { } /// /// Returns true if the response is the default response type @@ -2050,10 +2050,10 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } - partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); + public virtual void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode) { } } - partial void FormatUpdateUser(User user, ref string username); + public virtual void FormatUpdateUser(User user, ref string username) { } /// /// Validates the request parameters @@ -2091,7 +2091,7 @@ private void AfterUpdateUserDefaultImplementation(IUpdateUserApiResponse apiResp /// /// /// - partial void AfterUpdateUser(ref bool suppressDefaultLog, IUpdateUserApiResponse apiResponseLocalVar, User user, string username); + public virtual void AfterUpdateUser(ref bool suppressDefaultLog, IUpdateUserApiResponse apiResponseLocalVar, User user, string username) { } /// /// Logs exceptions that occur while retrieving the server response @@ -2118,7 +2118,7 @@ private void OnErrorUpdateUserDefaultImplementation(Exception exceptionLocalVar, /// /// /// - partial void OnErrorUpdateUser(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, User user, string username); + public virtual 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. @@ -2234,7 +2234,7 @@ public UpdateUserApiResponse(ILogger logger, System.Net.H OnCreated(httpRequestMessage, httpResponseMessage); } - partial void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage); + public virtual void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage) { } /// /// Returns true if the response is 400 BadRequest @@ -2256,7 +2256,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } - partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); + public virtual void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode) { } } } } diff --git a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Client/ApiResponse`1.cs b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Client/ApiResponse`1.cs index 794b3601c853..969c6405e1d3 100644 --- a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Client/ApiResponse`1.cs +++ b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Client/ApiResponse`1.cs @@ -145,7 +145,7 @@ public ApiResponse(global::System.Net.Http.HttpRequestMessage httpRequestMessage OnCreated(httpRequestMessage, httpResponseMessage); } - partial void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage); + public virtual void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage) { } } /// diff --git a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/Activity.cs b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/Activity.cs index f9d2680b0ad5..a3e5736b07e4 100644 --- a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/Activity.cs +++ b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/Activity.cs @@ -40,7 +40,7 @@ public Activity(Option /// Used to track the state of ActivityOutputs diff --git a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/ActivityOutputElementRepresentation.cs b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/ActivityOutputElementRepresentation.cs index f5bcaf712030..ac3775b3da13 100644 --- a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/ActivityOutputElementRepresentation.cs +++ b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/ActivityOutputElementRepresentation.cs @@ -42,7 +42,7 @@ public ActivityOutputElementRepresentation(Option prop1 = default, Optio OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Used to track the state of Prop1 diff --git a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/AdditionalPropertiesClass.cs b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/AdditionalPropertiesClass.cs index 8d4153d53022..4f04553d468d 100644 --- a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/AdditionalPropertiesClass.cs +++ b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/AdditionalPropertiesClass.cs @@ -54,7 +54,7 @@ public AdditionalPropertiesClass(Option anytype1 = default, Option /// Used to track the state of Anytype1 diff --git a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/Animal.cs b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/Animal.cs index d0b07da62cc8..e9cde08adbdf 100644 --- a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/Animal.cs +++ b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/Animal.cs @@ -40,7 +40,7 @@ public Animal(Option color = default) OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// The discriminator diff --git a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/ApiResponse.cs b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/ApiResponse.cs index 3b185247e442..599662786106 100644 --- a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/ApiResponse.cs +++ b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/ApiResponse.cs @@ -44,7 +44,7 @@ public ApiResponse(Option code = default, Option message = default OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Used to track the state of Code diff --git a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/Apple.cs b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/Apple.cs index 26fbe0516849..fae239859475 100644 --- a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/Apple.cs +++ b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/Apple.cs @@ -44,7 +44,7 @@ public Apple(Option colorCode = default, Option cultivar = defau OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Used to track the state of ColorCode diff --git a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/AppleReq.cs b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/AppleReq.cs index 942640761b26..ae520d817b21 100644 --- a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/AppleReq.cs +++ b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/AppleReq.cs @@ -42,7 +42,7 @@ public AppleReq(string cultivar, Option mealy = default) OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Gets or Sets Cultivar diff --git a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/ArrayOfArrayOfNumberOnly.cs b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/ArrayOfArrayOfNumberOnly.cs index debcff217b93..d8dea839aea5 100644 --- a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/ArrayOfArrayOfNumberOnly.cs +++ b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/ArrayOfArrayOfNumberOnly.cs @@ -40,7 +40,7 @@ public ArrayOfArrayOfNumberOnly(Option>> arrayArrayNumber = d OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Used to track the state of ArrayArrayNumber diff --git a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/ArrayOfNumberOnly.cs b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/ArrayOfNumberOnly.cs index ded293438a45..b18a2efc75de 100644 --- a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/ArrayOfNumberOnly.cs +++ b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/ArrayOfNumberOnly.cs @@ -40,7 +40,7 @@ public ArrayOfNumberOnly(Option> arrayNumber = default) OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Used to track the state of ArrayNumber diff --git a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/ArrayTest.cs b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/ArrayTest.cs index ee7b94f08bd3..8a99a3ce0603 100644 --- a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/ArrayTest.cs +++ b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/ArrayTest.cs @@ -44,7 +44,7 @@ public ArrayTest(Option>> arrayArrayOfInteger = default, Option< OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Used to track the state of ArrayArrayOfInteger diff --git a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/Banana.cs b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/Banana.cs index 476a1c25352b..921e4d79eef3 100644 --- a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/Banana.cs +++ b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/Banana.cs @@ -40,7 +40,7 @@ public Banana(Option lengthCm = default) OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Used to track the state of LengthCm diff --git a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/BananaReq.cs b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/BananaReq.cs index a3a0a15428b4..eda50da1c0c3 100644 --- a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/BananaReq.cs +++ b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/BananaReq.cs @@ -42,7 +42,7 @@ public BananaReq(decimal lengthCm, Option sweet = default) OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Gets or Sets LengthCm diff --git a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/BasquePig.cs b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/BasquePig.cs index 9938d89e008d..3bb04d8e04e1 100644 --- a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/BasquePig.cs +++ b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/BasquePig.cs @@ -40,7 +40,7 @@ public BasquePig(string className) OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Gets or Sets ClassName diff --git a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/Capitalization.cs b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/Capitalization.cs index 8308df3a0912..19305bde498d 100644 --- a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/Capitalization.cs +++ b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/Capitalization.cs @@ -50,7 +50,7 @@ public Capitalization(Option aTTNAME = default, Option capitalCa OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Used to track the state of ATT_NAME diff --git a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/Cat.cs b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/Cat.cs index 6a1dfe1d90b6..a139c5a508fa 100644 --- a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/Cat.cs +++ b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/Cat.cs @@ -41,7 +41,7 @@ public Cat(Option color = default, Option declawed = default) : b OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// The discriminator diff --git a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/Category.cs b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/Category.cs index 9bd387646078..30e8753b442c 100644 --- a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/Category.cs +++ b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/Category.cs @@ -42,7 +42,7 @@ public Category(Option id = default, string name = @"default-name") OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Used to track the state of Id diff --git a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/ChildCat.cs b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/ChildCat.cs index d920c4ded985..5e625c291378 100644 --- a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/ChildCat.cs +++ b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/ChildCat.cs @@ -40,7 +40,7 @@ public ChildCat(Option name = default) : base() OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// The discriminator diff --git a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/ClassModel.cs b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/ClassModel.cs index 9730e5b1185e..6df558296e85 100644 --- a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/ClassModel.cs +++ b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/ClassModel.cs @@ -40,7 +40,7 @@ public ClassModel(Option @class = default) OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Used to track the state of Class diff --git a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/ComplexQuadrilateral.cs b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/ComplexQuadrilateral.cs index 3023a45610e4..9ed7d63b7732 100644 --- a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/ComplexQuadrilateral.cs +++ b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/ComplexQuadrilateral.cs @@ -42,7 +42,7 @@ public ComplexQuadrilateral(string quadrilateralType, string shapeType) OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Gets or Sets QuadrilateralType diff --git a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/DanishPig.cs b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/DanishPig.cs index 14b2ed3b153f..8377e0f76cf5 100644 --- a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/DanishPig.cs +++ b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/DanishPig.cs @@ -40,7 +40,7 @@ public DanishPig(string className) OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Gets or Sets ClassName diff --git a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/DateOnlyClass.cs b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/DateOnlyClass.cs index 1f3a3bb8a98e..765cf5872bf5 100644 --- a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/DateOnlyClass.cs +++ b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/DateOnlyClass.cs @@ -40,7 +40,7 @@ public DateOnlyClass(Option dateOnlyProperty = default) OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Used to track the state of DateOnlyProperty diff --git a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/DeprecatedObject.cs b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/DeprecatedObject.cs index 65695f863abb..3380f335d8dc 100644 --- a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/DeprecatedObject.cs +++ b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/DeprecatedObject.cs @@ -40,7 +40,7 @@ public DeprecatedObject(Option name = default) OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Used to track the state of Name diff --git a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/Dog.cs b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/Dog.cs index 2ab1ca19d2d0..7acbb7afa118 100644 --- a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/Dog.cs +++ b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/Dog.cs @@ -41,7 +41,7 @@ public Dog(Option breed = default, Option color = default) : bas OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// The discriminator diff --git a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/Drawing.cs b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/Drawing.cs index 72e59c9baf44..e58839823ea3 100644 --- a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/Drawing.cs +++ b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/Drawing.cs @@ -46,7 +46,7 @@ public Drawing(Option mainShape = default, Option nullable OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Used to track the state of MainShape diff --git a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/EnumArrays.cs b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/EnumArrays.cs index 516c952c2071..fa491264d840 100644 --- a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/EnumArrays.cs +++ b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/EnumArrays.cs @@ -42,7 +42,7 @@ public EnumArrays(Option> arrayEnum = default, Op OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Used to track the state of JustSymbol diff --git a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/EnumTest.cs b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/EnumTest.cs index 49ce4b0a6d6e..ffb8fa54ac5c 100644 --- a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/EnumTest.cs +++ b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/EnumTest.cs @@ -56,7 +56,7 @@ public EnumTest(EnumTestEnumString enumStringRequired, Option /// Gets or Sets EnumStringRequired diff --git a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/EquilateralTriangle.cs b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/EquilateralTriangle.cs index d65c7740e5e8..e68cf480a05f 100644 --- a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/EquilateralTriangle.cs +++ b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/EquilateralTriangle.cs @@ -42,7 +42,7 @@ public EquilateralTriangle(string shapeType, string triangleType) OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Gets or Sets ShapeType diff --git a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/File.cs b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/File.cs index 3962bf2beee0..ff523b533654 100644 --- a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/File.cs +++ b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/File.cs @@ -40,7 +40,7 @@ public File(Option sourceURI = default) OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Used to track the state of SourceURI diff --git a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/FileSchemaTestClass.cs b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/FileSchemaTestClass.cs index b4307b69a3b6..543c139daa38 100644 --- a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/FileSchemaTestClass.cs +++ b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/FileSchemaTestClass.cs @@ -42,7 +42,7 @@ public FileSchemaTestClass(Option file = default, Option> files OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Used to track the state of File diff --git a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/Foo.cs b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/Foo.cs index 8c2e7c2aeb35..fbb8d26265ac 100644 --- a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/Foo.cs +++ b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/Foo.cs @@ -40,7 +40,7 @@ public Foo(Option bar = default) OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Used to track the state of Bar diff --git a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/FooGetDefaultResponse.cs b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/FooGetDefaultResponse.cs index 1540483527a3..39135550dff6 100644 --- a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/FooGetDefaultResponse.cs +++ b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/FooGetDefaultResponse.cs @@ -40,7 +40,7 @@ public FooGetDefaultResponse(Option @string = default) OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Used to track the state of String diff --git a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/FormatTest.cs b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/FormatTest.cs index 96902abd13a6..7a6bd4f26ad7 100644 --- a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/FormatTest.cs +++ b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/FormatTest.cs @@ -86,7 +86,7 @@ public FormatTest(byte[] @byte, DateOnly date, decimal number, string password, OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Gets or Sets Byte diff --git a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/Fruit.cs b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/Fruit.cs index 1b74f3034c82..3555f3cbb115 100644 --- a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/Fruit.cs +++ b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/Fruit.cs @@ -53,7 +53,7 @@ public Fruit(Banana banana, Option color = default) OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Gets or Sets Apple diff --git a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/FruitReq.cs b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/FruitReq.cs index 1e72875d4d32..fad135111099 100644 --- a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/FruitReq.cs +++ b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/FruitReq.cs @@ -49,7 +49,7 @@ public FruitReq(BananaReq bananaReq) OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Gets or Sets AppleReq diff --git a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/GmFruit.cs b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/GmFruit.cs index d5f9d222bc04..b5e645f68915 100644 --- a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/GmFruit.cs +++ b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/GmFruit.cs @@ -43,7 +43,7 @@ public GmFruit(Option apple, Option banana, Option color OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Used to track the state of Apple diff --git a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/GrandparentAnimal.cs b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/GrandparentAnimal.cs index b23e4826fd6b..6bbb19b1789e 100644 --- a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/GrandparentAnimal.cs +++ b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/GrandparentAnimal.cs @@ -38,7 +38,7 @@ public GrandparentAnimal() OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// The discriminator diff --git a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/HasOnlyReadOnly.cs b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/HasOnlyReadOnly.cs index a4e67f73a8e5..45947ab3cd6a 100644 --- a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/HasOnlyReadOnly.cs +++ b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/HasOnlyReadOnly.cs @@ -42,7 +42,7 @@ internal HasOnlyReadOnly(Option bar = default, Option foo = defa OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Used to track the state of Bar diff --git a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/HealthCheckResult.cs b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/HealthCheckResult.cs index 4b7b17d3f58a..1d1c09552fa0 100644 --- a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/HealthCheckResult.cs +++ b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/HealthCheckResult.cs @@ -40,7 +40,7 @@ public HealthCheckResult(Option nullableMessage = default) OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Used to track the state of NullableMessage diff --git a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/IsoscelesTriangle.cs b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/IsoscelesTriangle.cs index cce859524111..651f261659c1 100644 --- a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/IsoscelesTriangle.cs +++ b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/IsoscelesTriangle.cs @@ -42,7 +42,7 @@ public IsoscelesTriangle(string shapeType, string triangleType) OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Gets or Sets ShapeType diff --git a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/List.cs b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/List.cs index 8880c4c197e5..888736d83778 100644 --- a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/List.cs +++ b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/List.cs @@ -40,7 +40,7 @@ public List(Option var123List = default) OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Used to track the state of Var123List diff --git a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/LiteralStringClass.cs b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/LiteralStringClass.cs index 4c97ce2b0066..c5142dc014d5 100644 --- a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/LiteralStringClass.cs +++ b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/LiteralStringClass.cs @@ -42,7 +42,7 @@ public LiteralStringClass(Option escapedLiteralString = default, Option< OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Used to track the state of EscapedLiteralString diff --git a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/Mammal.cs b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/Mammal.cs index 267ac8769d31..d9a8cde9cd81 100644 --- a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/Mammal.cs +++ b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/Mammal.cs @@ -59,7 +59,7 @@ public Mammal(Pig pig) OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Gets or Sets Whale diff --git a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/MapTest.cs b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/MapTest.cs index 101cfb09d2ae..950a4dfc0fb3 100644 --- a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/MapTest.cs +++ b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/MapTest.cs @@ -46,7 +46,7 @@ public MapTest(Option> directMap = default, Option /// Used to track the state of DirectMap diff --git a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/MixLog.cs b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/MixLog.cs index defed9c5c7c8..8b1643447a1e 100644 --- a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/MixLog.cs +++ b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/MixLog.cs @@ -102,7 +102,7 @@ public MixLog(string description, DateTime formulaVersionDate, Guid id, DateTime OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Gets or Sets Description diff --git a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/MixedAnyOf.cs b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/MixedAnyOf.cs index 674358380306..adb6369a88f2 100644 --- a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/MixedAnyOf.cs +++ b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/MixedAnyOf.cs @@ -40,7 +40,7 @@ public MixedAnyOf(Option content = default) OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Used to track the state of Content diff --git a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/MixedAnyOfContent.cs b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/MixedAnyOfContent.cs index 4d5b99d03e4c..b29dfb919911 100644 --- a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/MixedAnyOfContent.cs +++ b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/MixedAnyOfContent.cs @@ -47,7 +47,7 @@ public MixedAnyOfContent(Option @string, Option @bool, Option /// Used to track the state of String diff --git a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/MixedOneOf.cs b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/MixedOneOf.cs index 2467daa6e2b3..ab7e058c40a4 100644 --- a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/MixedOneOf.cs +++ b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/MixedOneOf.cs @@ -40,7 +40,7 @@ public MixedOneOf(Option content = default) OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Used to track the state of Content diff --git a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/MixedOneOfContent.cs b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/MixedOneOfContent.cs index 4cb69dae28cd..bd9823fdcbc1 100644 --- a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/MixedOneOfContent.cs +++ b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/MixedOneOfContent.cs @@ -79,7 +79,7 @@ public MixedOneOfContent(MixedSubId mixedSubId) OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Gets or Sets String diff --git a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/MixedPropertiesAndAdditionalPropertiesClass.cs b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/MixedPropertiesAndAdditionalPropertiesClass.cs index 808a4b66c6f2..dc2c1120b463 100644 --- a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/MixedPropertiesAndAdditionalPropertiesClass.cs +++ b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/MixedPropertiesAndAdditionalPropertiesClass.cs @@ -46,7 +46,7 @@ public MixedPropertiesAndAdditionalPropertiesClass(Option dateTime = OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Used to track the state of DateTime diff --git a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/MixedSubId.cs b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/MixedSubId.cs index 05c06c0129ed..e5d291e1948b 100644 --- a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/MixedSubId.cs +++ b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/MixedSubId.cs @@ -40,7 +40,7 @@ public MixedSubId(Option id = default) OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Used to track the state of Id diff --git a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/Model200Response.cs b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/Model200Response.cs index 8e865d8efae7..b2b41dd6d9fb 100644 --- a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/Model200Response.cs +++ b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/Model200Response.cs @@ -42,7 +42,7 @@ public Model200Response(Option @class = default, Option name = def OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Used to track the state of Class diff --git a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/ModelClient.cs b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/ModelClient.cs index 60a778b3a743..9d4ef9c384cb 100644 --- a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/ModelClient.cs +++ b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/ModelClient.cs @@ -40,7 +40,7 @@ public ModelClient(Option varClient = default) OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Used to track the state of VarClient diff --git a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/Name.cs b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/Name.cs index db407f5e3553..87b11258f4cc 100644 --- a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/Name.cs +++ b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/Name.cs @@ -46,7 +46,7 @@ public Name(int varName, Option property = default, Option snakeCa OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Gets or Sets VarName diff --git a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/NotificationtestGetElementsV1ResponseMPayload.cs b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/NotificationtestGetElementsV1ResponseMPayload.cs index ea8abdda0d78..d6c1a4bf339b 100644 --- a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/NotificationtestGetElementsV1ResponseMPayload.cs +++ b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/NotificationtestGetElementsV1ResponseMPayload.cs @@ -42,7 +42,7 @@ public NotificationtestGetElementsV1ResponseMPayload(List /// Gets or Sets AObjVariableobject diff --git a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/NullableClass.cs b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/NullableClass.cs index 3b9f00ed6666..c1c3244c9afb 100644 --- a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/NullableClass.cs +++ b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/NullableClass.cs @@ -62,7 +62,7 @@ public NullableClass(Option> arrayAndItemsNullableProp = default, O OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Used to track the state of ArrayAndItemsNullableProp diff --git a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/NullableGuidClass.cs b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/NullableGuidClass.cs index 5f369537bb2a..90f972c22b24 100644 --- a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/NullableGuidClass.cs +++ b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/NullableGuidClass.cs @@ -40,7 +40,7 @@ public NullableGuidClass(Option uuid = default) OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Used to track the state of Uuid diff --git a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/NullableShape.cs b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/NullableShape.cs index 9a93cb734e9c..995568e86c42 100644 --- a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/NullableShape.cs +++ b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/NullableShape.cs @@ -49,7 +49,7 @@ public NullableShape(Quadrilateral quadrilateral) OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Gets or Sets Triangle diff --git a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/NumberOnly.cs b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/NumberOnly.cs index f720208fafe0..d6399df1ae8d 100644 --- a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/NumberOnly.cs +++ b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/NumberOnly.cs @@ -40,7 +40,7 @@ public NumberOnly(Option justNumber = default) OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Used to track the state of JustNumber diff --git a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/ObjectWithDeprecatedFields.cs b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/ObjectWithDeprecatedFields.cs index 50ad5aef5a1b..59c8d1eb6859 100644 --- a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/ObjectWithDeprecatedFields.cs +++ b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/ObjectWithDeprecatedFields.cs @@ -46,7 +46,7 @@ public ObjectWithDeprecatedFields(Option> bars = default, Option /// Used to track the state of Bars diff --git a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/OneOfString.cs b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/OneOfString.cs index c89963f55a36..999f3ce9a2e5 100644 --- a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/OneOfString.cs +++ b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/OneOfString.cs @@ -39,7 +39,7 @@ internal OneOfString(string @string) OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Gets or Sets String diff --git a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/Order.cs b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/Order.cs index c9c24d32fc40..ca2eadd27de2 100644 --- a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/Order.cs +++ b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/Order.cs @@ -50,7 +50,7 @@ public Order(Option complete = default, Option id = default, Optio OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Used to track the state of Status diff --git a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/OuterComposite.cs b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/OuterComposite.cs index 5a072449fae0..7736d80ba48e 100644 --- a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/OuterComposite.cs +++ b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/OuterComposite.cs @@ -44,7 +44,7 @@ public OuterComposite(Option myBoolean = default, Option myNumb OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Used to track the state of MyBoolean diff --git a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/ParentPet.cs b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/ParentPet.cs index 83104e900d01..dd6f0777ee48 100644 --- a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/ParentPet.cs +++ b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/ParentPet.cs @@ -38,7 +38,7 @@ public ParentPet() : base() OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// The discriminator diff --git a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/Pet.cs b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/Pet.cs index 6b354389b24a..ef3da9f7d9b8 100644 --- a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/Pet.cs +++ b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/Pet.cs @@ -50,7 +50,7 @@ public Pet(string name, List photoUrls, Option category = defa OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Used to track the state of Status diff --git a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/Pig.cs b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/Pig.cs index b6f300c94400..6cbb846229e6 100644 --- a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/Pig.cs +++ b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/Pig.cs @@ -49,7 +49,7 @@ public Pig(DanishPig danishPig) OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Gets or Sets BasquePig diff --git a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/PolymorphicProperty.cs b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/PolymorphicProperty.cs index ddea47edf40c..a0fdf9fa39c7 100644 --- a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/PolymorphicProperty.cs +++ b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/PolymorphicProperty.cs @@ -69,7 +69,7 @@ internal PolymorphicProperty(List list) OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Gets or Sets Bool diff --git a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/Quadrilateral.cs b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/Quadrilateral.cs index e8a2e2439975..a95ca8f058bf 100644 --- a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/Quadrilateral.cs +++ b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/Quadrilateral.cs @@ -49,7 +49,7 @@ public Quadrilateral(ComplexQuadrilateral complexQuadrilateral) OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Gets or Sets SimpleQuadrilateral diff --git a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/QuadrilateralInterface.cs b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/QuadrilateralInterface.cs index 519ed66393ca..08cade10a83f 100644 --- a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/QuadrilateralInterface.cs +++ b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/QuadrilateralInterface.cs @@ -40,7 +40,7 @@ public QuadrilateralInterface(string quadrilateralType) OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Gets or Sets QuadrilateralType diff --git a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/ReadOnlyFirst.cs b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/ReadOnlyFirst.cs index b1907fda8183..3435f784f78b 100644 --- a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/ReadOnlyFirst.cs +++ b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/ReadOnlyFirst.cs @@ -42,7 +42,7 @@ public ReadOnlyFirst(Option bar = default, Option baz = default) OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Used to track the state of Bar diff --git a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/RequiredClass.cs b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/RequiredClass.cs index 6465301de4d0..d793e73268f9 100644 --- a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/RequiredClass.cs +++ b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/RequiredClass.cs @@ -126,7 +126,7 @@ public RequiredClass(DateOnly requiredNotNullableDateProp, List required OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Gets or Sets RequiredNotnullableEnumInteger diff --git a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/Return.cs b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/Return.cs index 9d1fbcfd0f6f..e82cc2e69a31 100644 --- a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/Return.cs +++ b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/Return.cs @@ -46,7 +46,7 @@ public Return(string @lock, string @abstract = default, Option varReturn = OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Gets or Sets Lock diff --git a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/RolesReportsHash.cs b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/RolesReportsHash.cs index 749507fe8e0c..b7204607d41a 100644 --- a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/RolesReportsHash.cs +++ b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/RolesReportsHash.cs @@ -42,7 +42,7 @@ public RolesReportsHash(Option role = default, Option /// Used to track the state of Role diff --git a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/RolesReportsHashRole.cs b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/RolesReportsHashRole.cs index 5b5b7899e3cf..bc45f788d1b1 100644 --- a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/RolesReportsHashRole.cs +++ b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/RolesReportsHashRole.cs @@ -40,7 +40,7 @@ public RolesReportsHashRole(Option name = default) OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Used to track the state of Name diff --git a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/ScaleneTriangle.cs b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/ScaleneTriangle.cs index 5c960eb54744..ae482c9fd59c 100644 --- a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/ScaleneTriangle.cs +++ b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/ScaleneTriangle.cs @@ -42,7 +42,7 @@ public ScaleneTriangle(string shapeType, string triangleType) OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Gets or Sets ShapeType diff --git a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/Shape.cs b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/Shape.cs index c651ac7d2454..bf15bb26ed51 100644 --- a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/Shape.cs +++ b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/Shape.cs @@ -49,7 +49,7 @@ public Shape(Quadrilateral quadrilateral) OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Gets or Sets Triangle diff --git a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/ShapeInterface.cs b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/ShapeInterface.cs index 37db5df64908..192ca6aef087 100644 --- a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/ShapeInterface.cs +++ b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/ShapeInterface.cs @@ -40,7 +40,7 @@ public ShapeInterface(string shapeType) OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Gets or Sets ShapeType diff --git a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/ShapeOrNull.cs b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/ShapeOrNull.cs index 1f0b22030070..c532dcee99f3 100644 --- a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/ShapeOrNull.cs +++ b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/ShapeOrNull.cs @@ -49,7 +49,7 @@ public ShapeOrNull(Quadrilateral quadrilateral) OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Gets or Sets Triangle diff --git a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/SimpleQuadrilateral.cs b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/SimpleQuadrilateral.cs index ffa68d1e75de..0a8314e7ee3b 100644 --- a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/SimpleQuadrilateral.cs +++ b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/SimpleQuadrilateral.cs @@ -42,7 +42,7 @@ public SimpleQuadrilateral(string quadrilateralType, string shapeType) OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Gets or Sets QuadrilateralType diff --git a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/SpecialModelName.cs b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/SpecialModelName.cs index 08b9d580d9f1..3bc3a37e2d90 100644 --- a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/SpecialModelName.cs +++ b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/SpecialModelName.cs @@ -42,7 +42,7 @@ public SpecialModelName(Option varSpecialModelName = default, Option /// Used to track the state of VarSpecialModelName diff --git a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/Tag.cs b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/Tag.cs index d5fb2f5610ad..425f66d8dafd 100644 --- a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/Tag.cs +++ b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/Tag.cs @@ -42,7 +42,7 @@ public Tag(Option id = default, Option name = default) OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Used to track the state of Id diff --git a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordList.cs b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordList.cs index 215caa45302b..d2777dd81ec8 100644 --- a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordList.cs +++ b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordList.cs @@ -40,7 +40,7 @@ public TestCollectionEndingWithWordList(Option value = default) OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Used to track the state of Value diff --git a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordListObject.cs b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordListObject.cs index 1936341f8ba6..7a04b7a7a794 100644 --- a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordListObject.cs +++ b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordListObject.cs @@ -40,7 +40,7 @@ public TestCollectionEndingWithWordListObject(Option /// Used to track the state of TestCollectionEndingWithWordList diff --git a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/TestInlineFreeformAdditionalPropertiesRequest.cs b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/TestInlineFreeformAdditionalPropertiesRequest.cs index fbd7dddd9dce..0125a098d144 100644 --- a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/TestInlineFreeformAdditionalPropertiesRequest.cs +++ b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/TestInlineFreeformAdditionalPropertiesRequest.cs @@ -40,7 +40,7 @@ public TestInlineFreeformAdditionalPropertiesRequest(Option someProperty OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Used to track the state of SomeProperty diff --git a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/Triangle.cs b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/Triangle.cs index cf22051519ad..36cae8b499ba 100644 --- a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/Triangle.cs +++ b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/Triangle.cs @@ -59,7 +59,7 @@ public Triangle(ScaleneTriangle scaleneTriangle) OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Gets or Sets EquilateralTriangle diff --git a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/TriangleInterface.cs b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/TriangleInterface.cs index 0f13b0e77451..55f659bdd721 100644 --- a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/TriangleInterface.cs +++ b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/TriangleInterface.cs @@ -40,7 +40,7 @@ public TriangleInterface(string triangleType) OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Gets or Sets TriangleType diff --git a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/User.cs b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/User.cs index 0c2e096925ef..a0c75e0c6f83 100644 --- a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/User.cs +++ b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/User.cs @@ -62,7 +62,7 @@ public User(Option anyTypeProp = default, Option anyTypePropNull OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Used to track the state of AnyTypeProp diff --git a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/Whale.cs b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/Whale.cs index a445c5ac182b..cf44ff1e27b8 100644 --- a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/Whale.cs +++ b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/Whale.cs @@ -44,7 +44,7 @@ public Whale(string className, Option hasBaleen = default, Option OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Gets or Sets ClassName diff --git a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/Zebra.cs b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/Zebra.cs index d3fbe37b12e5..10581458dded 100644 --- a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/Zebra.cs +++ b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/Zebra.cs @@ -42,7 +42,7 @@ public Zebra(string className, Option type = default) OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Used to track the state of Type diff --git a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/ZeroBasedEnumClass.cs b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/ZeroBasedEnumClass.cs index 7373bc5873d5..3eaf2bd2c2e8 100644 --- a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/ZeroBasedEnumClass.cs +++ b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/ZeroBasedEnumClass.cs @@ -40,7 +40,7 @@ public ZeroBasedEnumClass(Option zeroBasedEnum OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Used to track the state of ZeroBasedEnum 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 a34c828167b1..c403eab10e2a 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 @@ -172,7 +172,7 @@ public AnotherFakeApi(ILogger logger, ILoggerFactory loggerFacto OauthTokenProvider = oauthTokenProvider; } - partial void FormatCall123TestSpecialTags(ModelClient modelClient); + public virtual void FormatCall123TestSpecialTags(ModelClient modelClient) { } /// /// Validates the request parameters @@ -204,7 +204,7 @@ private void AfterCall123TestSpecialTagsDefaultImplementation(ICall123TestSpecia /// /// /// - partial void AfterCall123TestSpecialTags(ref bool suppressDefaultLog, ICall123TestSpecialTagsApiResponse apiResponseLocalVar, ModelClient modelClient); + public virtual void AfterCall123TestSpecialTags(ref bool suppressDefaultLog, ICall123TestSpecialTagsApiResponse apiResponseLocalVar, ModelClient modelClient) { } /// /// Logs exceptions that occur while retrieving the server response @@ -229,7 +229,7 @@ private void OnErrorCall123TestSpecialTagsDefaultImplementation(Exception except /// /// /// - partial void OnErrorCall123TestSpecialTags(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, ModelClient modelClient); + public virtual 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 @@ -351,7 +351,7 @@ public Call123TestSpecialTagsApiResponse(ILogger /// Returns true if the response is 200 Ok @@ -399,7 +399,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } - partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); + public virtual void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode) { } } } } 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 cced9ce3479a..99357f92410c 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 @@ -401,7 +401,7 @@ private void AfterFooGetDefaultImplementation(IFooGetApiResponse apiResponseLoca /// /// /// - partial void AfterFooGet(ref bool suppressDefaultLog, IFooGetApiResponse apiResponseLocalVar); + public virtual void AfterFooGet(ref bool suppressDefaultLog, IFooGetApiResponse apiResponseLocalVar) { } /// /// Logs exceptions that occur while retrieving the server response @@ -424,7 +424,7 @@ private void OnErrorFooGetDefaultImplementation(Exception exceptionLocalVar, str /// /// /// - partial void OnErrorFooGet(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar); + public virtual void OnErrorFooGet(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar) { } /// /// @@ -527,7 +527,7 @@ public FooGetApiResponse(ILogger logger, System.Net.Http.Http OnCreated(httpRequestMessage, httpResponseMessage); } - partial void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage); + public virtual void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage) { } /// /// Returns true if the response is the default response type @@ -575,10 +575,10 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } - partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); + public virtual void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode) { } } - partial void FormatGetCountry(ref string country); + public virtual void FormatGetCountry(ref string country) { } /// /// Validates the request parameters @@ -610,7 +610,7 @@ private void AfterGetCountryDefaultImplementation(IGetCountryApiResponse apiResp /// /// /// - partial void AfterGetCountry(ref bool suppressDefaultLog, IGetCountryApiResponse apiResponseLocalVar, string country); + public virtual void AfterGetCountry(ref bool suppressDefaultLog, IGetCountryApiResponse apiResponseLocalVar, string country) { } /// /// Logs exceptions that occur while retrieving the server response @@ -635,7 +635,7 @@ private void OnErrorGetCountryDefaultImplementation(Exception exceptionLocalVar, /// /// /// - partial void OnErrorGetCountry(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, string country); + public virtual void OnErrorGetCountry(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, string country) { } /// /// @@ -754,7 +754,7 @@ public GetCountryApiResponse(ILogger logger, System.Net.H OnCreated(httpRequestMessage, httpResponseMessage); } - partial void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage); + public virtual void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage) { } /// /// Returns true if the response is 200 Ok @@ -770,7 +770,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } - partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); + public virtual void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode) { } } /// @@ -790,7 +790,7 @@ private void AfterHelloDefaultImplementation(IHelloApiResponse apiResponseLocalV /// /// /// - partial void AfterHello(ref bool suppressDefaultLog, IHelloApiResponse apiResponseLocalVar); + public virtual void AfterHello(ref bool suppressDefaultLog, IHelloApiResponse apiResponseLocalVar) { } /// /// Logs exceptions that occur while retrieving the server response @@ -813,7 +813,7 @@ private void OnErrorHelloDefaultImplementation(Exception exceptionLocalVar, stri /// /// /// - partial void OnErrorHello(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar); + public virtual void OnErrorHello(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar) { } /// /// Hello Hello @@ -916,7 +916,7 @@ public HelloApiResponse(ILogger logger, System.Net.Http.HttpRe OnCreated(httpRequestMessage, httpResponseMessage); } - partial void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage); + public virtual void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage) { } /// /// Returns true if the response is 200 Ok @@ -964,7 +964,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } - partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); + public virtual void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode) { } } /// @@ -984,7 +984,7 @@ private void AfterRolesReportGetDefaultImplementation(IRolesReportGetApiResponse /// /// /// - partial void AfterRolesReportGet(ref bool suppressDefaultLog, IRolesReportGetApiResponse apiResponseLocalVar); + public virtual void AfterRolesReportGet(ref bool suppressDefaultLog, IRolesReportGetApiResponse apiResponseLocalVar) { } /// /// Logs exceptions that occur while retrieving the server response @@ -1007,7 +1007,7 @@ private void OnErrorRolesReportGetDefaultImplementation(Exception exceptionLocal /// /// /// - partial void OnErrorRolesReportGet(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar); + public virtual void OnErrorRolesReportGet(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar) { } /// /// @@ -1110,7 +1110,7 @@ public RolesReportGetApiResponse(ILogger logger, Syst OnCreated(httpRequestMessage, httpResponseMessage); } - partial void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage); + public virtual void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage) { } /// /// Returns true if the response is 200 Ok @@ -1158,7 +1158,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } - partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); + public virtual void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode) { } } /// @@ -1178,7 +1178,7 @@ private void AfterTestDefaultImplementation(ITestApiResponse apiResponseLocalVar /// /// /// - partial void AfterTest(ref bool suppressDefaultLog, ITestApiResponse apiResponseLocalVar); + public virtual void AfterTest(ref bool suppressDefaultLog, ITestApiResponse apiResponseLocalVar) { } /// /// Logs exceptions that occur while retrieving the server response @@ -1201,7 +1201,7 @@ private void OnErrorTestDefaultImplementation(Exception exceptionLocalVar, strin /// /// /// - partial void OnErrorTest(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar); + public virtual void OnErrorTest(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar) { } /// /// Retrieve an existing Notificationtest's Elements @@ -1304,7 +1304,7 @@ public TestApiResponse(ILogger logger, System.Net.Http.HttpRequ OnCreated(httpRequestMessage, httpResponseMessage); } - partial void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage); + public virtual void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage) { } /// /// Returns true if the response is 200 Ok @@ -1352,7 +1352,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } - partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); + public virtual void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode) { } } } } 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 39b422f6f7f7..9991646d2b78 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 @@ -1310,7 +1310,7 @@ private void AfterFakeHealthGetDefaultImplementation(IFakeHealthGetApiResponse a /// /// /// - partial void AfterFakeHealthGet(ref bool suppressDefaultLog, IFakeHealthGetApiResponse apiResponseLocalVar); + public virtual void AfterFakeHealthGet(ref bool suppressDefaultLog, IFakeHealthGetApiResponse apiResponseLocalVar) { } /// /// Logs exceptions that occur while retrieving the server response @@ -1333,7 +1333,7 @@ private void OnErrorFakeHealthGetDefaultImplementation(Exception exceptionLocalV /// /// /// - partial void OnErrorFakeHealthGet(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar); + public virtual void OnErrorFakeHealthGet(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar) { } /// /// Health check endpoint @@ -1436,7 +1436,7 @@ public FakeHealthGetApiResponse(ILogger logger, System OnCreated(httpRequestMessage, httpResponseMessage); } - partial void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage); + public virtual void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage) { } /// /// Returns true if the response is 200 Ok @@ -1484,10 +1484,10 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } - partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); + public virtual void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode) { } } - partial void FormatFakeOuterBooleanSerialize(ref Option body); + public virtual void FormatFakeOuterBooleanSerialize(ref Option body) { } /// /// Processes the server response @@ -1508,7 +1508,7 @@ private void AfterFakeOuterBooleanSerializeDefaultImplementation(IFakeOuterBoole /// /// /// - partial void AfterFakeOuterBooleanSerialize(ref bool suppressDefaultLog, IFakeOuterBooleanSerializeApiResponse apiResponseLocalVar, Option body); + public virtual void AfterFakeOuterBooleanSerialize(ref bool suppressDefaultLog, IFakeOuterBooleanSerializeApiResponse apiResponseLocalVar, Option body) { } /// /// Logs exceptions that occur while retrieving the server response @@ -1533,7 +1533,7 @@ private void OnErrorFakeOuterBooleanSerializeDefaultImplementation(Exception exc /// /// /// - partial void OnErrorFakeOuterBooleanSerialize(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, Option body); + public virtual void OnErrorFakeOuterBooleanSerialize(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, Option body) { } /// /// Test serialization of outer boolean types @@ -1654,7 +1654,7 @@ public FakeOuterBooleanSerializeApiResponse(ILogger /// Returns true if the response is 200 Ok @@ -1702,10 +1702,10 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } - partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); + public virtual void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode) { } } - partial void FormatFakeOuterCompositeSerialize(Option outerComposite); + public virtual void FormatFakeOuterCompositeSerialize(Option outerComposite) { } /// /// Validates the request parameters @@ -1737,7 +1737,7 @@ private void AfterFakeOuterCompositeSerializeDefaultImplementation(IFakeOuterCom /// /// /// - partial void AfterFakeOuterCompositeSerialize(ref bool suppressDefaultLog, IFakeOuterCompositeSerializeApiResponse apiResponseLocalVar, Option outerComposite); + public virtual void AfterFakeOuterCompositeSerialize(ref bool suppressDefaultLog, IFakeOuterCompositeSerializeApiResponse apiResponseLocalVar, Option outerComposite) { } /// /// Logs exceptions that occur while retrieving the server response @@ -1762,7 +1762,7 @@ private void OnErrorFakeOuterCompositeSerializeDefaultImplementation(Exception e /// /// /// - partial void OnErrorFakeOuterCompositeSerialize(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, Option outerComposite); + public virtual void OnErrorFakeOuterCompositeSerialize(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, Option outerComposite) { } /// /// Test serialization of object with outer number type @@ -1885,7 +1885,7 @@ public FakeOuterCompositeSerializeApiResponse(ILogger /// Returns true if the response is 200 Ok @@ -1933,10 +1933,10 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } - partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); + public virtual void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode) { } } - partial void FormatFakeOuterNumberSerialize(ref Option body); + public virtual void FormatFakeOuterNumberSerialize(ref Option body) { } /// /// Processes the server response @@ -1957,7 +1957,7 @@ private void AfterFakeOuterNumberSerializeDefaultImplementation(IFakeOuterNumber /// /// /// - partial void AfterFakeOuterNumberSerialize(ref bool suppressDefaultLog, IFakeOuterNumberSerializeApiResponse apiResponseLocalVar, Option body); + public virtual void AfterFakeOuterNumberSerialize(ref bool suppressDefaultLog, IFakeOuterNumberSerializeApiResponse apiResponseLocalVar, Option body) { } /// /// Logs exceptions that occur while retrieving the server response @@ -1982,7 +1982,7 @@ private void OnErrorFakeOuterNumberSerializeDefaultImplementation(Exception exce /// /// /// - partial void OnErrorFakeOuterNumberSerialize(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, Option body); + public virtual void OnErrorFakeOuterNumberSerialize(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, Option body) { } /// /// Test serialization of outer number types @@ -2103,7 +2103,7 @@ public FakeOuterNumberSerializeApiResponse(ILogger /// Returns true if the response is 200 Ok @@ -2151,10 +2151,10 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } - partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); + public virtual void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode) { } } - partial void FormatFakeOuterStringSerialize(ref Guid requiredStringUuid, ref Option body); + public virtual void FormatFakeOuterStringSerialize(ref Guid requiredStringUuid, ref Option body) { } /// /// Validates the request parameters @@ -2188,7 +2188,7 @@ private void AfterFakeOuterStringSerializeDefaultImplementation(IFakeOuterString /// /// /// - partial void AfterFakeOuterStringSerialize(ref bool suppressDefaultLog, IFakeOuterStringSerializeApiResponse apiResponseLocalVar, Guid requiredStringUuid, Option body); + public virtual void AfterFakeOuterStringSerialize(ref bool suppressDefaultLog, IFakeOuterStringSerializeApiResponse apiResponseLocalVar, Guid requiredStringUuid, Option body) { } /// /// Logs exceptions that occur while retrieving the server response @@ -2215,7 +2215,7 @@ private void OnErrorFakeOuterStringSerializeDefaultImplementation(Exception exce /// /// /// - partial void OnErrorFakeOuterStringSerialize(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, Guid requiredStringUuid, Option body); + public virtual void OnErrorFakeOuterStringSerialize(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, Guid requiredStringUuid, Option body) { } /// /// Test serialization of outer string types @@ -2346,7 +2346,7 @@ public FakeOuterStringSerializeApiResponse(ILogger /// Returns true if the response is 200 Ok @@ -2394,7 +2394,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } - partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); + public virtual void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode) { } } /// @@ -2414,7 +2414,7 @@ private void AfterGetArrayOfEnumsDefaultImplementation(IGetArrayOfEnumsApiRespon /// /// /// - partial void AfterGetArrayOfEnums(ref bool suppressDefaultLog, IGetArrayOfEnumsApiResponse apiResponseLocalVar); + public virtual void AfterGetArrayOfEnums(ref bool suppressDefaultLog, IGetArrayOfEnumsApiResponse apiResponseLocalVar) { } /// /// Logs exceptions that occur while retrieving the server response @@ -2437,7 +2437,7 @@ private void OnErrorGetArrayOfEnumsDefaultImplementation(Exception exceptionLoca /// /// /// - partial void OnErrorGetArrayOfEnums(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar); + public virtual void OnErrorGetArrayOfEnums(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar) { } /// /// Array of Enums @@ -2540,7 +2540,7 @@ public GetArrayOfEnumsApiResponse(ILogger logger, Sy OnCreated(httpRequestMessage, httpResponseMessage); } - partial void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage); + public virtual void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage) { } /// /// Returns true if the response is 200 Ok @@ -2588,7 +2588,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } - partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); + public virtual void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode) { } } /// @@ -2608,7 +2608,7 @@ private void AfterGetMixedAnyOfDefaultImplementation(IGetMixedAnyOfApiResponse a /// /// /// - partial void AfterGetMixedAnyOf(ref bool suppressDefaultLog, IGetMixedAnyOfApiResponse apiResponseLocalVar); + public virtual void AfterGetMixedAnyOf(ref bool suppressDefaultLog, IGetMixedAnyOfApiResponse apiResponseLocalVar) { } /// /// Logs exceptions that occur while retrieving the server response @@ -2631,7 +2631,7 @@ private void OnErrorGetMixedAnyOfDefaultImplementation(Exception exceptionLocalV /// /// /// - partial void OnErrorGetMixedAnyOf(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar); + public virtual void OnErrorGetMixedAnyOf(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar) { } /// /// Test mixed type anyOf deserialization @@ -2734,7 +2734,7 @@ public GetMixedAnyOfApiResponse(ILogger logger, System OnCreated(httpRequestMessage, httpResponseMessage); } - partial void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage); + public virtual void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage) { } /// /// Returns true if the response is 200 Ok @@ -2782,7 +2782,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } - partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); + public virtual void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode) { } } /// @@ -2802,7 +2802,7 @@ private void AfterGetMixedOneOfDefaultImplementation(IGetMixedOneOfApiResponse a /// /// /// - partial void AfterGetMixedOneOf(ref bool suppressDefaultLog, IGetMixedOneOfApiResponse apiResponseLocalVar); + public virtual void AfterGetMixedOneOf(ref bool suppressDefaultLog, IGetMixedOneOfApiResponse apiResponseLocalVar) { } /// /// Logs exceptions that occur while retrieving the server response @@ -2825,7 +2825,7 @@ private void OnErrorGetMixedOneOfDefaultImplementation(Exception exceptionLocalV /// /// /// - partial void OnErrorGetMixedOneOf(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar); + public virtual void OnErrorGetMixedOneOf(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar) { } /// /// Test mixed type oneOf deserialization @@ -2928,7 +2928,7 @@ public GetMixedOneOfApiResponse(ILogger logger, System OnCreated(httpRequestMessage, httpResponseMessage); } - partial void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage); + public virtual void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage) { } /// /// Returns true if the response is 200 Ok @@ -2976,10 +2976,10 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } - partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); + public virtual void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode) { } } - partial void FormatTestAdditionalPropertiesReference(Dictionary requestBody); + public virtual void FormatTestAdditionalPropertiesReference(Dictionary requestBody) { } /// /// Validates the request parameters @@ -3011,7 +3011,7 @@ private void AfterTestAdditionalPropertiesReferenceDefaultImplementation(ITestAd /// /// /// - partial void AfterTestAdditionalPropertiesReference(ref bool suppressDefaultLog, ITestAdditionalPropertiesReferenceApiResponse apiResponseLocalVar, Dictionary requestBody); + public virtual void AfterTestAdditionalPropertiesReference(ref bool suppressDefaultLog, ITestAdditionalPropertiesReferenceApiResponse apiResponseLocalVar, Dictionary requestBody) { } /// /// Logs exceptions that occur while retrieving the server response @@ -3036,7 +3036,7 @@ private void OnErrorTestAdditionalPropertiesReferenceDefaultImplementation(Excep /// /// /// - partial void OnErrorTestAdditionalPropertiesReference(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, Dictionary requestBody); + public virtual void OnErrorTestAdditionalPropertiesReference(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, Dictionary requestBody) { } /// /// test referenced additionalProperties @@ -3149,7 +3149,7 @@ public TestAdditionalPropertiesReferenceApiResponse(ILogger /// Returns true if the response is 200 Ok @@ -3165,10 +3165,10 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } - partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); + public virtual void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode) { } } - partial void FormatTestBodyWithFileSchema(FileSchemaTestClass fileSchemaTestClass); + public virtual void FormatTestBodyWithFileSchema(FileSchemaTestClass fileSchemaTestClass) { } /// /// Validates the request parameters @@ -3200,7 +3200,7 @@ private void AfterTestBodyWithFileSchemaDefaultImplementation(ITestBodyWithFileS /// /// /// - partial void AfterTestBodyWithFileSchema(ref bool suppressDefaultLog, ITestBodyWithFileSchemaApiResponse apiResponseLocalVar, FileSchemaTestClass fileSchemaTestClass); + public virtual void AfterTestBodyWithFileSchema(ref bool suppressDefaultLog, ITestBodyWithFileSchemaApiResponse apiResponseLocalVar, FileSchemaTestClass fileSchemaTestClass) { } /// /// Logs exceptions that occur while retrieving the server response @@ -3225,7 +3225,7 @@ private void OnErrorTestBodyWithFileSchemaDefaultImplementation(Exception except /// /// /// - partial void OnErrorTestBodyWithFileSchema(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, FileSchemaTestClass fileSchemaTestClass); + public virtual 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`. @@ -3338,7 +3338,7 @@ public TestBodyWithFileSchemaApiResponse(ILogger /// Returns true if the response is 200 Ok @@ -3354,10 +3354,10 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } - partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); + public virtual void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode) { } } - partial void FormatTestBodyWithQueryParams(ref string query, User user); + public virtual void FormatTestBodyWithQueryParams(ref string query, User user) { } /// /// Validates the request parameters @@ -3395,7 +3395,7 @@ private void AfterTestBodyWithQueryParamsDefaultImplementation(ITestBodyWithQuer /// /// /// - partial void AfterTestBodyWithQueryParams(ref bool suppressDefaultLog, ITestBodyWithQueryParamsApiResponse apiResponseLocalVar, string query, User user); + public virtual void AfterTestBodyWithQueryParams(ref bool suppressDefaultLog, ITestBodyWithQueryParamsApiResponse apiResponseLocalVar, string query, User user) { } /// /// Logs exceptions that occur while retrieving the server response @@ -3422,7 +3422,7 @@ private void OnErrorTestBodyWithQueryParamsDefaultImplementation(Exception excep /// /// /// - partial void OnErrorTestBodyWithQueryParams(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, string query, User user); + public virtual void OnErrorTestBodyWithQueryParams(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, string query, User user) { } /// /// @@ -3543,7 +3543,7 @@ public TestBodyWithQueryParamsApiResponse(ILogger /// Returns true if the response is 200 Ok @@ -3559,10 +3559,10 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } - partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); + public virtual void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode) { } } - partial void FormatTestClientModel(ModelClient modelClient); + public virtual void FormatTestClientModel(ModelClient modelClient) { } /// /// Validates the request parameters @@ -3594,7 +3594,7 @@ private void AfterTestClientModelDefaultImplementation(ITestClientModelApiRespon /// /// /// - partial void AfterTestClientModel(ref bool suppressDefaultLog, ITestClientModelApiResponse apiResponseLocalVar, ModelClient modelClient); + public virtual void AfterTestClientModel(ref bool suppressDefaultLog, ITestClientModelApiResponse apiResponseLocalVar, ModelClient modelClient) { } /// /// Logs exceptions that occur while retrieving the server response @@ -3619,7 +3619,7 @@ private void OnErrorTestClientModelDefaultImplementation(Exception exceptionLoca /// /// /// - partial void OnErrorTestClientModel(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, ModelClient modelClient); + public virtual void OnErrorTestClientModel(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, ModelClient modelClient) { } /// /// To test \"client\" model To test \"client\" model @@ -3741,7 +3741,7 @@ public TestClientModelApiResponse(ILogger logger, Sy OnCreated(httpRequestMessage, httpResponseMessage); } - partial void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage); + public virtual void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage) { } /// /// Returns true if the response is 200 Ok @@ -3789,10 +3789,10 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } - partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); + public virtual void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode) { } } - partial void FormatTestEndpointParameters(ref decimal number, ref string patternWithoutDelimiter, ref byte[] varByte, ref double varDouble, ref Option binary, ref Option callback, ref Option date, ref Option dateTime, ref Option int32, ref Option int64, ref Option integer, ref Option password, ref Option varFloat, ref Option varString); + public virtual void FormatTestEndpointParameters(ref decimal number, ref string patternWithoutDelimiter, ref byte[] varByte, ref double varDouble, ref Option binary, ref Option callback, ref Option date, ref Option dateTime, ref Option int32, ref Option int64, ref Option integer, ref Option password, ref Option varFloat, ref Option varString) { } /// /// Validates the request parameters @@ -3870,7 +3870,7 @@ private void AfterTestEndpointParametersDefaultImplementation(ITestEndpointParam /// /// /// - partial void AfterTestEndpointParameters(ref bool suppressDefaultLog, ITestEndpointParametersApiResponse apiResponseLocalVar, 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); + public virtual void AfterTestEndpointParameters(ref bool suppressDefaultLog, ITestEndpointParametersApiResponse apiResponseLocalVar, 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) { } /// /// Logs exceptions that occur while retrieving the server response @@ -3921,7 +3921,7 @@ private void OnErrorTestEndpointParametersDefaultImplementation(Exception except /// /// /// - 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); + public virtual 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 假端點 偽のエンドポイント 가짜 엔드 포인트 @@ -4113,7 +4113,7 @@ public TestEndpointParametersApiResponse(ILogger /// Returns true if the response is 400 BadRequest @@ -4135,10 +4135,10 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } - partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); + public virtual void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode) { } } - partial void FormatTestEnumParameters(ref Option enumFormString, Option> enumFormStringArray, ref Option enumHeaderString, Option> enumHeaderStringArray, ref Option enumQueryDouble, ref Option enumQueryInteger, ref Option enumQueryString, Option> enumQueryStringArray); + public virtual void FormatTestEnumParameters(ref Option enumFormString, Option> enumFormStringArray, ref Option enumHeaderString, Option> enumHeaderStringArray, ref Option enumQueryDouble, ref Option enumQueryInteger, ref Option enumQueryString, Option> enumQueryStringArray) { } /// /// Validates the request parameters @@ -4204,7 +4204,7 @@ private void AfterTestEnumParametersDefaultImplementation(ITestEnumParametersApi /// /// /// - partial void AfterTestEnumParameters(ref bool suppressDefaultLog, ITestEnumParametersApiResponse apiResponseLocalVar, Option enumFormString, Option> enumFormStringArray, Option enumHeaderString, Option> enumHeaderStringArray, Option enumQueryDouble, Option enumQueryInteger, Option enumQueryString, Option> enumQueryStringArray); + public virtual void AfterTestEnumParameters(ref bool suppressDefaultLog, ITestEnumParametersApiResponse apiResponseLocalVar, Option enumFormString, Option> enumFormStringArray, Option enumHeaderString, Option> enumHeaderStringArray, Option enumQueryDouble, Option enumQueryInteger, Option enumQueryString, Option> enumQueryStringArray) { } /// /// Logs exceptions that occur while retrieving the server response @@ -4243,7 +4243,7 @@ private void OnErrorTestEnumParametersDefaultImplementation(Exception exceptionL /// /// /// - 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); + public virtual 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 @@ -4400,7 +4400,7 @@ public TestEnumParametersApiResponse(ILogger logg OnCreated(httpRequestMessage, httpResponseMessage); } - partial void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage); + public virtual void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage) { } /// /// Returns true if the response is 400 BadRequest @@ -4422,10 +4422,10 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } - partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); + public virtual void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode) { } } - partial void FormatTestGroupParameters(ref bool requiredBooleanGroup, ref long requiredInt64Group, ref int requiredStringGroup, ref Option booleanGroup, ref Option int64Group, ref Option stringGroup); + public virtual void FormatTestGroupParameters(ref bool requiredBooleanGroup, ref long requiredInt64Group, ref int requiredStringGroup, ref Option booleanGroup, ref Option int64Group, ref Option stringGroup) { } /// /// Processes the server response @@ -4456,7 +4456,7 @@ private void AfterTestGroupParametersDefaultImplementation(ITestGroupParametersA /// /// /// - partial void AfterTestGroupParameters(ref bool suppressDefaultLog, ITestGroupParametersApiResponse apiResponseLocalVar, bool requiredBooleanGroup, long requiredInt64Group, int requiredStringGroup, Option booleanGroup, Option int64Group, Option stringGroup); + public virtual void AfterTestGroupParameters(ref bool suppressDefaultLog, ITestGroupParametersApiResponse apiResponseLocalVar, bool requiredBooleanGroup, long requiredInt64Group, int requiredStringGroup, Option booleanGroup, Option int64Group, Option stringGroup) { } /// /// Logs exceptions that occur while retrieving the server response @@ -4491,7 +4491,7 @@ private void OnErrorTestGroupParametersDefaultImplementation(Exception exception /// /// /// - partial void OnErrorTestGroupParameters(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, bool requiredBooleanGroup, long requiredInt64Group, int requiredStringGroup, Option booleanGroup, Option int64Group, Option stringGroup); + public virtual 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) @@ -4628,7 +4628,7 @@ public TestGroupParametersApiResponse(ILogger lo OnCreated(httpRequestMessage, httpResponseMessage); } - partial void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage); + public virtual void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage) { } /// /// Returns true if the response is 400 BadRequest @@ -4644,10 +4644,10 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } - partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); + public virtual void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode) { } } - partial void FormatTestInlineAdditionalProperties(Dictionary requestBody); + public virtual void FormatTestInlineAdditionalProperties(Dictionary requestBody) { } /// /// Validates the request parameters @@ -4679,7 +4679,7 @@ private void AfterTestInlineAdditionalPropertiesDefaultImplementation(ITestInlin /// /// /// - partial void AfterTestInlineAdditionalProperties(ref bool suppressDefaultLog, ITestInlineAdditionalPropertiesApiResponse apiResponseLocalVar, Dictionary requestBody); + public virtual void AfterTestInlineAdditionalProperties(ref bool suppressDefaultLog, ITestInlineAdditionalPropertiesApiResponse apiResponseLocalVar, Dictionary requestBody) { } /// /// Logs exceptions that occur while retrieving the server response @@ -4704,7 +4704,7 @@ private void OnErrorTestInlineAdditionalPropertiesDefaultImplementation(Exceptio /// /// /// - partial void OnErrorTestInlineAdditionalProperties(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, Dictionary requestBody); + public virtual void OnErrorTestInlineAdditionalProperties(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, Dictionary requestBody) { } /// /// test inline additionalProperties @@ -4817,7 +4817,7 @@ public TestInlineAdditionalPropertiesApiResponse(ILogger /// Returns true if the response is 200 Ok @@ -4833,10 +4833,10 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } - partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); + public virtual void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode) { } } - partial void FormatTestInlineFreeformAdditionalProperties(TestInlineFreeformAdditionalPropertiesRequest testInlineFreeformAdditionalPropertiesRequest); + public virtual void FormatTestInlineFreeformAdditionalProperties(TestInlineFreeformAdditionalPropertiesRequest testInlineFreeformAdditionalPropertiesRequest) { } /// /// Validates the request parameters @@ -4868,7 +4868,7 @@ private void AfterTestInlineFreeformAdditionalPropertiesDefaultImplementation(IT /// /// /// - partial void AfterTestInlineFreeformAdditionalProperties(ref bool suppressDefaultLog, ITestInlineFreeformAdditionalPropertiesApiResponse apiResponseLocalVar, TestInlineFreeformAdditionalPropertiesRequest testInlineFreeformAdditionalPropertiesRequest); + public virtual void AfterTestInlineFreeformAdditionalProperties(ref bool suppressDefaultLog, ITestInlineFreeformAdditionalPropertiesApiResponse apiResponseLocalVar, TestInlineFreeformAdditionalPropertiesRequest testInlineFreeformAdditionalPropertiesRequest) { } /// /// Logs exceptions that occur while retrieving the server response @@ -4893,7 +4893,7 @@ private void OnErrorTestInlineFreeformAdditionalPropertiesDefaultImplementation( /// /// /// - partial void OnErrorTestInlineFreeformAdditionalProperties(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, TestInlineFreeformAdditionalPropertiesRequest testInlineFreeformAdditionalPropertiesRequest); + public virtual void OnErrorTestInlineFreeformAdditionalProperties(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, TestInlineFreeformAdditionalPropertiesRequest testInlineFreeformAdditionalPropertiesRequest) { } /// /// test inline free-form additionalProperties @@ -5006,7 +5006,7 @@ public TestInlineFreeformAdditionalPropertiesApiResponse(ILogger /// Returns true if the response is 200 Ok @@ -5022,10 +5022,10 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } - partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); + public virtual void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode) { } } - partial void FormatTestJsonFormData(ref string param, ref string param2); + public virtual void FormatTestJsonFormData(ref string param, ref string param2) { } /// /// Validates the request parameters @@ -5063,7 +5063,7 @@ private void AfterTestJsonFormDataDefaultImplementation(ITestJsonFormDataApiResp /// /// /// - partial void AfterTestJsonFormData(ref bool suppressDefaultLog, ITestJsonFormDataApiResponse apiResponseLocalVar, string param, string param2); + public virtual void AfterTestJsonFormData(ref bool suppressDefaultLog, ITestJsonFormDataApiResponse apiResponseLocalVar, string param, string param2) { } /// /// Logs exceptions that occur while retrieving the server response @@ -5090,7 +5090,7 @@ private void OnErrorTestJsonFormDataDefaultImplementation(Exception exceptionLoc /// /// /// - partial void OnErrorTestJsonFormData(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, string param, string param2); + public virtual void OnErrorTestJsonFormData(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, string param, string param2) { } /// /// test json serialization of form data @@ -5213,7 +5213,7 @@ public TestJsonFormDataApiResponse(ILogger logger, OnCreated(httpRequestMessage, httpResponseMessage); } - partial void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage); + public virtual void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage) { } /// /// Returns true if the response is 200 Ok @@ -5229,10 +5229,10 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } - partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); + public virtual void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode) { } } - partial void FormatTestQueryParameterCollectionFormat(List context, List http, List ioutil, List pipe, ref string requiredNotNullable, List url, ref Option notRequiredNotNullable, ref Option notRequiredNullable, ref string? requiredNullable); + public virtual void FormatTestQueryParameterCollectionFormat(List context, List http, List ioutil, List pipe, ref string requiredNotNullable, List url, ref Option notRequiredNotNullable, ref Option notRequiredNullable, ref string? requiredNullable) { } /// /// Validates the request parameters @@ -5304,7 +5304,7 @@ private void AfterTestQueryParameterCollectionFormatDefaultImplementation(ITestQ /// /// /// - partial void AfterTestQueryParameterCollectionFormat(ref bool suppressDefaultLog, ITestQueryParameterCollectionFormatApiResponse apiResponseLocalVar, List context, List http, List ioutil, List pipe, string requiredNotNullable, List url, Option notRequiredNotNullable, Option notRequiredNullable, string? requiredNullable); + public virtual void AfterTestQueryParameterCollectionFormat(ref bool suppressDefaultLog, ITestQueryParameterCollectionFormatApiResponse apiResponseLocalVar, List context, List http, List ioutil, List pipe, string requiredNotNullable, List url, Option notRequiredNotNullable, Option notRequiredNullable, string? requiredNullable) { } /// /// Logs exceptions that occur while retrieving the server response @@ -5345,7 +5345,7 @@ private void OnErrorTestQueryParameterCollectionFormatDefaultImplementation(Exce /// /// /// - 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); + public virtual 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 @@ -5479,7 +5479,7 @@ public TestQueryParameterCollectionFormatApiResponse(ILogger /// Returns true if the response is 200 Ok @@ -5495,10 +5495,10 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } - partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); + public virtual void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode) { } } - partial void FormatTestStringMapReference(Dictionary requestBody); + public virtual void FormatTestStringMapReference(Dictionary requestBody) { } /// /// Validates the request parameters @@ -5530,7 +5530,7 @@ private void AfterTestStringMapReferenceDefaultImplementation(ITestStringMapRefe /// /// /// - partial void AfterTestStringMapReference(ref bool suppressDefaultLog, ITestStringMapReferenceApiResponse apiResponseLocalVar, Dictionary requestBody); + public virtual void AfterTestStringMapReference(ref bool suppressDefaultLog, ITestStringMapReferenceApiResponse apiResponseLocalVar, Dictionary requestBody) { } /// /// Logs exceptions that occur while retrieving the server response @@ -5555,7 +5555,7 @@ private void OnErrorTestStringMapReferenceDefaultImplementation(Exception except /// /// /// - partial void OnErrorTestStringMapReference(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, Dictionary requestBody); + public virtual void OnErrorTestStringMapReference(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, Dictionary requestBody) { } /// /// test referenced string map @@ -5668,7 +5668,7 @@ public TestStringMapReferenceApiResponse(ILogger /// Returns true if the response is 200 Ok @@ -5684,7 +5684,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } - partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); + public virtual void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode) { } } } } 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 d70af83c9115..81e7af381acb 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 @@ -172,7 +172,7 @@ public FakeClassnameTags123Api(ILogger logger, ILoggerF OauthTokenProvider = oauthTokenProvider; } - partial void FormatTestClassname(ModelClient modelClient); + public virtual void FormatTestClassname(ModelClient modelClient) { } /// /// Validates the request parameters @@ -204,7 +204,7 @@ private void AfterTestClassnameDefaultImplementation(ITestClassnameApiResponse a /// /// /// - partial void AfterTestClassname(ref bool suppressDefaultLog, ITestClassnameApiResponse apiResponseLocalVar, ModelClient modelClient); + public virtual void AfterTestClassname(ref bool suppressDefaultLog, ITestClassnameApiResponse apiResponseLocalVar, ModelClient modelClient) { } /// /// Logs exceptions that occur while retrieving the server response @@ -229,7 +229,7 @@ private void OnErrorTestClassnameDefaultImplementation(Exception exceptionLocalV /// /// /// - partial void OnErrorTestClassname(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, ModelClient modelClient); + public virtual 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 @@ -364,7 +364,7 @@ public TestClassnameApiResponse(ILogger logger, System OnCreated(httpRequestMessage, httpResponseMessage); } - partial void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage); + public virtual void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage) { } /// /// Returns true if the response is 200 Ok @@ -412,7 +412,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } - partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); + public virtual void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode) { } } } } 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 1d959b49106f..4403879bebd1 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 @@ -676,7 +676,7 @@ public PetApi(ILogger logger, ILoggerFactory loggerFactory, HttpClient h OauthTokenProvider = oauthTokenProvider; } - partial void FormatAddPet(Pet pet); + public virtual void FormatAddPet(Pet pet) { } /// /// Validates the request parameters @@ -708,7 +708,7 @@ private void AfterAddPetDefaultImplementation(IAddPetApiResponse apiResponseLoca /// /// /// - partial void AfterAddPet(ref bool suppressDefaultLog, IAddPetApiResponse apiResponseLocalVar, Pet pet); + public virtual void AfterAddPet(ref bool suppressDefaultLog, IAddPetApiResponse apiResponseLocalVar, Pet pet) { } /// /// Logs exceptions that occur while retrieving the server response @@ -733,7 +733,7 @@ private void OnErrorAddPetDefaultImplementation(Exception exceptionLocalVar, str /// /// /// - partial void OnErrorAddPet(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, Pet pet); + public virtual void OnErrorAddPet(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, Pet pet) { } /// /// Add a new pet to the store @@ -868,7 +868,7 @@ public AddPetApiResponse(ILogger logger, System.Net.Http.Http OnCreated(httpRequestMessage, httpResponseMessage); } - partial void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage); + public virtual void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage) { } /// /// Returns true if the response is 405 MethodNotAllowed @@ -884,10 +884,10 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } - partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); + public virtual void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode) { } } - partial void FormatDeletePet(ref long petId, ref Option apiKey); + public virtual void FormatDeletePet(ref long petId, ref Option apiKey) { } /// /// Validates the request parameters @@ -921,7 +921,7 @@ private void AfterDeletePetDefaultImplementation(IDeletePetApiResponse apiRespon /// /// /// - partial void AfterDeletePet(ref bool suppressDefaultLog, IDeletePetApiResponse apiResponseLocalVar, long petId, Option apiKey); + public virtual void AfterDeletePet(ref bool suppressDefaultLog, IDeletePetApiResponse apiResponseLocalVar, long petId, Option apiKey) { } /// /// Logs exceptions that occur while retrieving the server response @@ -948,7 +948,7 @@ private void OnErrorDeletePetDefaultImplementation(Exception exceptionLocalVar, /// /// /// - partial void OnErrorDeletePet(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, long petId, Option apiKey); + public virtual void OnErrorDeletePet(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, long petId, Option apiKey) { } /// /// Deletes a pet @@ -1065,7 +1065,7 @@ public DeletePetApiResponse(ILogger logger, System.Net.Htt OnCreated(httpRequestMessage, httpResponseMessage); } - partial void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage); + public virtual void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage) { } /// /// Returns true if the response is 400 BadRequest @@ -1081,10 +1081,10 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } - partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); + public virtual void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode) { } } - partial void FormatFindPetsByStatus(List status); + public virtual void FormatFindPetsByStatus(List status) { } /// /// Validates the request parameters @@ -1116,7 +1116,7 @@ private void AfterFindPetsByStatusDefaultImplementation(IFindPetsByStatusApiResp /// /// /// - partial void AfterFindPetsByStatus(ref bool suppressDefaultLog, IFindPetsByStatusApiResponse apiResponseLocalVar, List status); + public virtual void AfterFindPetsByStatus(ref bool suppressDefaultLog, IFindPetsByStatusApiResponse apiResponseLocalVar, List status) { } /// /// Logs exceptions that occur while retrieving the server response @@ -1141,7 +1141,7 @@ private void OnErrorFindPetsByStatusDefaultImplementation(Exception exceptionLoc /// /// /// - partial void OnErrorFindPetsByStatus(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, List status); + public virtual 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 @@ -1278,7 +1278,7 @@ public FindPetsByStatusApiResponse(ILogger logger, OnCreated(httpRequestMessage, httpResponseMessage); } - partial void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage); + public virtual void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage) { } /// /// Returns true if the response is 200 Ok @@ -1358,10 +1358,10 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } - partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); + public virtual void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode) { } } - partial void FormatFindPetsByTags(List tags); + public virtual void FormatFindPetsByTags(List tags) { } /// /// Validates the request parameters @@ -1393,7 +1393,7 @@ private void AfterFindPetsByTagsDefaultImplementation(IFindPetsByTagsApiResponse /// /// /// - partial void AfterFindPetsByTags(ref bool suppressDefaultLog, IFindPetsByTagsApiResponse apiResponseLocalVar, List tags); + public virtual void AfterFindPetsByTags(ref bool suppressDefaultLog, IFindPetsByTagsApiResponse apiResponseLocalVar, List tags) { } /// /// Logs exceptions that occur while retrieving the server response @@ -1418,7 +1418,7 @@ private void OnErrorFindPetsByTagsDefaultImplementation(Exception exceptionLocal /// /// /// - partial void OnErrorFindPetsByTags(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, List tags); + public virtual 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. @@ -1555,7 +1555,7 @@ public FindPetsByTagsApiResponse(ILogger logger, Syst OnCreated(httpRequestMessage, httpResponseMessage); } - partial void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage); + public virtual void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage) { } /// /// Returns true if the response is 200 Ok @@ -1609,10 +1609,10 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } - partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); + public virtual void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode) { } } - partial void FormatGetPetById(ref long petId); + public virtual void FormatGetPetById(ref long petId) { } /// /// Processes the server response @@ -1633,7 +1633,7 @@ private void AfterGetPetByIdDefaultImplementation(IGetPetByIdApiResponse apiResp /// /// /// - partial void AfterGetPetById(ref bool suppressDefaultLog, IGetPetByIdApiResponse apiResponseLocalVar, long petId); + public virtual void AfterGetPetById(ref bool suppressDefaultLog, IGetPetByIdApiResponse apiResponseLocalVar, long petId) { } /// /// Logs exceptions that occur while retrieving the server response @@ -1658,7 +1658,7 @@ private void OnErrorGetPetByIdDefaultImplementation(Exception exceptionLocalVar, /// /// /// - partial void OnErrorGetPetById(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, long petId); + public virtual void OnErrorGetPetById(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, long petId) { } /// /// Find pet by ID Returns a single pet @@ -1784,7 +1784,7 @@ public GetPetByIdApiResponse(ILogger logger, System.Net.H OnCreated(httpRequestMessage, httpResponseMessage); } - partial void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage); + public virtual void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage) { } /// /// Returns true if the response is 200 Ok @@ -1844,10 +1844,10 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } - partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); + public virtual void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode) { } } - partial void FormatUpdatePet(Pet pet); + public virtual void FormatUpdatePet(Pet pet) { } /// /// Validates the request parameters @@ -1879,7 +1879,7 @@ private void AfterUpdatePetDefaultImplementation(IUpdatePetApiResponse apiRespon /// /// /// - partial void AfterUpdatePet(ref bool suppressDefaultLog, IUpdatePetApiResponse apiResponseLocalVar, Pet pet); + public virtual void AfterUpdatePet(ref bool suppressDefaultLog, IUpdatePetApiResponse apiResponseLocalVar, Pet pet) { } /// /// Logs exceptions that occur while retrieving the server response @@ -1904,7 +1904,7 @@ private void OnErrorUpdatePetDefaultImplementation(Exception exceptionLocalVar, /// /// /// - partial void OnErrorUpdatePet(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, Pet pet); + public virtual void OnErrorUpdatePet(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, Pet pet) { } /// /// Update an existing pet @@ -2039,7 +2039,7 @@ public UpdatePetApiResponse(ILogger logger, System.Net.Htt OnCreated(httpRequestMessage, httpResponseMessage); } - partial void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage); + public virtual void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage) { } /// /// Returns true if the response is 400 BadRequest @@ -2067,10 +2067,10 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } - partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); + public virtual void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode) { } } - partial void FormatUpdatePetWithForm(ref long petId, ref Option name, ref Option status); + public virtual void FormatUpdatePetWithForm(ref long petId, ref Option name, ref Option status) { } /// /// Validates the request parameters @@ -2110,7 +2110,7 @@ private void AfterUpdatePetWithFormDefaultImplementation(IUpdatePetWithFormApiRe /// /// /// - partial void AfterUpdatePetWithForm(ref bool suppressDefaultLog, IUpdatePetWithFormApiResponse apiResponseLocalVar, long petId, Option name, Option status); + public virtual void AfterUpdatePetWithForm(ref bool suppressDefaultLog, IUpdatePetWithFormApiResponse apiResponseLocalVar, long petId, Option name, Option status) { } /// /// Logs exceptions that occur while retrieving the server response @@ -2139,7 +2139,7 @@ private void OnErrorUpdatePetWithFormDefaultImplementation(Exception exceptionLo /// /// /// - partial void OnErrorUpdatePetWithForm(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, long petId, Option name, Option status); + public virtual 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 @@ -2276,7 +2276,7 @@ public UpdatePetWithFormApiResponse(ILogger logger OnCreated(httpRequestMessage, httpResponseMessage); } - partial void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage); + public virtual void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage) { } /// /// Returns true if the response is 405 MethodNotAllowed @@ -2292,10 +2292,10 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } - partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); + public virtual void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode) { } } - partial void FormatUploadFile(ref long petId, ref Option additionalMetadata, ref Option file); + public virtual void FormatUploadFile(ref long petId, ref Option additionalMetadata, ref Option file) { } /// /// Validates the request parameters @@ -2335,7 +2335,7 @@ private void AfterUploadFileDefaultImplementation(IUploadFileApiResponse apiResp /// /// /// - partial void AfterUploadFile(ref bool suppressDefaultLog, IUploadFileApiResponse apiResponseLocalVar, long petId, Option additionalMetadata, Option file); + public virtual void AfterUploadFile(ref bool suppressDefaultLog, IUploadFileApiResponse apiResponseLocalVar, long petId, Option additionalMetadata, Option file) { } /// /// Logs exceptions that occur while retrieving the server response @@ -2364,7 +2364,7 @@ private void OnErrorUploadFileDefaultImplementation(Exception exceptionLocalVar, /// /// /// - partial void OnErrorUploadFile(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, long petId, Option additionalMetadata, Option file); + public virtual void OnErrorUploadFile(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, long petId, Option additionalMetadata, Option file) { } /// /// uploads an image @@ -2510,7 +2510,7 @@ public UploadFileApiResponse(ILogger logger, System.Net.H OnCreated(httpRequestMessage, httpResponseMessage); } - partial void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage); + public virtual void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage) { } /// /// Returns true if the response is 200 Ok @@ -2558,10 +2558,10 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } - partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); + public virtual void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode) { } } - partial void FormatUploadFileWithRequiredFile(ref long petId, ref System.IO.Stream requiredFile, ref Option additionalMetadata); + public virtual void FormatUploadFileWithRequiredFile(ref long petId, ref System.IO.Stream requiredFile, ref Option additionalMetadata) { } /// /// Validates the request parameters @@ -2601,7 +2601,7 @@ private void AfterUploadFileWithRequiredFileDefaultImplementation(IUploadFileWit /// /// /// - partial void AfterUploadFileWithRequiredFile(ref bool suppressDefaultLog, IUploadFileWithRequiredFileApiResponse apiResponseLocalVar, long petId, System.IO.Stream requiredFile, Option additionalMetadata); + public virtual void AfterUploadFileWithRequiredFile(ref bool suppressDefaultLog, IUploadFileWithRequiredFileApiResponse apiResponseLocalVar, long petId, System.IO.Stream requiredFile, Option additionalMetadata) { } /// /// Logs exceptions that occur while retrieving the server response @@ -2630,7 +2630,7 @@ private void OnErrorUploadFileWithRequiredFileDefaultImplementation(Exception ex /// /// /// - partial void OnErrorUploadFileWithRequiredFile(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, long petId, System.IO.Stream requiredFile, Option additionalMetadata); + public virtual void OnErrorUploadFileWithRequiredFile(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, long petId, System.IO.Stream requiredFile, Option additionalMetadata) { } /// /// uploads an image (required) @@ -2776,7 +2776,7 @@ public UploadFileWithRequiredFileApiResponse(ILogger /// Returns true if the response is 200 Ok @@ -2824,7 +2824,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } - partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); + public virtual void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode) { } } } } 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 1677ff9901e2..cf413852420c 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 @@ -359,7 +359,7 @@ public StoreApi(ILogger logger, ILoggerFactory loggerFactory, HttpClie OauthTokenProvider = oauthTokenProvider; } - partial void FormatDeleteOrder(ref string orderId); + public virtual void FormatDeleteOrder(ref string orderId) { } /// /// Validates the request parameters @@ -391,7 +391,7 @@ private void AfterDeleteOrderDefaultImplementation(IDeleteOrderApiResponse apiRe /// /// /// - partial void AfterDeleteOrder(ref bool suppressDefaultLog, IDeleteOrderApiResponse apiResponseLocalVar, string orderId); + public virtual void AfterDeleteOrder(ref bool suppressDefaultLog, IDeleteOrderApiResponse apiResponseLocalVar, string orderId) { } /// /// Logs exceptions that occur while retrieving the server response @@ -416,7 +416,7 @@ private void OnErrorDeleteOrderDefaultImplementation(Exception exceptionLocalVar /// /// /// - partial void OnErrorDeleteOrder(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, string orderId); + public virtual 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 @@ -517,7 +517,7 @@ public DeleteOrderApiResponse(ILogger logger, System.Net OnCreated(httpRequestMessage, httpResponseMessage); } - partial void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage); + public virtual void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage) { } /// /// Returns true if the response is 400 BadRequest @@ -539,7 +539,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } - partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); + public virtual void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode) { } } /// @@ -559,7 +559,7 @@ private void AfterGetInventoryDefaultImplementation(IGetInventoryApiResponse api /// /// /// - partial void AfterGetInventory(ref bool suppressDefaultLog, IGetInventoryApiResponse apiResponseLocalVar); + public virtual void AfterGetInventory(ref bool suppressDefaultLog, IGetInventoryApiResponse apiResponseLocalVar) { } /// /// Logs exceptions that occur while retrieving the server response @@ -582,7 +582,7 @@ private void OnErrorGetInventoryDefaultImplementation(Exception exceptionLocalVa /// /// /// - partial void OnErrorGetInventory(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar); + public virtual void OnErrorGetInventory(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar) { } /// /// Returns pet inventories by status Returns a map of status codes to quantities @@ -694,7 +694,7 @@ public GetInventoryApiResponse(ILogger logger, System.N OnCreated(httpRequestMessage, httpResponseMessage); } - partial void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage); + public virtual void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage) { } /// /// Returns true if the response is 200 Ok @@ -742,10 +742,10 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } - partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); + public virtual void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode) { } } - partial void FormatGetOrderById(ref long orderId); + public virtual void FormatGetOrderById(ref long orderId) { } /// /// Processes the server response @@ -766,7 +766,7 @@ private void AfterGetOrderByIdDefaultImplementation(IGetOrderByIdApiResponse api /// /// /// - partial void AfterGetOrderById(ref bool suppressDefaultLog, IGetOrderByIdApiResponse apiResponseLocalVar, long orderId); + public virtual void AfterGetOrderById(ref bool suppressDefaultLog, IGetOrderByIdApiResponse apiResponseLocalVar, long orderId) { } /// /// Logs exceptions that occur while retrieving the server response @@ -791,7 +791,7 @@ private void OnErrorGetOrderByIdDefaultImplementation(Exception exceptionLocalVa /// /// /// - partial void OnErrorGetOrderById(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, long orderId); + public virtual 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 @@ -900,7 +900,7 @@ public GetOrderByIdApiResponse(ILogger logger, System.N OnCreated(httpRequestMessage, httpResponseMessage); } - partial void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage); + public virtual void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage) { } /// /// Returns true if the response is 200 Ok @@ -960,10 +960,10 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } - partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); + public virtual void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode) { } } - partial void FormatPlaceOrder(Order order); + public virtual void FormatPlaceOrder(Order order) { } /// /// Validates the request parameters @@ -995,7 +995,7 @@ private void AfterPlaceOrderDefaultImplementation(IPlaceOrderApiResponse apiResp /// /// /// - partial void AfterPlaceOrder(ref bool suppressDefaultLog, IPlaceOrderApiResponse apiResponseLocalVar, Order order); + public virtual void AfterPlaceOrder(ref bool suppressDefaultLog, IPlaceOrderApiResponse apiResponseLocalVar, Order order) { } /// /// Logs exceptions that occur while retrieving the server response @@ -1020,7 +1020,7 @@ private void OnErrorPlaceOrderDefaultImplementation(Exception exceptionLocalVar, /// /// /// - partial void OnErrorPlaceOrder(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, Order order); + public virtual void OnErrorPlaceOrder(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, Order order) { } /// /// Place an order for a pet @@ -1143,7 +1143,7 @@ public PlaceOrderApiResponse(ILogger logger, System.Net.H OnCreated(httpRequestMessage, httpResponseMessage); } - partial void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage); + public virtual void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage) { } /// /// Returns true if the response is 200 Ok @@ -1197,7 +1197,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } - partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); + public virtual void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode) { } } } } 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 0352814ae67d..cb37b66ad049 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 @@ -609,7 +609,7 @@ public UserApi(ILogger logger, ILoggerFactory loggerFactory, HttpClient CookieContainer = cookieContainer; } - partial void FormatCreateUser(User user); + public virtual void FormatCreateUser(User user) { } /// /// Validates the request parameters @@ -641,7 +641,7 @@ private void AfterCreateUserDefaultImplementation(ICreateUserApiResponse apiResp /// /// /// - partial void AfterCreateUser(ref bool suppressDefaultLog, ICreateUserApiResponse apiResponseLocalVar, User user); + public virtual void AfterCreateUser(ref bool suppressDefaultLog, ICreateUserApiResponse apiResponseLocalVar, User user) { } /// /// Logs exceptions that occur while retrieving the server response @@ -666,7 +666,7 @@ private void OnErrorCreateUserDefaultImplementation(Exception exceptionLocalVar, /// /// /// - partial void OnErrorCreateUser(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, User user); + public virtual 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. @@ -779,7 +779,7 @@ public CreateUserApiResponse(ILogger logger, System.Net.H OnCreated(httpRequestMessage, httpResponseMessage); } - partial void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage); + public virtual void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage) { } /// /// Returns true if the response is the default response type @@ -795,10 +795,10 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } - partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); + public virtual void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode) { } } - partial void FormatCreateUsersWithArrayInput(List user); + public virtual void FormatCreateUsersWithArrayInput(List user) { } /// /// Validates the request parameters @@ -830,7 +830,7 @@ private void AfterCreateUsersWithArrayInputDefaultImplementation(ICreateUsersWit /// /// /// - partial void AfterCreateUsersWithArrayInput(ref bool suppressDefaultLog, ICreateUsersWithArrayInputApiResponse apiResponseLocalVar, List user); + public virtual void AfterCreateUsersWithArrayInput(ref bool suppressDefaultLog, ICreateUsersWithArrayInputApiResponse apiResponseLocalVar, List user) { } /// /// Logs exceptions that occur while retrieving the server response @@ -855,7 +855,7 @@ private void OnErrorCreateUsersWithArrayInputDefaultImplementation(Exception exc /// /// /// - partial void OnErrorCreateUsersWithArrayInput(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, List user); + public virtual void OnErrorCreateUsersWithArrayInput(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, List user) { } /// /// Creates list of users with given input array @@ -968,7 +968,7 @@ public CreateUsersWithArrayInputApiResponse(ILogger /// Returns true if the response is the default response type @@ -984,10 +984,10 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } - partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); + public virtual void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode) { } } - partial void FormatCreateUsersWithListInput(List user); + public virtual void FormatCreateUsersWithListInput(List user) { } /// /// Validates the request parameters @@ -1019,7 +1019,7 @@ private void AfterCreateUsersWithListInputDefaultImplementation(ICreateUsersWith /// /// /// - partial void AfterCreateUsersWithListInput(ref bool suppressDefaultLog, ICreateUsersWithListInputApiResponse apiResponseLocalVar, List user); + public virtual void AfterCreateUsersWithListInput(ref bool suppressDefaultLog, ICreateUsersWithListInputApiResponse apiResponseLocalVar, List user) { } /// /// Logs exceptions that occur while retrieving the server response @@ -1044,7 +1044,7 @@ private void OnErrorCreateUsersWithListInputDefaultImplementation(Exception exce /// /// /// - partial void OnErrorCreateUsersWithListInput(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, List user); + public virtual void OnErrorCreateUsersWithListInput(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, List user) { } /// /// Creates list of users with given input array @@ -1157,7 +1157,7 @@ public CreateUsersWithListInputApiResponse(ILogger /// Returns true if the response is the default response type @@ -1173,10 +1173,10 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } - partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); + public virtual void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode) { } } - partial void FormatDeleteUser(ref string username); + public virtual void FormatDeleteUser(ref string username) { } /// /// Validates the request parameters @@ -1208,7 +1208,7 @@ private void AfterDeleteUserDefaultImplementation(IDeleteUserApiResponse apiResp /// /// /// - partial void AfterDeleteUser(ref bool suppressDefaultLog, IDeleteUserApiResponse apiResponseLocalVar, string username); + public virtual void AfterDeleteUser(ref bool suppressDefaultLog, IDeleteUserApiResponse apiResponseLocalVar, string username) { } /// /// Logs exceptions that occur while retrieving the server response @@ -1233,7 +1233,7 @@ private void OnErrorDeleteUserDefaultImplementation(Exception exceptionLocalVar, /// /// /// - partial void OnErrorDeleteUser(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, string username); + public virtual 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. @@ -1334,7 +1334,7 @@ public DeleteUserApiResponse(ILogger logger, System.Net.H OnCreated(httpRequestMessage, httpResponseMessage); } - partial void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage); + public virtual void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage) { } /// /// Returns true if the response is 400 BadRequest @@ -1356,10 +1356,10 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } - partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); + public virtual void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode) { } } - partial void FormatGetUserByName(ref string username); + public virtual void FormatGetUserByName(ref string username) { } /// /// Validates the request parameters @@ -1391,7 +1391,7 @@ private void AfterGetUserByNameDefaultImplementation(IGetUserByNameApiResponse a /// /// /// - partial void AfterGetUserByName(ref bool suppressDefaultLog, IGetUserByNameApiResponse apiResponseLocalVar, string username); + public virtual void AfterGetUserByName(ref bool suppressDefaultLog, IGetUserByNameApiResponse apiResponseLocalVar, string username) { } /// /// Logs exceptions that occur while retrieving the server response @@ -1416,7 +1416,7 @@ private void OnErrorGetUserByNameDefaultImplementation(Exception exceptionLocalV /// /// /// - partial void OnErrorGetUserByName(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, string username); + public virtual void OnErrorGetUserByName(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, string username) { } /// /// Get user by user name @@ -1527,7 +1527,7 @@ public GetUserByNameApiResponse(ILogger logger, System OnCreated(httpRequestMessage, httpResponseMessage); } - partial void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage); + public virtual void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage) { } /// /// Returns true if the response is 200 Ok @@ -1631,10 +1631,10 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } - partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); + public virtual void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode) { } } - partial void FormatLoginUser(ref string password, ref string username); + public virtual void FormatLoginUser(ref string password, ref string username) { } /// /// Validates the request parameters @@ -1672,7 +1672,7 @@ private void AfterLoginUserDefaultImplementation(ILoginUserApiResponse apiRespon /// /// /// - partial void AfterLoginUser(ref bool suppressDefaultLog, ILoginUserApiResponse apiResponseLocalVar, string password, string username); + public virtual void AfterLoginUser(ref bool suppressDefaultLog, ILoginUserApiResponse apiResponseLocalVar, string password, string username) { } /// /// Logs exceptions that occur while retrieving the server response @@ -1699,7 +1699,7 @@ private void OnErrorLoginUserDefaultImplementation(Exception exceptionLocalVar, /// /// /// - partial void OnErrorLoginUser(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, string password, string username); + public virtual void OnErrorLoginUser(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, string password, string username) { } /// /// Logs user into the system @@ -1845,7 +1845,7 @@ public LoginUserApiResponse(ILogger logger, System.Net.Htt OnCreated(httpRequestMessage, httpResponseMessage); } - partial void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage); + public virtual void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage) { } /// /// Returns true if the response is 200 Ok @@ -1899,7 +1899,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } - partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); + public virtual void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode) { } } /// @@ -1919,7 +1919,7 @@ private void AfterLogoutUserDefaultImplementation(ILogoutUserApiResponse apiResp /// /// /// - partial void AfterLogoutUser(ref bool suppressDefaultLog, ILogoutUserApiResponse apiResponseLocalVar); + public virtual void AfterLogoutUser(ref bool suppressDefaultLog, ILogoutUserApiResponse apiResponseLocalVar) { } /// /// Logs exceptions that occur while retrieving the server response @@ -1942,7 +1942,7 @@ private void OnErrorLogoutUserDefaultImplementation(Exception exceptionLocalVar, /// /// /// - partial void OnErrorLogoutUser(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar); + public virtual void OnErrorLogoutUser(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar) { } /// /// Logs out current logged in user session @@ -2036,7 +2036,7 @@ public LogoutUserApiResponse(ILogger logger, System.Net.H OnCreated(httpRequestMessage, httpResponseMessage); } - partial void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage); + public virtual void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage) { } /// /// Returns true if the response is the default response type @@ -2052,10 +2052,10 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } - partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); + public virtual void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode) { } } - partial void FormatUpdateUser(User user, ref string username); + public virtual void FormatUpdateUser(User user, ref string username) { } /// /// Validates the request parameters @@ -2093,7 +2093,7 @@ private void AfterUpdateUserDefaultImplementation(IUpdateUserApiResponse apiResp /// /// /// - partial void AfterUpdateUser(ref bool suppressDefaultLog, IUpdateUserApiResponse apiResponseLocalVar, User user, string username); + public virtual void AfterUpdateUser(ref bool suppressDefaultLog, IUpdateUserApiResponse apiResponseLocalVar, User user, string username) { } /// /// Logs exceptions that occur while retrieving the server response @@ -2120,7 +2120,7 @@ private void OnErrorUpdateUserDefaultImplementation(Exception exceptionLocalVar, /// /// /// - partial void OnErrorUpdateUser(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, User user, string username); + public virtual 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. @@ -2236,7 +2236,7 @@ public UpdateUserApiResponse(ILogger logger, System.Net.H OnCreated(httpRequestMessage, httpResponseMessage); } - partial void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage); + public virtual void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage) { } /// /// Returns true if the response is 400 BadRequest @@ -2258,7 +2258,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } - partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); + public virtual void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode) { } } } } diff --git a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Client/ApiResponse`1.cs b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Client/ApiResponse`1.cs index 88b4a497394b..d16b6589868f 100644 --- a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Client/ApiResponse`1.cs +++ b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Client/ApiResponse`1.cs @@ -147,7 +147,7 @@ public ApiResponse(global::System.Net.Http.HttpRequestMessage httpRequestMessage OnCreated(httpRequestMessage, httpResponseMessage); } - partial void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage); + public virtual void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage) { } } /// diff --git a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/Activity.cs b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/Activity.cs index 87bc3578658c..90c708937525 100644 --- a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/Activity.cs +++ b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/Activity.cs @@ -42,7 +42,7 @@ public Activity(Option /// Used to track the state of ActivityOutputs diff --git a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/ActivityOutputElementRepresentation.cs b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/ActivityOutputElementRepresentation.cs index 546931023bb4..716008040b5f 100644 --- a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/ActivityOutputElementRepresentation.cs +++ b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/ActivityOutputElementRepresentation.cs @@ -44,7 +44,7 @@ public ActivityOutputElementRepresentation(Option prop1 = default, Opti OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Used to track the state of Prop1 diff --git a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/AdditionalPropertiesClass.cs b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/AdditionalPropertiesClass.cs index 20b8444349b0..c3df3c539399 100644 --- a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/AdditionalPropertiesClass.cs +++ b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/AdditionalPropertiesClass.cs @@ -56,7 +56,7 @@ public AdditionalPropertiesClass(Option anytype1 = default, Option /// Used to track the state of Anytype1 diff --git a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/Animal.cs b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/Animal.cs index 648b8fde8871..d36123450a1d 100644 --- a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/Animal.cs +++ b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/Animal.cs @@ -42,7 +42,7 @@ public Animal(Option color = default) OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// The discriminator diff --git a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/ApiResponse.cs b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/ApiResponse.cs index cd20dcc6f2a2..3ded90d2dae3 100644 --- a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/ApiResponse.cs +++ b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/ApiResponse.cs @@ -46,7 +46,7 @@ public ApiResponse(Option code = default, Option message = defaul OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Used to track the state of Code diff --git a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/Apple.cs b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/Apple.cs index 601dae95aa1a..6d67cbbd5025 100644 --- a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/Apple.cs +++ b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/Apple.cs @@ -46,7 +46,7 @@ public Apple(Option colorCode = default, Option cultivar = def OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Used to track the state of ColorCode diff --git a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/AppleReq.cs b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/AppleReq.cs index e4d0962e9ef4..c6a047a24865 100644 --- a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/AppleReq.cs +++ b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/AppleReq.cs @@ -44,7 +44,7 @@ public AppleReq(string cultivar, Option mealy = default) OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Gets or Sets Cultivar diff --git a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/ArrayOfArrayOfNumberOnly.cs b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/ArrayOfArrayOfNumberOnly.cs index 9b23c0166650..5f8b217b065e 100644 --- a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/ArrayOfArrayOfNumberOnly.cs +++ b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/ArrayOfArrayOfNumberOnly.cs @@ -42,7 +42,7 @@ public ArrayOfArrayOfNumberOnly(Option>?> arrayArrayNumber = OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Used to track the state of ArrayArrayNumber diff --git a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/ArrayOfNumberOnly.cs b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/ArrayOfNumberOnly.cs index cfe30e6ce660..326472adc73e 100644 --- a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/ArrayOfNumberOnly.cs +++ b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/ArrayOfNumberOnly.cs @@ -42,7 +42,7 @@ public ArrayOfNumberOnly(Option?> arrayNumber = default) OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Used to track the state of ArrayNumber diff --git a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/ArrayTest.cs b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/ArrayTest.cs index 0899aecaee69..5be7716f1405 100644 --- a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/ArrayTest.cs +++ b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/ArrayTest.cs @@ -46,7 +46,7 @@ public ArrayTest(Option>?> arrayArrayOfInteger = default, Option OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Used to track the state of ArrayArrayOfInteger diff --git a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/Banana.cs b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/Banana.cs index 308d4078b7f3..8824eac5a1f8 100644 --- a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/Banana.cs +++ b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/Banana.cs @@ -42,7 +42,7 @@ public Banana(Option lengthCm = default) OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Used to track the state of LengthCm diff --git a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/BananaReq.cs b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/BananaReq.cs index 46e11565b533..fea2acec93cf 100644 --- a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/BananaReq.cs +++ b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/BananaReq.cs @@ -44,7 +44,7 @@ public BananaReq(decimal lengthCm, Option sweet = default) OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Gets or Sets LengthCm diff --git a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/BasquePig.cs b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/BasquePig.cs index 7eaeac5cde68..97a45b00742d 100644 --- a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/BasquePig.cs +++ b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/BasquePig.cs @@ -42,7 +42,7 @@ public BasquePig(string className) OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Gets or Sets ClassName diff --git a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/Capitalization.cs b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/Capitalization.cs index 133845a991f0..fd91f449c884 100644 --- a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/Capitalization.cs +++ b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/Capitalization.cs @@ -52,7 +52,7 @@ public Capitalization(Option aTTNAME = default, Option capital OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Used to track the state of ATT_NAME diff --git a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/Cat.cs b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/Cat.cs index f6a4492730f4..ed09f1cf1733 100644 --- a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/Cat.cs +++ b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/Cat.cs @@ -43,7 +43,7 @@ public Cat(Option color = default, Option declawed = default) : OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// The discriminator diff --git a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/Category.cs b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/Category.cs index 96854b6b0e4f..5c25f7c22c11 100644 --- a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/Category.cs +++ b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/Category.cs @@ -44,7 +44,7 @@ public Category(Option id = default, string name = @"default-name") OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Used to track the state of Id diff --git a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/ChildCat.cs b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/ChildCat.cs index 35e299d05c18..ae2970158adf 100644 --- a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/ChildCat.cs +++ b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/ChildCat.cs @@ -42,7 +42,7 @@ public ChildCat(Option name = default) : base() OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Defines PetType diff --git a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/ClassModel.cs b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/ClassModel.cs index 5a199576ee29..d5470d1152f6 100644 --- a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/ClassModel.cs +++ b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/ClassModel.cs @@ -42,7 +42,7 @@ public ClassModel(Option @class = default) OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Used to track the state of Class diff --git a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/ComplexQuadrilateral.cs b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/ComplexQuadrilateral.cs index 018f49af861f..c747fe6ab793 100644 --- a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/ComplexQuadrilateral.cs +++ b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/ComplexQuadrilateral.cs @@ -44,7 +44,7 @@ public ComplexQuadrilateral(string quadrilateralType, string shapeType) OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Gets or Sets QuadrilateralType diff --git a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/DanishPig.cs b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/DanishPig.cs index c0042b4d8843..0fa31c7f3fb0 100644 --- a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/DanishPig.cs +++ b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/DanishPig.cs @@ -42,7 +42,7 @@ public DanishPig(string className) OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Gets or Sets ClassName diff --git a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/DateOnlyClass.cs b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/DateOnlyClass.cs index a84805aa8011..57c678795b7d 100644 --- a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/DateOnlyClass.cs +++ b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/DateOnlyClass.cs @@ -42,7 +42,7 @@ public DateOnlyClass(Option dateOnlyProperty = default) OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Used to track the state of DateOnlyProperty diff --git a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/DeprecatedObject.cs b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/DeprecatedObject.cs index 68e0836b632f..41b70978a215 100644 --- a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/DeprecatedObject.cs +++ b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/DeprecatedObject.cs @@ -42,7 +42,7 @@ public DeprecatedObject(Option name = default) OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Used to track the state of Name diff --git a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/Dog.cs b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/Dog.cs index f09923475b0d..65100955e4e3 100644 --- a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/Dog.cs +++ b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/Dog.cs @@ -43,7 +43,7 @@ public Dog(Option breed = default, Option color = default) : b OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// The discriminator diff --git a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/Drawing.cs b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/Drawing.cs index 837b5ef56bf3..921de4331dca 100644 --- a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/Drawing.cs +++ b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/Drawing.cs @@ -48,7 +48,7 @@ public Drawing(Option mainShape = default, Option nullab OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Used to track the state of MainShape diff --git a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/EnumArrays.cs b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/EnumArrays.cs index 83efec82813d..970d33cbb742 100644 --- a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/EnumArrays.cs +++ b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/EnumArrays.cs @@ -44,7 +44,7 @@ public EnumArrays(Option?> arrayEnum = default, O OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Defines ArrayEnum diff --git a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/EnumTest.cs b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/EnumTest.cs index 204a7a95d7e3..aed3d92c6df7 100644 --- a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/EnumTest.cs +++ b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/EnumTest.cs @@ -58,7 +58,7 @@ public EnumTest(EnumStringRequiredEnum enumStringRequired, Option /// Defines EnumStringRequired diff --git a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/EquilateralTriangle.cs b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/EquilateralTriangle.cs index 12983d68a09f..a1d5294074af 100644 --- a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/EquilateralTriangle.cs +++ b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/EquilateralTriangle.cs @@ -44,7 +44,7 @@ public EquilateralTriangle(string shapeType, string triangleType) OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Gets or Sets ShapeType diff --git a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/File.cs b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/File.cs index dab2e4e27b36..8cc04aa3e365 100644 --- a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/File.cs +++ b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/File.cs @@ -42,7 +42,7 @@ public File(Option sourceURI = default) OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Used to track the state of SourceURI diff --git a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/FileSchemaTestClass.cs b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/FileSchemaTestClass.cs index 7b9bfd4fbeb6..ebe981fba0c0 100644 --- a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/FileSchemaTestClass.cs +++ b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/FileSchemaTestClass.cs @@ -44,7 +44,7 @@ public FileSchemaTestClass(Option file = default, Option?> fil OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Used to track the state of File diff --git a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/Foo.cs b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/Foo.cs index b8128f4c3e45..1a3a40bb114b 100644 --- a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/Foo.cs +++ b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/Foo.cs @@ -42,7 +42,7 @@ public Foo(Option bar = default) OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Used to track the state of Bar diff --git a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/FooGetDefaultResponse.cs b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/FooGetDefaultResponse.cs index 3c5e2512bb04..0a640a42de9b 100644 --- a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/FooGetDefaultResponse.cs +++ b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/FooGetDefaultResponse.cs @@ -42,7 +42,7 @@ public FooGetDefaultResponse(Option @string = default) OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Used to track the state of String diff --git a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/FormatTest.cs b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/FormatTest.cs index 5244065820ea..d0289c627437 100644 --- a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/FormatTest.cs +++ b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/FormatTest.cs @@ -88,7 +88,7 @@ public FormatTest(byte[] @byte, DateOnly date, decimal number, string password, OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Gets or Sets Byte diff --git a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/Fruit.cs b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/Fruit.cs index eb12679ed27d..037b6af791ce 100644 --- a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/Fruit.cs +++ b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/Fruit.cs @@ -55,7 +55,7 @@ public Fruit(Banana banana, Option color = default) OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Gets or Sets Apple diff --git a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/FruitReq.cs b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/FruitReq.cs index 357be4388447..c4c55221cc1f 100644 --- a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/FruitReq.cs +++ b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/FruitReq.cs @@ -51,7 +51,7 @@ public FruitReq(BananaReq bananaReq) OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Gets or Sets AppleReq diff --git a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/GmFruit.cs b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/GmFruit.cs index 9be524db707f..ae64a2bd7351 100644 --- a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/GmFruit.cs +++ b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/GmFruit.cs @@ -45,7 +45,7 @@ public GmFruit(Option apple, Option banana, Option col OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Used to track the state of Apple diff --git a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/GrandparentAnimal.cs b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/GrandparentAnimal.cs index 4cefd4ca6216..a8d0570559d4 100644 --- a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/GrandparentAnimal.cs +++ b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/GrandparentAnimal.cs @@ -40,7 +40,7 @@ public GrandparentAnimal() OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// The discriminator diff --git a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/HasOnlyReadOnly.cs b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/HasOnlyReadOnly.cs index 50826dd0da5d..8e0f31cc830c 100644 --- a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/HasOnlyReadOnly.cs +++ b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/HasOnlyReadOnly.cs @@ -44,7 +44,7 @@ internal HasOnlyReadOnly(Option bar = default, Option foo = de OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Used to track the state of Bar diff --git a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/HealthCheckResult.cs b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/HealthCheckResult.cs index 2a3a8e527f6e..da40a46d96b4 100644 --- a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/HealthCheckResult.cs +++ b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/HealthCheckResult.cs @@ -42,7 +42,7 @@ public HealthCheckResult(Option nullableMessage = default) OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Used to track the state of NullableMessage diff --git a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/IsoscelesTriangle.cs b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/IsoscelesTriangle.cs index 8aca45893e65..ced1dabd2a0c 100644 --- a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/IsoscelesTriangle.cs +++ b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/IsoscelesTriangle.cs @@ -44,7 +44,7 @@ public IsoscelesTriangle(string shapeType, string triangleType) OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Gets or Sets ShapeType diff --git a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/List.cs b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/List.cs index ddf0d615fd3c..4f3ce863450b 100644 --- a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/List.cs +++ b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/List.cs @@ -42,7 +42,7 @@ public List(Option var123List = default) OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Used to track the state of Var123List diff --git a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/LiteralStringClass.cs b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/LiteralStringClass.cs index 5993dd82adc8..fc257a563a9b 100644 --- a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/LiteralStringClass.cs +++ b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/LiteralStringClass.cs @@ -44,7 +44,7 @@ public LiteralStringClass(Option escapedLiteralString = default, Option OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Used to track the state of EscapedLiteralString diff --git a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/Mammal.cs b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/Mammal.cs index 132f1e462ce0..ed656241fddc 100644 --- a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/Mammal.cs +++ b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/Mammal.cs @@ -61,7 +61,7 @@ public Mammal(Pig pig) OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Gets or Sets Whale diff --git a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/MapTest.cs b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/MapTest.cs index bba52b3ffbce..6417b3b01a15 100644 --- a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/MapTest.cs +++ b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/MapTest.cs @@ -48,7 +48,7 @@ public MapTest(Option?> directMap = default, Option /// Defines Inner diff --git a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/MixLog.cs b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/MixLog.cs index 564d9aa1a810..b286a4028aaf 100644 --- a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/MixLog.cs +++ b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/MixLog.cs @@ -104,7 +104,7 @@ public MixLog(string description, DateTime formulaVersionDate, Guid id, DateTime OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Gets or Sets Description diff --git a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/MixedAnyOf.cs b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/MixedAnyOf.cs index ac4b562eb3e7..ff2a799a1b2b 100644 --- a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/MixedAnyOf.cs +++ b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/MixedAnyOf.cs @@ -42,7 +42,7 @@ public MixedAnyOf(Option content = default) OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Used to track the state of Content diff --git a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/MixedAnyOfContent.cs b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/MixedAnyOfContent.cs index 05de563f77d7..66ee29949b75 100644 --- a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/MixedAnyOfContent.cs +++ b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/MixedAnyOfContent.cs @@ -49,7 +49,7 @@ public MixedAnyOfContent(Option @string, Option @bool, Option /// Used to track the state of String diff --git a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/MixedOneOf.cs b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/MixedOneOf.cs index 7a8da4dbed10..1b8a1a618ca9 100644 --- a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/MixedOneOf.cs +++ b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/MixedOneOf.cs @@ -42,7 +42,7 @@ public MixedOneOf(Option content = default) OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Used to track the state of Content diff --git a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/MixedOneOfContent.cs b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/MixedOneOfContent.cs index 15e011ce0918..bd81f2434039 100644 --- a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/MixedOneOfContent.cs +++ b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/MixedOneOfContent.cs @@ -81,7 +81,7 @@ public MixedOneOfContent(MixedSubId mixedSubId) OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Gets or Sets String diff --git a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/MixedPropertiesAndAdditionalPropertiesClass.cs b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/MixedPropertiesAndAdditionalPropertiesClass.cs index 17ee15eb2f4d..af750f9a0a54 100644 --- a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/MixedPropertiesAndAdditionalPropertiesClass.cs +++ b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/MixedPropertiesAndAdditionalPropertiesClass.cs @@ -48,7 +48,7 @@ public MixedPropertiesAndAdditionalPropertiesClass(Option dateTime = OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Used to track the state of DateTime diff --git a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/MixedSubId.cs b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/MixedSubId.cs index 6b56e6017b15..688145dde9a4 100644 --- a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/MixedSubId.cs +++ b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/MixedSubId.cs @@ -42,7 +42,7 @@ public MixedSubId(Option id = default) OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Used to track the state of Id diff --git a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/Model200Response.cs b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/Model200Response.cs index bb28841a9e57..39951ac1a41f 100644 --- a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/Model200Response.cs +++ b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/Model200Response.cs @@ -44,7 +44,7 @@ public Model200Response(Option @class = default, Option name = de OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Used to track the state of Class diff --git a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/ModelClient.cs b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/ModelClient.cs index 7a982b8104d3..0af9a492b594 100644 --- a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/ModelClient.cs +++ b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/ModelClient.cs @@ -42,7 +42,7 @@ public ModelClient(Option varClient = default) OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Used to track the state of VarClient diff --git a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/Name.cs b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/Name.cs index fb877759c605..3ee5d3bdfd34 100644 --- a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/Name.cs +++ b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/Name.cs @@ -48,7 +48,7 @@ public Name(int varName, Option property = default, Option snakeC OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Gets or Sets VarName diff --git a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/NotificationtestGetElementsV1ResponseMPayload.cs b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/NotificationtestGetElementsV1ResponseMPayload.cs index f7e59fb345ac..6b79551b658f 100644 --- a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/NotificationtestGetElementsV1ResponseMPayload.cs +++ b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/NotificationtestGetElementsV1ResponseMPayload.cs @@ -44,7 +44,7 @@ public NotificationtestGetElementsV1ResponseMPayload(List /// Gets or Sets AObjVariableobject diff --git a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/NullableClass.cs b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/NullableClass.cs index 91695a8649d6..8c4d354131b5 100644 --- a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/NullableClass.cs +++ b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/NullableClass.cs @@ -64,7 +64,7 @@ public NullableClass(Option?> arrayAndItemsNullableProp = default, OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Used to track the state of ArrayAndItemsNullableProp diff --git a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/NullableGuidClass.cs b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/NullableGuidClass.cs index 83619d031144..d566d270de96 100644 --- a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/NullableGuidClass.cs +++ b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/NullableGuidClass.cs @@ -42,7 +42,7 @@ public NullableGuidClass(Option uuid = default) OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Used to track the state of Uuid diff --git a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/NullableShape.cs b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/NullableShape.cs index a06afa2a9be6..8982a871cff2 100644 --- a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/NullableShape.cs +++ b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/NullableShape.cs @@ -51,7 +51,7 @@ public NullableShape(Quadrilateral quadrilateral) OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Gets or Sets Triangle diff --git a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/NumberOnly.cs b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/NumberOnly.cs index b52b1cc177f1..62b270d61d77 100644 --- a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/NumberOnly.cs +++ b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/NumberOnly.cs @@ -42,7 +42,7 @@ public NumberOnly(Option justNumber = default) OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Used to track the state of JustNumber diff --git a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/ObjectWithDeprecatedFields.cs b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/ObjectWithDeprecatedFields.cs index ec6905ea3a72..8b834a4662ab 100644 --- a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/ObjectWithDeprecatedFields.cs +++ b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/ObjectWithDeprecatedFields.cs @@ -48,7 +48,7 @@ public ObjectWithDeprecatedFields(Option?> bars = default, Option /// Used to track the state of Bars diff --git a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/OneOfString.cs b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/OneOfString.cs index 5471f08f5194..be6462d81f48 100644 --- a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/OneOfString.cs +++ b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/OneOfString.cs @@ -41,7 +41,7 @@ internal OneOfString(string @string) OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Gets or Sets String diff --git a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/Order.cs b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/Order.cs index a3e3679fe3dc..d0dde4524400 100644 --- a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/Order.cs +++ b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/Order.cs @@ -52,7 +52,7 @@ public Order(Option complete = default, Option id = default, Optio OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Order Status diff --git a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/OuterComposite.cs b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/OuterComposite.cs index 01d4f3844ebf..23ab30c75f72 100644 --- a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/OuterComposite.cs +++ b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/OuterComposite.cs @@ -46,7 +46,7 @@ public OuterComposite(Option myBoolean = default, Option myNumb OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Used to track the state of MyBoolean diff --git a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/ParentPet.cs b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/ParentPet.cs index a4b1ab4347d6..87e37fc81b15 100644 --- a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/ParentPet.cs +++ b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/ParentPet.cs @@ -40,7 +40,7 @@ public ParentPet() : base() OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// The discriminator diff --git a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/Pet.cs b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/Pet.cs index 55df1e0579f5..24ab9cd8dcb4 100644 --- a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/Pet.cs +++ b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/Pet.cs @@ -52,7 +52,7 @@ public Pet(string name, List photoUrls, Option category = def OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// pet status in the store diff --git a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/Pig.cs b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/Pig.cs index 2cd41f15027a..910e0ec72f68 100644 --- a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/Pig.cs +++ b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/Pig.cs @@ -51,7 +51,7 @@ public Pig(DanishPig danishPig) OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Gets or Sets BasquePig diff --git a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/PolymorphicProperty.cs b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/PolymorphicProperty.cs index 3c1b978da7f0..0ee5b12f393c 100644 --- a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/PolymorphicProperty.cs +++ b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/PolymorphicProperty.cs @@ -71,7 +71,7 @@ internal PolymorphicProperty(List list) OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Gets or Sets Bool diff --git a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/Quadrilateral.cs b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/Quadrilateral.cs index 5c7aa541ffc5..1a8051351afd 100644 --- a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/Quadrilateral.cs +++ b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/Quadrilateral.cs @@ -51,7 +51,7 @@ public Quadrilateral(ComplexQuadrilateral complexQuadrilateral) OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Gets or Sets SimpleQuadrilateral diff --git a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/QuadrilateralInterface.cs b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/QuadrilateralInterface.cs index c535142bde64..5edff5efa4c1 100644 --- a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/QuadrilateralInterface.cs +++ b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/QuadrilateralInterface.cs @@ -42,7 +42,7 @@ public QuadrilateralInterface(string quadrilateralType) OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Gets or Sets QuadrilateralType diff --git a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/ReadOnlyFirst.cs b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/ReadOnlyFirst.cs index a48fcb21dbef..9c934b5ed4f9 100644 --- a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/ReadOnlyFirst.cs +++ b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/ReadOnlyFirst.cs @@ -44,7 +44,7 @@ public ReadOnlyFirst(Option bar = default, Option baz = defaul OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Used to track the state of Bar diff --git a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/RequiredClass.cs b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/RequiredClass.cs index 15688d958f05..b8d2974f9ca5 100644 --- a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/RequiredClass.cs +++ b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/RequiredClass.cs @@ -128,7 +128,7 @@ public RequiredClass(DateOnly requiredNotNullableDateProp, List required OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Defines RequiredNotnullableEnumInteger diff --git a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/Return.cs b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/Return.cs index 0d9fe3516e6f..226775347500 100644 --- a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/Return.cs +++ b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/Return.cs @@ -48,7 +48,7 @@ public Return(string @lock, string? @abstract = default, Option varReturn OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Gets or Sets Lock diff --git a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/RolesReportsHash.cs b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/RolesReportsHash.cs index d520cfcc9a96..f26eafe34768 100644 --- a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/RolesReportsHash.cs +++ b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/RolesReportsHash.cs @@ -44,7 +44,7 @@ public RolesReportsHash(Option role = default, Option /// Used to track the state of Role diff --git a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/RolesReportsHashRole.cs b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/RolesReportsHashRole.cs index 684ca8e8b515..7bba421aa665 100644 --- a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/RolesReportsHashRole.cs +++ b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/RolesReportsHashRole.cs @@ -42,7 +42,7 @@ public RolesReportsHashRole(Option name = default) OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Used to track the state of Name diff --git a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/ScaleneTriangle.cs b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/ScaleneTriangle.cs index 926b431dda32..6bc01a3dd5ad 100644 --- a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/ScaleneTriangle.cs +++ b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/ScaleneTriangle.cs @@ -44,7 +44,7 @@ public ScaleneTriangle(string shapeType, string triangleType) OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Gets or Sets ShapeType diff --git a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/Shape.cs b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/Shape.cs index c608b7288d95..3ecca9549616 100644 --- a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/Shape.cs +++ b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/Shape.cs @@ -51,7 +51,7 @@ public Shape(Quadrilateral quadrilateral) OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Gets or Sets Triangle diff --git a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/ShapeInterface.cs b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/ShapeInterface.cs index 15777abac01d..0137e3d35827 100644 --- a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/ShapeInterface.cs +++ b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/ShapeInterface.cs @@ -42,7 +42,7 @@ public ShapeInterface(string shapeType) OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Gets or Sets ShapeType diff --git a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/ShapeOrNull.cs b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/ShapeOrNull.cs index 3fc9f2735096..a766cb23297a 100644 --- a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/ShapeOrNull.cs +++ b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/ShapeOrNull.cs @@ -51,7 +51,7 @@ public ShapeOrNull(Quadrilateral quadrilateral) OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Gets or Sets Triangle diff --git a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/SimpleQuadrilateral.cs b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/SimpleQuadrilateral.cs index bab36d28f5ef..68322e6f641e 100644 --- a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/SimpleQuadrilateral.cs +++ b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/SimpleQuadrilateral.cs @@ -44,7 +44,7 @@ public SimpleQuadrilateral(string quadrilateralType, string shapeType) OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Gets or Sets QuadrilateralType diff --git a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/SpecialModelName.cs b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/SpecialModelName.cs index d66e2a9e7328..9e87491cc22f 100644 --- a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/SpecialModelName.cs +++ b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/SpecialModelName.cs @@ -44,7 +44,7 @@ public SpecialModelName(Option varSpecialModelName = default, Option /// Used to track the state of VarSpecialModelName diff --git a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/Tag.cs b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/Tag.cs index 92de05e2d752..1a6033402e64 100644 --- a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/Tag.cs +++ b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/Tag.cs @@ -44,7 +44,7 @@ public Tag(Option id = default, Option name = default) OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Used to track the state of Id diff --git a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordList.cs b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordList.cs index f1a1940574ee..7ec78f7c3b03 100644 --- a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordList.cs +++ b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordList.cs @@ -42,7 +42,7 @@ public TestCollectionEndingWithWordList(Option value = default) OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Used to track the state of Value diff --git a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordListObject.cs b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordListObject.cs index ed3d3f74081b..a88aafa6cbac 100644 --- a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordListObject.cs +++ b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordListObject.cs @@ -42,7 +42,7 @@ public TestCollectionEndingWithWordListObject(Option /// Used to track the state of TestCollectionEndingWithWordList diff --git a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/TestInlineFreeformAdditionalPropertiesRequest.cs b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/TestInlineFreeformAdditionalPropertiesRequest.cs index 102413449b18..8ad3f017d0ec 100644 --- a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/TestInlineFreeformAdditionalPropertiesRequest.cs +++ b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/TestInlineFreeformAdditionalPropertiesRequest.cs @@ -42,7 +42,7 @@ public TestInlineFreeformAdditionalPropertiesRequest(Option somePropert OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Used to track the state of SomeProperty diff --git a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/Triangle.cs b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/Triangle.cs index f34f2cf60139..af1c6536c1f8 100644 --- a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/Triangle.cs +++ b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/Triangle.cs @@ -61,7 +61,7 @@ public Triangle(ScaleneTriangle scaleneTriangle) OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Gets or Sets EquilateralTriangle diff --git a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/TriangleInterface.cs b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/TriangleInterface.cs index 6ccbe196f3d4..a370372eee93 100644 --- a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/TriangleInterface.cs +++ b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/TriangleInterface.cs @@ -42,7 +42,7 @@ public TriangleInterface(string triangleType) OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Gets or Sets TriangleType diff --git a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/User.cs b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/User.cs index 7b55e2baf5bc..165f094e379a 100644 --- a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/User.cs +++ b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/User.cs @@ -64,7 +64,7 @@ public User(Option anyTypeProp = default, Option anyTypePropNu OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Used to track the state of AnyTypeProp diff --git a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/Whale.cs b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/Whale.cs index a655c0d30e99..4f6fa8675c0a 100644 --- a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/Whale.cs +++ b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/Whale.cs @@ -46,7 +46,7 @@ public Whale(string className, Option hasBaleen = default, Option OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Gets or Sets ClassName diff --git a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/Zebra.cs b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/Zebra.cs index 4ca12a36d096..026d1f54f1fb 100644 --- a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/Zebra.cs +++ b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/Zebra.cs @@ -44,7 +44,7 @@ public Zebra(string className, Option type = default) OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Defines Type diff --git a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/ZeroBasedEnumClass.cs b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/ZeroBasedEnumClass.cs index dfb395124397..9c8218e182ad 100644 --- a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/ZeroBasedEnumClass.cs +++ b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/ZeroBasedEnumClass.cs @@ -42,7 +42,7 @@ public ZeroBasedEnumClass(Option zeroBasedEnum = default) OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Defines ZeroBasedEnum 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 030cc3bf12e0..aba93ad77f6d 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 @@ -152,7 +152,7 @@ private void AfterRootGetDefaultImplementation(IRootGetApiResponse apiResponseLo /// /// /// - partial void AfterRootGet(ref bool suppressDefaultLog, IRootGetApiResponse apiResponseLocalVar); + public virtual void AfterRootGet(ref bool suppressDefaultLog, IRootGetApiResponse apiResponseLocalVar) { } /// /// Logs exceptions that occur while retrieving the server response @@ -175,7 +175,7 @@ private void OnErrorRootGetDefaultImplementation(Exception exceptionLocalVar, st /// /// /// - partial void OnErrorRootGet(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar); + public virtual void OnErrorRootGet(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar) { } /// /// @@ -278,7 +278,7 @@ public RootGetApiResponse(ILogger logger, System.Net.Http.Ht OnCreated(httpRequestMessage, httpResponseMessage); } - partial void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage); + public virtual void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage) { } /// /// Returns true if the response is 200 Ok @@ -326,7 +326,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } - partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); + public virtual void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode) { } } } } diff --git a/samples/client/petstore/csharp/generichost/net8/OneOf/src/Org.OpenAPITools/Client/ApiResponse`1.cs b/samples/client/petstore/csharp/generichost/net8/OneOf/src/Org.OpenAPITools/Client/ApiResponse`1.cs index 2675478b8b4f..f1b3c91302e2 100644 --- a/samples/client/petstore/csharp/generichost/net8/OneOf/src/Org.OpenAPITools/Client/ApiResponse`1.cs +++ b/samples/client/petstore/csharp/generichost/net8/OneOf/src/Org.OpenAPITools/Client/ApiResponse`1.cs @@ -147,7 +147,7 @@ public ApiResponse(global::System.Net.Http.HttpRequestMessage httpRequestMessage OnCreated(httpRequestMessage, httpResponseMessage); } - partial void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage); + public virtual void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage) { } } /// diff --git a/samples/client/petstore/csharp/generichost/net8/OneOf/src/Org.OpenAPITools/Model/Apple.cs b/samples/client/petstore/csharp/generichost/net8/OneOf/src/Org.OpenAPITools/Model/Apple.cs index dd3528fa42a4..653d5387c7db 100644 --- a/samples/client/petstore/csharp/generichost/net8/OneOf/src/Org.OpenAPITools/Model/Apple.cs +++ b/samples/client/petstore/csharp/generichost/net8/OneOf/src/Org.OpenAPITools/Model/Apple.cs @@ -42,7 +42,7 @@ public Apple(Option kind = default) OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Used to track the state of Kind diff --git a/samples/client/petstore/csharp/generichost/net8/OneOf/src/Org.OpenAPITools/Model/Banana.cs b/samples/client/petstore/csharp/generichost/net8/OneOf/src/Org.OpenAPITools/Model/Banana.cs index 66a33723aebc..68da040ec73d 100644 --- a/samples/client/petstore/csharp/generichost/net8/OneOf/src/Org.OpenAPITools/Model/Banana.cs +++ b/samples/client/petstore/csharp/generichost/net8/OneOf/src/Org.OpenAPITools/Model/Banana.cs @@ -42,7 +42,7 @@ public Banana(Option count = default) OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Used to track the state of Count diff --git a/samples/client/petstore/csharp/generichost/net8/OneOf/src/Org.OpenAPITools/Model/Fruit.cs b/samples/client/petstore/csharp/generichost/net8/OneOf/src/Org.OpenAPITools/Model/Fruit.cs index d58b2b4db1dd..e3deb49d5945 100644 --- a/samples/client/petstore/csharp/generichost/net8/OneOf/src/Org.OpenAPITools/Model/Fruit.cs +++ b/samples/client/petstore/csharp/generichost/net8/OneOf/src/Org.OpenAPITools/Model/Fruit.cs @@ -55,7 +55,7 @@ public Fruit(Banana banana, Option color = default) OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Gets or Sets Apple 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 3d7d0c482339..fe8544340a67 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 @@ -170,7 +170,7 @@ public AnotherFakeApi(ILogger logger, ILoggerFactory loggerFacto OauthTokenProvider = oauthTokenProvider; } - partial void FormatCall123TestSpecialTags(ModelClient modelClient); + public virtual void FormatCall123TestSpecialTags(ModelClient modelClient) { } /// /// Validates the request parameters @@ -202,7 +202,7 @@ private void AfterCall123TestSpecialTagsDefaultImplementation(ICall123TestSpecia /// /// /// - partial void AfterCall123TestSpecialTags(ref bool suppressDefaultLog, ICall123TestSpecialTagsApiResponse apiResponseLocalVar, ModelClient modelClient); + public virtual void AfterCall123TestSpecialTags(ref bool suppressDefaultLog, ICall123TestSpecialTagsApiResponse apiResponseLocalVar, ModelClient modelClient) { } /// /// Logs exceptions that occur while retrieving the server response @@ -227,7 +227,7 @@ private void OnErrorCall123TestSpecialTagsDefaultImplementation(Exception except /// /// /// - partial void OnErrorCall123TestSpecialTags(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, ModelClient modelClient); + public virtual 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 @@ -349,7 +349,7 @@ public Call123TestSpecialTagsApiResponse(ILogger /// Returns true if the response is 200 Ok @@ -397,7 +397,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } - partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); + public virtual void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode) { } } } } 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 84ec2eff6bff..07e78f664b90 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 @@ -399,7 +399,7 @@ private void AfterFooGetDefaultImplementation(IFooGetApiResponse apiResponseLoca /// /// /// - partial void AfterFooGet(ref bool suppressDefaultLog, IFooGetApiResponse apiResponseLocalVar); + public virtual void AfterFooGet(ref bool suppressDefaultLog, IFooGetApiResponse apiResponseLocalVar) { } /// /// Logs exceptions that occur while retrieving the server response @@ -422,7 +422,7 @@ private void OnErrorFooGetDefaultImplementation(Exception exceptionLocalVar, str /// /// /// - partial void OnErrorFooGet(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar); + public virtual void OnErrorFooGet(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar) { } /// /// @@ -525,7 +525,7 @@ public FooGetApiResponse(ILogger logger, System.Net.Http.Http OnCreated(httpRequestMessage, httpResponseMessage); } - partial void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage); + public virtual void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage) { } /// /// Returns true if the response is the default response type @@ -573,10 +573,10 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } - partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); + public virtual void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode) { } } - partial void FormatGetCountry(ref string country); + public virtual void FormatGetCountry(ref string country) { } /// /// Validates the request parameters @@ -608,7 +608,7 @@ private void AfterGetCountryDefaultImplementation(IGetCountryApiResponse apiResp /// /// /// - partial void AfterGetCountry(ref bool suppressDefaultLog, IGetCountryApiResponse apiResponseLocalVar, string country); + public virtual void AfterGetCountry(ref bool suppressDefaultLog, IGetCountryApiResponse apiResponseLocalVar, string country) { } /// /// Logs exceptions that occur while retrieving the server response @@ -633,7 +633,7 @@ private void OnErrorGetCountryDefaultImplementation(Exception exceptionLocalVar, /// /// /// - partial void OnErrorGetCountry(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, string country); + public virtual void OnErrorGetCountry(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, string country) { } /// /// @@ -752,7 +752,7 @@ public GetCountryApiResponse(ILogger logger, System.Net.H OnCreated(httpRequestMessage, httpResponseMessage); } - partial void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage); + public virtual void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage) { } /// /// Returns true if the response is 200 Ok @@ -768,7 +768,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } - partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); + public virtual void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode) { } } /// @@ -788,7 +788,7 @@ private void AfterHelloDefaultImplementation(IHelloApiResponse apiResponseLocalV /// /// /// - partial void AfterHello(ref bool suppressDefaultLog, IHelloApiResponse apiResponseLocalVar); + public virtual void AfterHello(ref bool suppressDefaultLog, IHelloApiResponse apiResponseLocalVar) { } /// /// Logs exceptions that occur while retrieving the server response @@ -811,7 +811,7 @@ private void OnErrorHelloDefaultImplementation(Exception exceptionLocalVar, stri /// /// /// - partial void OnErrorHello(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar); + public virtual void OnErrorHello(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar) { } /// /// Hello Hello @@ -914,7 +914,7 @@ public HelloApiResponse(ILogger logger, System.Net.Http.HttpRe OnCreated(httpRequestMessage, httpResponseMessage); } - partial void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage); + public virtual void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage) { } /// /// Returns true if the response is 200 Ok @@ -962,7 +962,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } - partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); + public virtual void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode) { } } /// @@ -982,7 +982,7 @@ private void AfterRolesReportGetDefaultImplementation(IRolesReportGetApiResponse /// /// /// - partial void AfterRolesReportGet(ref bool suppressDefaultLog, IRolesReportGetApiResponse apiResponseLocalVar); + public virtual void AfterRolesReportGet(ref bool suppressDefaultLog, IRolesReportGetApiResponse apiResponseLocalVar) { } /// /// Logs exceptions that occur while retrieving the server response @@ -1005,7 +1005,7 @@ private void OnErrorRolesReportGetDefaultImplementation(Exception exceptionLocal /// /// /// - partial void OnErrorRolesReportGet(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar); + public virtual void OnErrorRolesReportGet(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar) { } /// /// @@ -1108,7 +1108,7 @@ public RolesReportGetApiResponse(ILogger logger, Syst OnCreated(httpRequestMessage, httpResponseMessage); } - partial void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage); + public virtual void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage) { } /// /// Returns true if the response is 200 Ok @@ -1156,7 +1156,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } - partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); + public virtual void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode) { } } /// @@ -1176,7 +1176,7 @@ private void AfterTestDefaultImplementation(ITestApiResponse apiResponseLocalVar /// /// /// - partial void AfterTest(ref bool suppressDefaultLog, ITestApiResponse apiResponseLocalVar); + public virtual void AfterTest(ref bool suppressDefaultLog, ITestApiResponse apiResponseLocalVar) { } /// /// Logs exceptions that occur while retrieving the server response @@ -1199,7 +1199,7 @@ private void OnErrorTestDefaultImplementation(Exception exceptionLocalVar, strin /// /// /// - partial void OnErrorTest(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar); + public virtual void OnErrorTest(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar) { } /// /// Retrieve an existing Notificationtest's Elements @@ -1302,7 +1302,7 @@ public TestApiResponse(ILogger logger, System.Net.Http.HttpRequ OnCreated(httpRequestMessage, httpResponseMessage); } - partial void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage); + public virtual void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage) { } /// /// Returns true if the response is 200 Ok @@ -1350,7 +1350,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } - partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); + public virtual void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode) { } } } } 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 551265024789..0ece0fecaf04 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 @@ -1308,7 +1308,7 @@ private void AfterFakeHealthGetDefaultImplementation(IFakeHealthGetApiResponse a /// /// /// - partial void AfterFakeHealthGet(ref bool suppressDefaultLog, IFakeHealthGetApiResponse apiResponseLocalVar); + public virtual void AfterFakeHealthGet(ref bool suppressDefaultLog, IFakeHealthGetApiResponse apiResponseLocalVar) { } /// /// Logs exceptions that occur while retrieving the server response @@ -1331,7 +1331,7 @@ private void OnErrorFakeHealthGetDefaultImplementation(Exception exceptionLocalV /// /// /// - partial void OnErrorFakeHealthGet(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar); + public virtual void OnErrorFakeHealthGet(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar) { } /// /// Health check endpoint @@ -1434,7 +1434,7 @@ public FakeHealthGetApiResponse(ILogger logger, System OnCreated(httpRequestMessage, httpResponseMessage); } - partial void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage); + public virtual void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage) { } /// /// Returns true if the response is 200 Ok @@ -1482,10 +1482,10 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } - partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); + public virtual void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode) { } } - partial void FormatFakeOuterBooleanSerialize(ref Option body); + public virtual void FormatFakeOuterBooleanSerialize(ref Option body) { } /// /// Processes the server response @@ -1506,7 +1506,7 @@ private void AfterFakeOuterBooleanSerializeDefaultImplementation(IFakeOuterBoole /// /// /// - partial void AfterFakeOuterBooleanSerialize(ref bool suppressDefaultLog, IFakeOuterBooleanSerializeApiResponse apiResponseLocalVar, Option body); + public virtual void AfterFakeOuterBooleanSerialize(ref bool suppressDefaultLog, IFakeOuterBooleanSerializeApiResponse apiResponseLocalVar, Option body) { } /// /// Logs exceptions that occur while retrieving the server response @@ -1531,7 +1531,7 @@ private void OnErrorFakeOuterBooleanSerializeDefaultImplementation(Exception exc /// /// /// - partial void OnErrorFakeOuterBooleanSerialize(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, Option body); + public virtual void OnErrorFakeOuterBooleanSerialize(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, Option body) { } /// /// Test serialization of outer boolean types @@ -1652,7 +1652,7 @@ public FakeOuterBooleanSerializeApiResponse(ILogger /// Returns true if the response is 200 Ok @@ -1700,10 +1700,10 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } - partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); + public virtual void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode) { } } - partial void FormatFakeOuterCompositeSerialize(Option outerComposite); + public virtual void FormatFakeOuterCompositeSerialize(Option outerComposite) { } /// /// Validates the request parameters @@ -1735,7 +1735,7 @@ private void AfterFakeOuterCompositeSerializeDefaultImplementation(IFakeOuterCom /// /// /// - partial void AfterFakeOuterCompositeSerialize(ref bool suppressDefaultLog, IFakeOuterCompositeSerializeApiResponse apiResponseLocalVar, Option outerComposite); + public virtual void AfterFakeOuterCompositeSerialize(ref bool suppressDefaultLog, IFakeOuterCompositeSerializeApiResponse apiResponseLocalVar, Option outerComposite) { } /// /// Logs exceptions that occur while retrieving the server response @@ -1760,7 +1760,7 @@ private void OnErrorFakeOuterCompositeSerializeDefaultImplementation(Exception e /// /// /// - partial void OnErrorFakeOuterCompositeSerialize(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, Option outerComposite); + public virtual void OnErrorFakeOuterCompositeSerialize(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, Option outerComposite) { } /// /// Test serialization of object with outer number type @@ -1883,7 +1883,7 @@ public FakeOuterCompositeSerializeApiResponse(ILogger /// Returns true if the response is 200 Ok @@ -1931,10 +1931,10 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } - partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); + public virtual void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode) { } } - partial void FormatFakeOuterNumberSerialize(ref Option body); + public virtual void FormatFakeOuterNumberSerialize(ref Option body) { } /// /// Processes the server response @@ -1955,7 +1955,7 @@ private void AfterFakeOuterNumberSerializeDefaultImplementation(IFakeOuterNumber /// /// /// - partial void AfterFakeOuterNumberSerialize(ref bool suppressDefaultLog, IFakeOuterNumberSerializeApiResponse apiResponseLocalVar, Option body); + public virtual void AfterFakeOuterNumberSerialize(ref bool suppressDefaultLog, IFakeOuterNumberSerializeApiResponse apiResponseLocalVar, Option body) { } /// /// Logs exceptions that occur while retrieving the server response @@ -1980,7 +1980,7 @@ private void OnErrorFakeOuterNumberSerializeDefaultImplementation(Exception exce /// /// /// - partial void OnErrorFakeOuterNumberSerialize(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, Option body); + public virtual void OnErrorFakeOuterNumberSerialize(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, Option body) { } /// /// Test serialization of outer number types @@ -2101,7 +2101,7 @@ public FakeOuterNumberSerializeApiResponse(ILogger /// Returns true if the response is 200 Ok @@ -2149,10 +2149,10 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } - partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); + public virtual void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode) { } } - partial void FormatFakeOuterStringSerialize(ref Guid requiredStringUuid, ref Option body); + public virtual void FormatFakeOuterStringSerialize(ref Guid requiredStringUuid, ref Option body) { } /// /// Validates the request parameters @@ -2186,7 +2186,7 @@ private void AfterFakeOuterStringSerializeDefaultImplementation(IFakeOuterString /// /// /// - partial void AfterFakeOuterStringSerialize(ref bool suppressDefaultLog, IFakeOuterStringSerializeApiResponse apiResponseLocalVar, Guid requiredStringUuid, Option body); + public virtual void AfterFakeOuterStringSerialize(ref bool suppressDefaultLog, IFakeOuterStringSerializeApiResponse apiResponseLocalVar, Guid requiredStringUuid, Option body) { } /// /// Logs exceptions that occur while retrieving the server response @@ -2213,7 +2213,7 @@ private void OnErrorFakeOuterStringSerializeDefaultImplementation(Exception exce /// /// /// - partial void OnErrorFakeOuterStringSerialize(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, Guid requiredStringUuid, Option body); + public virtual void OnErrorFakeOuterStringSerialize(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, Guid requiredStringUuid, Option body) { } /// /// Test serialization of outer string types @@ -2344,7 +2344,7 @@ public FakeOuterStringSerializeApiResponse(ILogger /// Returns true if the response is 200 Ok @@ -2392,7 +2392,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } - partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); + public virtual void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode) { } } /// @@ -2412,7 +2412,7 @@ private void AfterGetArrayOfEnumsDefaultImplementation(IGetArrayOfEnumsApiRespon /// /// /// - partial void AfterGetArrayOfEnums(ref bool suppressDefaultLog, IGetArrayOfEnumsApiResponse apiResponseLocalVar); + public virtual void AfterGetArrayOfEnums(ref bool suppressDefaultLog, IGetArrayOfEnumsApiResponse apiResponseLocalVar) { } /// /// Logs exceptions that occur while retrieving the server response @@ -2435,7 +2435,7 @@ private void OnErrorGetArrayOfEnumsDefaultImplementation(Exception exceptionLoca /// /// /// - partial void OnErrorGetArrayOfEnums(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar); + public virtual void OnErrorGetArrayOfEnums(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar) { } /// /// Array of Enums @@ -2538,7 +2538,7 @@ public GetArrayOfEnumsApiResponse(ILogger logger, Sy OnCreated(httpRequestMessage, httpResponseMessage); } - partial void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage); + public virtual void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage) { } /// /// Returns true if the response is 200 Ok @@ -2586,7 +2586,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } - partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); + public virtual void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode) { } } /// @@ -2606,7 +2606,7 @@ private void AfterGetMixedAnyOfDefaultImplementation(IGetMixedAnyOfApiResponse a /// /// /// - partial void AfterGetMixedAnyOf(ref bool suppressDefaultLog, IGetMixedAnyOfApiResponse apiResponseLocalVar); + public virtual void AfterGetMixedAnyOf(ref bool suppressDefaultLog, IGetMixedAnyOfApiResponse apiResponseLocalVar) { } /// /// Logs exceptions that occur while retrieving the server response @@ -2629,7 +2629,7 @@ private void OnErrorGetMixedAnyOfDefaultImplementation(Exception exceptionLocalV /// /// /// - partial void OnErrorGetMixedAnyOf(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar); + public virtual void OnErrorGetMixedAnyOf(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar) { } /// /// Test mixed type anyOf deserialization @@ -2732,7 +2732,7 @@ public GetMixedAnyOfApiResponse(ILogger logger, System OnCreated(httpRequestMessage, httpResponseMessage); } - partial void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage); + public virtual void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage) { } /// /// Returns true if the response is 200 Ok @@ -2780,7 +2780,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } - partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); + public virtual void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode) { } } /// @@ -2800,7 +2800,7 @@ private void AfterGetMixedOneOfDefaultImplementation(IGetMixedOneOfApiResponse a /// /// /// - partial void AfterGetMixedOneOf(ref bool suppressDefaultLog, IGetMixedOneOfApiResponse apiResponseLocalVar); + public virtual void AfterGetMixedOneOf(ref bool suppressDefaultLog, IGetMixedOneOfApiResponse apiResponseLocalVar) { } /// /// Logs exceptions that occur while retrieving the server response @@ -2823,7 +2823,7 @@ private void OnErrorGetMixedOneOfDefaultImplementation(Exception exceptionLocalV /// /// /// - partial void OnErrorGetMixedOneOf(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar); + public virtual void OnErrorGetMixedOneOf(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar) { } /// /// Test mixed type oneOf deserialization @@ -2926,7 +2926,7 @@ public GetMixedOneOfApiResponse(ILogger logger, System OnCreated(httpRequestMessage, httpResponseMessage); } - partial void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage); + public virtual void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage) { } /// /// Returns true if the response is 200 Ok @@ -2974,10 +2974,10 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } - partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); + public virtual void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode) { } } - partial void FormatTestAdditionalPropertiesReference(Dictionary requestBody); + public virtual void FormatTestAdditionalPropertiesReference(Dictionary requestBody) { } /// /// Validates the request parameters @@ -3009,7 +3009,7 @@ private void AfterTestAdditionalPropertiesReferenceDefaultImplementation(ITestAd /// /// /// - partial void AfterTestAdditionalPropertiesReference(ref bool suppressDefaultLog, ITestAdditionalPropertiesReferenceApiResponse apiResponseLocalVar, Dictionary requestBody); + public virtual void AfterTestAdditionalPropertiesReference(ref bool suppressDefaultLog, ITestAdditionalPropertiesReferenceApiResponse apiResponseLocalVar, Dictionary requestBody) { } /// /// Logs exceptions that occur while retrieving the server response @@ -3034,7 +3034,7 @@ private void OnErrorTestAdditionalPropertiesReferenceDefaultImplementation(Excep /// /// /// - partial void OnErrorTestAdditionalPropertiesReference(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, Dictionary requestBody); + public virtual void OnErrorTestAdditionalPropertiesReference(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, Dictionary requestBody) { } /// /// test referenced additionalProperties @@ -3147,7 +3147,7 @@ public TestAdditionalPropertiesReferenceApiResponse(ILogger /// Returns true if the response is 200 Ok @@ -3163,10 +3163,10 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } - partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); + public virtual void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode) { } } - partial void FormatTestBodyWithFileSchema(FileSchemaTestClass fileSchemaTestClass); + public virtual void FormatTestBodyWithFileSchema(FileSchemaTestClass fileSchemaTestClass) { } /// /// Validates the request parameters @@ -3198,7 +3198,7 @@ private void AfterTestBodyWithFileSchemaDefaultImplementation(ITestBodyWithFileS /// /// /// - partial void AfterTestBodyWithFileSchema(ref bool suppressDefaultLog, ITestBodyWithFileSchemaApiResponse apiResponseLocalVar, FileSchemaTestClass fileSchemaTestClass); + public virtual void AfterTestBodyWithFileSchema(ref bool suppressDefaultLog, ITestBodyWithFileSchemaApiResponse apiResponseLocalVar, FileSchemaTestClass fileSchemaTestClass) { } /// /// Logs exceptions that occur while retrieving the server response @@ -3223,7 +3223,7 @@ private void OnErrorTestBodyWithFileSchemaDefaultImplementation(Exception except /// /// /// - partial void OnErrorTestBodyWithFileSchema(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, FileSchemaTestClass fileSchemaTestClass); + public virtual 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`. @@ -3336,7 +3336,7 @@ public TestBodyWithFileSchemaApiResponse(ILogger /// Returns true if the response is 200 Ok @@ -3352,10 +3352,10 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } - partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); + public virtual void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode) { } } - partial void FormatTestBodyWithQueryParams(ref string query, User user); + public virtual void FormatTestBodyWithQueryParams(ref string query, User user) { } /// /// Validates the request parameters @@ -3393,7 +3393,7 @@ private void AfterTestBodyWithQueryParamsDefaultImplementation(ITestBodyWithQuer /// /// /// - partial void AfterTestBodyWithQueryParams(ref bool suppressDefaultLog, ITestBodyWithQueryParamsApiResponse apiResponseLocalVar, string query, User user); + public virtual void AfterTestBodyWithQueryParams(ref bool suppressDefaultLog, ITestBodyWithQueryParamsApiResponse apiResponseLocalVar, string query, User user) { } /// /// Logs exceptions that occur while retrieving the server response @@ -3420,7 +3420,7 @@ private void OnErrorTestBodyWithQueryParamsDefaultImplementation(Exception excep /// /// /// - partial void OnErrorTestBodyWithQueryParams(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, string query, User user); + public virtual void OnErrorTestBodyWithQueryParams(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, string query, User user) { } /// /// @@ -3541,7 +3541,7 @@ public TestBodyWithQueryParamsApiResponse(ILogger /// Returns true if the response is 200 Ok @@ -3557,10 +3557,10 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } - partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); + public virtual void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode) { } } - partial void FormatTestClientModel(ModelClient modelClient); + public virtual void FormatTestClientModel(ModelClient modelClient) { } /// /// Validates the request parameters @@ -3592,7 +3592,7 @@ private void AfterTestClientModelDefaultImplementation(ITestClientModelApiRespon /// /// /// - partial void AfterTestClientModel(ref bool suppressDefaultLog, ITestClientModelApiResponse apiResponseLocalVar, ModelClient modelClient); + public virtual void AfterTestClientModel(ref bool suppressDefaultLog, ITestClientModelApiResponse apiResponseLocalVar, ModelClient modelClient) { } /// /// Logs exceptions that occur while retrieving the server response @@ -3617,7 +3617,7 @@ private void OnErrorTestClientModelDefaultImplementation(Exception exceptionLoca /// /// /// - partial void OnErrorTestClientModel(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, ModelClient modelClient); + public virtual void OnErrorTestClientModel(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, ModelClient modelClient) { } /// /// To test \"client\" model To test \"client\" model @@ -3739,7 +3739,7 @@ public TestClientModelApiResponse(ILogger logger, Sy OnCreated(httpRequestMessage, httpResponseMessage); } - partial void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage); + public virtual void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage) { } /// /// Returns true if the response is 200 Ok @@ -3787,10 +3787,10 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } - partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); + public virtual void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode) { } } - partial void FormatTestEndpointParameters(ref decimal number, ref string patternWithoutDelimiter, ref byte[] varByte, ref double varDouble, ref Option binary, ref Option callback, ref Option date, ref Option dateTime, ref Option int32, ref Option int64, ref Option integer, ref Option password, ref Option varFloat, ref Option varString); + public virtual void FormatTestEndpointParameters(ref decimal number, ref string patternWithoutDelimiter, ref byte[] varByte, ref double varDouble, ref Option binary, ref Option callback, ref Option date, ref Option dateTime, ref Option int32, ref Option int64, ref Option integer, ref Option password, ref Option varFloat, ref Option varString) { } /// /// Validates the request parameters @@ -3868,7 +3868,7 @@ private void AfterTestEndpointParametersDefaultImplementation(ITestEndpointParam /// /// /// - partial void AfterTestEndpointParameters(ref bool suppressDefaultLog, ITestEndpointParametersApiResponse apiResponseLocalVar, 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); + public virtual void AfterTestEndpointParameters(ref bool suppressDefaultLog, ITestEndpointParametersApiResponse apiResponseLocalVar, 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) { } /// /// Logs exceptions that occur while retrieving the server response @@ -3919,7 +3919,7 @@ private void OnErrorTestEndpointParametersDefaultImplementation(Exception except /// /// /// - 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); + public virtual 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 假端點 偽のエンドポイント 가짜 엔드 포인트 @@ -4111,7 +4111,7 @@ public TestEndpointParametersApiResponse(ILogger /// Returns true if the response is 400 BadRequest @@ -4133,10 +4133,10 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } - partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); + public virtual void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode) { } } - partial void FormatTestEnumParameters(ref Option enumFormString, Option> enumFormStringArray, ref Option enumHeaderString, Option> enumHeaderStringArray, ref Option enumQueryDouble, ref Option enumQueryInteger, ref Option enumQueryString, Option> enumQueryStringArray); + public virtual void FormatTestEnumParameters(ref Option enumFormString, Option> enumFormStringArray, ref Option enumHeaderString, Option> enumHeaderStringArray, ref Option enumQueryDouble, ref Option enumQueryInteger, ref Option enumQueryString, Option> enumQueryStringArray) { } /// /// Validates the request parameters @@ -4202,7 +4202,7 @@ private void AfterTestEnumParametersDefaultImplementation(ITestEnumParametersApi /// /// /// - partial void AfterTestEnumParameters(ref bool suppressDefaultLog, ITestEnumParametersApiResponse apiResponseLocalVar, Option enumFormString, Option> enumFormStringArray, Option enumHeaderString, Option> enumHeaderStringArray, Option enumQueryDouble, Option enumQueryInteger, Option enumQueryString, Option> enumQueryStringArray); + public virtual void AfterTestEnumParameters(ref bool suppressDefaultLog, ITestEnumParametersApiResponse apiResponseLocalVar, Option enumFormString, Option> enumFormStringArray, Option enumHeaderString, Option> enumHeaderStringArray, Option enumQueryDouble, Option enumQueryInteger, Option enumQueryString, Option> enumQueryStringArray) { } /// /// Logs exceptions that occur while retrieving the server response @@ -4241,7 +4241,7 @@ private void OnErrorTestEnumParametersDefaultImplementation(Exception exceptionL /// /// /// - 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); + public virtual 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 @@ -4398,7 +4398,7 @@ public TestEnumParametersApiResponse(ILogger logg OnCreated(httpRequestMessage, httpResponseMessage); } - partial void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage); + public virtual void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage) { } /// /// Returns true if the response is 400 BadRequest @@ -4420,10 +4420,10 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } - partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); + public virtual void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode) { } } - partial void FormatTestGroupParameters(ref bool requiredBooleanGroup, ref long requiredInt64Group, ref int requiredStringGroup, ref Option booleanGroup, ref Option int64Group, ref Option stringGroup); + public virtual void FormatTestGroupParameters(ref bool requiredBooleanGroup, ref long requiredInt64Group, ref int requiredStringGroup, ref Option booleanGroup, ref Option int64Group, ref Option stringGroup) { } /// /// Processes the server response @@ -4454,7 +4454,7 @@ private void AfterTestGroupParametersDefaultImplementation(ITestGroupParametersA /// /// /// - partial void AfterTestGroupParameters(ref bool suppressDefaultLog, ITestGroupParametersApiResponse apiResponseLocalVar, bool requiredBooleanGroup, long requiredInt64Group, int requiredStringGroup, Option booleanGroup, Option int64Group, Option stringGroup); + public virtual void AfterTestGroupParameters(ref bool suppressDefaultLog, ITestGroupParametersApiResponse apiResponseLocalVar, bool requiredBooleanGroup, long requiredInt64Group, int requiredStringGroup, Option booleanGroup, Option int64Group, Option stringGroup) { } /// /// Logs exceptions that occur while retrieving the server response @@ -4489,7 +4489,7 @@ private void OnErrorTestGroupParametersDefaultImplementation(Exception exception /// /// /// - partial void OnErrorTestGroupParameters(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, bool requiredBooleanGroup, long requiredInt64Group, int requiredStringGroup, Option booleanGroup, Option int64Group, Option stringGroup); + public virtual 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) @@ -4626,7 +4626,7 @@ public TestGroupParametersApiResponse(ILogger lo OnCreated(httpRequestMessage, httpResponseMessage); } - partial void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage); + public virtual void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage) { } /// /// Returns true if the response is 400 BadRequest @@ -4642,10 +4642,10 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } - partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); + public virtual void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode) { } } - partial void FormatTestInlineAdditionalProperties(Dictionary requestBody); + public virtual void FormatTestInlineAdditionalProperties(Dictionary requestBody) { } /// /// Validates the request parameters @@ -4677,7 +4677,7 @@ private void AfterTestInlineAdditionalPropertiesDefaultImplementation(ITestInlin /// /// /// - partial void AfterTestInlineAdditionalProperties(ref bool suppressDefaultLog, ITestInlineAdditionalPropertiesApiResponse apiResponseLocalVar, Dictionary requestBody); + public virtual void AfterTestInlineAdditionalProperties(ref bool suppressDefaultLog, ITestInlineAdditionalPropertiesApiResponse apiResponseLocalVar, Dictionary requestBody) { } /// /// Logs exceptions that occur while retrieving the server response @@ -4702,7 +4702,7 @@ private void OnErrorTestInlineAdditionalPropertiesDefaultImplementation(Exceptio /// /// /// - partial void OnErrorTestInlineAdditionalProperties(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, Dictionary requestBody); + public virtual void OnErrorTestInlineAdditionalProperties(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, Dictionary requestBody) { } /// /// test inline additionalProperties @@ -4815,7 +4815,7 @@ public TestInlineAdditionalPropertiesApiResponse(ILogger /// Returns true if the response is 200 Ok @@ -4831,10 +4831,10 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } - partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); + public virtual void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode) { } } - partial void FormatTestInlineFreeformAdditionalProperties(TestInlineFreeformAdditionalPropertiesRequest testInlineFreeformAdditionalPropertiesRequest); + public virtual void FormatTestInlineFreeformAdditionalProperties(TestInlineFreeformAdditionalPropertiesRequest testInlineFreeformAdditionalPropertiesRequest) { } /// /// Validates the request parameters @@ -4866,7 +4866,7 @@ private void AfterTestInlineFreeformAdditionalPropertiesDefaultImplementation(IT /// /// /// - partial void AfterTestInlineFreeformAdditionalProperties(ref bool suppressDefaultLog, ITestInlineFreeformAdditionalPropertiesApiResponse apiResponseLocalVar, TestInlineFreeformAdditionalPropertiesRequest testInlineFreeformAdditionalPropertiesRequest); + public virtual void AfterTestInlineFreeformAdditionalProperties(ref bool suppressDefaultLog, ITestInlineFreeformAdditionalPropertiesApiResponse apiResponseLocalVar, TestInlineFreeformAdditionalPropertiesRequest testInlineFreeformAdditionalPropertiesRequest) { } /// /// Logs exceptions that occur while retrieving the server response @@ -4891,7 +4891,7 @@ private void OnErrorTestInlineFreeformAdditionalPropertiesDefaultImplementation( /// /// /// - partial void OnErrorTestInlineFreeformAdditionalProperties(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, TestInlineFreeformAdditionalPropertiesRequest testInlineFreeformAdditionalPropertiesRequest); + public virtual void OnErrorTestInlineFreeformAdditionalProperties(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, TestInlineFreeformAdditionalPropertiesRequest testInlineFreeformAdditionalPropertiesRequest) { } /// /// test inline free-form additionalProperties @@ -5004,7 +5004,7 @@ public TestInlineFreeformAdditionalPropertiesApiResponse(ILogger /// Returns true if the response is 200 Ok @@ -5020,10 +5020,10 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } - partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); + public virtual void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode) { } } - partial void FormatTestJsonFormData(ref string param, ref string param2); + public virtual void FormatTestJsonFormData(ref string param, ref string param2) { } /// /// Validates the request parameters @@ -5061,7 +5061,7 @@ private void AfterTestJsonFormDataDefaultImplementation(ITestJsonFormDataApiResp /// /// /// - partial void AfterTestJsonFormData(ref bool suppressDefaultLog, ITestJsonFormDataApiResponse apiResponseLocalVar, string param, string param2); + public virtual void AfterTestJsonFormData(ref bool suppressDefaultLog, ITestJsonFormDataApiResponse apiResponseLocalVar, string param, string param2) { } /// /// Logs exceptions that occur while retrieving the server response @@ -5088,7 +5088,7 @@ private void OnErrorTestJsonFormDataDefaultImplementation(Exception exceptionLoc /// /// /// - partial void OnErrorTestJsonFormData(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, string param, string param2); + public virtual void OnErrorTestJsonFormData(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, string param, string param2) { } /// /// test json serialization of form data @@ -5211,7 +5211,7 @@ public TestJsonFormDataApiResponse(ILogger logger, OnCreated(httpRequestMessage, httpResponseMessage); } - partial void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage); + public virtual void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage) { } /// /// Returns true if the response is 200 Ok @@ -5227,10 +5227,10 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } - partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); + public virtual void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode) { } } - partial void FormatTestQueryParameterCollectionFormat(List context, List http, List ioutil, List pipe, ref string requiredNotNullable, List url, ref Option notRequiredNotNullable, ref Option notRequiredNullable, ref string requiredNullable); + public virtual void FormatTestQueryParameterCollectionFormat(List context, List http, List ioutil, List pipe, ref string requiredNotNullable, List url, ref Option notRequiredNotNullable, ref Option notRequiredNullable, ref string requiredNullable) { } /// /// Validates the request parameters @@ -5302,7 +5302,7 @@ private void AfterTestQueryParameterCollectionFormatDefaultImplementation(ITestQ /// /// /// - partial void AfterTestQueryParameterCollectionFormat(ref bool suppressDefaultLog, ITestQueryParameterCollectionFormatApiResponse apiResponseLocalVar, List context, List http, List ioutil, List pipe, string requiredNotNullable, List url, Option notRequiredNotNullable, Option notRequiredNullable, string requiredNullable); + public virtual void AfterTestQueryParameterCollectionFormat(ref bool suppressDefaultLog, ITestQueryParameterCollectionFormatApiResponse apiResponseLocalVar, List context, List http, List ioutil, List pipe, string requiredNotNullable, List url, Option notRequiredNotNullable, Option notRequiredNullable, string requiredNullable) { } /// /// Logs exceptions that occur while retrieving the server response @@ -5343,7 +5343,7 @@ private void OnErrorTestQueryParameterCollectionFormatDefaultImplementation(Exce /// /// /// - 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); + public virtual 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 @@ -5477,7 +5477,7 @@ public TestQueryParameterCollectionFormatApiResponse(ILogger /// Returns true if the response is 200 Ok @@ -5493,10 +5493,10 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } - partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); + public virtual void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode) { } } - partial void FormatTestStringMapReference(Dictionary requestBody); + public virtual void FormatTestStringMapReference(Dictionary requestBody) { } /// /// Validates the request parameters @@ -5528,7 +5528,7 @@ private void AfterTestStringMapReferenceDefaultImplementation(ITestStringMapRefe /// /// /// - partial void AfterTestStringMapReference(ref bool suppressDefaultLog, ITestStringMapReferenceApiResponse apiResponseLocalVar, Dictionary requestBody); + public virtual void AfterTestStringMapReference(ref bool suppressDefaultLog, ITestStringMapReferenceApiResponse apiResponseLocalVar, Dictionary requestBody) { } /// /// Logs exceptions that occur while retrieving the server response @@ -5553,7 +5553,7 @@ private void OnErrorTestStringMapReferenceDefaultImplementation(Exception except /// /// /// - partial void OnErrorTestStringMapReference(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, Dictionary requestBody); + public virtual void OnErrorTestStringMapReference(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, Dictionary requestBody) { } /// /// test referenced string map @@ -5666,7 +5666,7 @@ public TestStringMapReferenceApiResponse(ILogger /// Returns true if the response is 200 Ok @@ -5682,7 +5682,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } - partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); + public virtual void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode) { } } } } 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 a12284afb01b..82701402673a 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 @@ -170,7 +170,7 @@ public FakeClassnameTags123Api(ILogger logger, ILoggerF OauthTokenProvider = oauthTokenProvider; } - partial void FormatTestClassname(ModelClient modelClient); + public virtual void FormatTestClassname(ModelClient modelClient) { } /// /// Validates the request parameters @@ -202,7 +202,7 @@ private void AfterTestClassnameDefaultImplementation(ITestClassnameApiResponse a /// /// /// - partial void AfterTestClassname(ref bool suppressDefaultLog, ITestClassnameApiResponse apiResponseLocalVar, ModelClient modelClient); + public virtual void AfterTestClassname(ref bool suppressDefaultLog, ITestClassnameApiResponse apiResponseLocalVar, ModelClient modelClient) { } /// /// Logs exceptions that occur while retrieving the server response @@ -227,7 +227,7 @@ private void OnErrorTestClassnameDefaultImplementation(Exception exceptionLocalV /// /// /// - partial void OnErrorTestClassname(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, ModelClient modelClient); + public virtual 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 @@ -362,7 +362,7 @@ public TestClassnameApiResponse(ILogger logger, System OnCreated(httpRequestMessage, httpResponseMessage); } - partial void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage); + public virtual void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage) { } /// /// Returns true if the response is 200 Ok @@ -410,7 +410,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } - partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); + public virtual void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode) { } } } } 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 0350d428124a..fa1b8cccdf72 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 @@ -674,7 +674,7 @@ public PetApi(ILogger logger, ILoggerFactory loggerFactory, HttpClient h OauthTokenProvider = oauthTokenProvider; } - partial void FormatAddPet(Pet pet); + public virtual void FormatAddPet(Pet pet) { } /// /// Validates the request parameters @@ -706,7 +706,7 @@ private void AfterAddPetDefaultImplementation(IAddPetApiResponse apiResponseLoca /// /// /// - partial void AfterAddPet(ref bool suppressDefaultLog, IAddPetApiResponse apiResponseLocalVar, Pet pet); + public virtual void AfterAddPet(ref bool suppressDefaultLog, IAddPetApiResponse apiResponseLocalVar, Pet pet) { } /// /// Logs exceptions that occur while retrieving the server response @@ -731,7 +731,7 @@ private void OnErrorAddPetDefaultImplementation(Exception exceptionLocalVar, str /// /// /// - partial void OnErrorAddPet(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, Pet pet); + public virtual void OnErrorAddPet(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, Pet pet) { } /// /// Add a new pet to the store @@ -866,7 +866,7 @@ public AddPetApiResponse(ILogger logger, System.Net.Http.Http OnCreated(httpRequestMessage, httpResponseMessage); } - partial void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage); + public virtual void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage) { } /// /// Returns true if the response is 405 MethodNotAllowed @@ -882,10 +882,10 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } - partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); + public virtual void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode) { } } - partial void FormatDeletePet(ref long petId, ref Option apiKey); + public virtual void FormatDeletePet(ref long petId, ref Option apiKey) { } /// /// Validates the request parameters @@ -919,7 +919,7 @@ private void AfterDeletePetDefaultImplementation(IDeletePetApiResponse apiRespon /// /// /// - partial void AfterDeletePet(ref bool suppressDefaultLog, IDeletePetApiResponse apiResponseLocalVar, long petId, Option apiKey); + public virtual void AfterDeletePet(ref bool suppressDefaultLog, IDeletePetApiResponse apiResponseLocalVar, long petId, Option apiKey) { } /// /// Logs exceptions that occur while retrieving the server response @@ -946,7 +946,7 @@ private void OnErrorDeletePetDefaultImplementation(Exception exceptionLocalVar, /// /// /// - partial void OnErrorDeletePet(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, long petId, Option apiKey); + public virtual void OnErrorDeletePet(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, long petId, Option apiKey) { } /// /// Deletes a pet @@ -1063,7 +1063,7 @@ public DeletePetApiResponse(ILogger logger, System.Net.Htt OnCreated(httpRequestMessage, httpResponseMessage); } - partial void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage); + public virtual void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage) { } /// /// Returns true if the response is 400 BadRequest @@ -1079,10 +1079,10 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } - partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); + public virtual void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode) { } } - partial void FormatFindPetsByStatus(List status); + public virtual void FormatFindPetsByStatus(List status) { } /// /// Validates the request parameters @@ -1114,7 +1114,7 @@ private void AfterFindPetsByStatusDefaultImplementation(IFindPetsByStatusApiResp /// /// /// - partial void AfterFindPetsByStatus(ref bool suppressDefaultLog, IFindPetsByStatusApiResponse apiResponseLocalVar, List status); + public virtual void AfterFindPetsByStatus(ref bool suppressDefaultLog, IFindPetsByStatusApiResponse apiResponseLocalVar, List status) { } /// /// Logs exceptions that occur while retrieving the server response @@ -1139,7 +1139,7 @@ private void OnErrorFindPetsByStatusDefaultImplementation(Exception exceptionLoc /// /// /// - partial void OnErrorFindPetsByStatus(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, List status); + public virtual 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 @@ -1276,7 +1276,7 @@ public FindPetsByStatusApiResponse(ILogger logger, OnCreated(httpRequestMessage, httpResponseMessage); } - partial void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage); + public virtual void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage) { } /// /// Returns true if the response is 200 Ok @@ -1356,10 +1356,10 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } - partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); + public virtual void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode) { } } - partial void FormatFindPetsByTags(List tags); + public virtual void FormatFindPetsByTags(List tags) { } /// /// Validates the request parameters @@ -1391,7 +1391,7 @@ private void AfterFindPetsByTagsDefaultImplementation(IFindPetsByTagsApiResponse /// /// /// - partial void AfterFindPetsByTags(ref bool suppressDefaultLog, IFindPetsByTagsApiResponse apiResponseLocalVar, List tags); + public virtual void AfterFindPetsByTags(ref bool suppressDefaultLog, IFindPetsByTagsApiResponse apiResponseLocalVar, List tags) { } /// /// Logs exceptions that occur while retrieving the server response @@ -1416,7 +1416,7 @@ private void OnErrorFindPetsByTagsDefaultImplementation(Exception exceptionLocal /// /// /// - partial void OnErrorFindPetsByTags(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, List tags); + public virtual 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. @@ -1553,7 +1553,7 @@ public FindPetsByTagsApiResponse(ILogger logger, Syst OnCreated(httpRequestMessage, httpResponseMessage); } - partial void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage); + public virtual void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage) { } /// /// Returns true if the response is 200 Ok @@ -1607,10 +1607,10 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } - partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); + public virtual void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode) { } } - partial void FormatGetPetById(ref long petId); + public virtual void FormatGetPetById(ref long petId) { } /// /// Processes the server response @@ -1631,7 +1631,7 @@ private void AfterGetPetByIdDefaultImplementation(IGetPetByIdApiResponse apiResp /// /// /// - partial void AfterGetPetById(ref bool suppressDefaultLog, IGetPetByIdApiResponse apiResponseLocalVar, long petId); + public virtual void AfterGetPetById(ref bool suppressDefaultLog, IGetPetByIdApiResponse apiResponseLocalVar, long petId) { } /// /// Logs exceptions that occur while retrieving the server response @@ -1656,7 +1656,7 @@ private void OnErrorGetPetByIdDefaultImplementation(Exception exceptionLocalVar, /// /// /// - partial void OnErrorGetPetById(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, long petId); + public virtual void OnErrorGetPetById(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, long petId) { } /// /// Find pet by ID Returns a single pet @@ -1782,7 +1782,7 @@ public GetPetByIdApiResponse(ILogger logger, System.Net.H OnCreated(httpRequestMessage, httpResponseMessage); } - partial void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage); + public virtual void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage) { } /// /// Returns true if the response is 200 Ok @@ -1842,10 +1842,10 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } - partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); + public virtual void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode) { } } - partial void FormatUpdatePet(Pet pet); + public virtual void FormatUpdatePet(Pet pet) { } /// /// Validates the request parameters @@ -1877,7 +1877,7 @@ private void AfterUpdatePetDefaultImplementation(IUpdatePetApiResponse apiRespon /// /// /// - partial void AfterUpdatePet(ref bool suppressDefaultLog, IUpdatePetApiResponse apiResponseLocalVar, Pet pet); + public virtual void AfterUpdatePet(ref bool suppressDefaultLog, IUpdatePetApiResponse apiResponseLocalVar, Pet pet) { } /// /// Logs exceptions that occur while retrieving the server response @@ -1902,7 +1902,7 @@ private void OnErrorUpdatePetDefaultImplementation(Exception exceptionLocalVar, /// /// /// - partial void OnErrorUpdatePet(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, Pet pet); + public virtual void OnErrorUpdatePet(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, Pet pet) { } /// /// Update an existing pet @@ -2037,7 +2037,7 @@ public UpdatePetApiResponse(ILogger logger, System.Net.Htt OnCreated(httpRequestMessage, httpResponseMessage); } - partial void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage); + public virtual void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage) { } /// /// Returns true if the response is 400 BadRequest @@ -2065,10 +2065,10 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } - partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); + public virtual void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode) { } } - partial void FormatUpdatePetWithForm(ref long petId, ref Option name, ref Option status); + public virtual void FormatUpdatePetWithForm(ref long petId, ref Option name, ref Option status) { } /// /// Validates the request parameters @@ -2108,7 +2108,7 @@ private void AfterUpdatePetWithFormDefaultImplementation(IUpdatePetWithFormApiRe /// /// /// - partial void AfterUpdatePetWithForm(ref bool suppressDefaultLog, IUpdatePetWithFormApiResponse apiResponseLocalVar, long petId, Option name, Option status); + public virtual void AfterUpdatePetWithForm(ref bool suppressDefaultLog, IUpdatePetWithFormApiResponse apiResponseLocalVar, long petId, Option name, Option status) { } /// /// Logs exceptions that occur while retrieving the server response @@ -2137,7 +2137,7 @@ private void OnErrorUpdatePetWithFormDefaultImplementation(Exception exceptionLo /// /// /// - partial void OnErrorUpdatePetWithForm(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, long petId, Option name, Option status); + public virtual 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 @@ -2274,7 +2274,7 @@ public UpdatePetWithFormApiResponse(ILogger logger OnCreated(httpRequestMessage, httpResponseMessage); } - partial void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage); + public virtual void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage) { } /// /// Returns true if the response is 405 MethodNotAllowed @@ -2290,10 +2290,10 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } - partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); + public virtual void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode) { } } - partial void FormatUploadFile(ref long petId, ref Option additionalMetadata, ref Option file); + public virtual void FormatUploadFile(ref long petId, ref Option additionalMetadata, ref Option file) { } /// /// Validates the request parameters @@ -2333,7 +2333,7 @@ private void AfterUploadFileDefaultImplementation(IUploadFileApiResponse apiResp /// /// /// - partial void AfterUploadFile(ref bool suppressDefaultLog, IUploadFileApiResponse apiResponseLocalVar, long petId, Option additionalMetadata, Option file); + public virtual void AfterUploadFile(ref bool suppressDefaultLog, IUploadFileApiResponse apiResponseLocalVar, long petId, Option additionalMetadata, Option file) { } /// /// Logs exceptions that occur while retrieving the server response @@ -2362,7 +2362,7 @@ private void OnErrorUploadFileDefaultImplementation(Exception exceptionLocalVar, /// /// /// - partial void OnErrorUploadFile(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, long petId, Option additionalMetadata, Option file); + public virtual void OnErrorUploadFile(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, long petId, Option additionalMetadata, Option file) { } /// /// uploads an image @@ -2508,7 +2508,7 @@ public UploadFileApiResponse(ILogger logger, System.Net.H OnCreated(httpRequestMessage, httpResponseMessage); } - partial void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage); + public virtual void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage) { } /// /// Returns true if the response is 200 Ok @@ -2556,10 +2556,10 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } - partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); + public virtual void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode) { } } - partial void FormatUploadFileWithRequiredFile(ref long petId, ref System.IO.Stream requiredFile, ref Option additionalMetadata); + public virtual void FormatUploadFileWithRequiredFile(ref long petId, ref System.IO.Stream requiredFile, ref Option additionalMetadata) { } /// /// Validates the request parameters @@ -2599,7 +2599,7 @@ private void AfterUploadFileWithRequiredFileDefaultImplementation(IUploadFileWit /// /// /// - partial void AfterUploadFileWithRequiredFile(ref bool suppressDefaultLog, IUploadFileWithRequiredFileApiResponse apiResponseLocalVar, long petId, System.IO.Stream requiredFile, Option additionalMetadata); + public virtual void AfterUploadFileWithRequiredFile(ref bool suppressDefaultLog, IUploadFileWithRequiredFileApiResponse apiResponseLocalVar, long petId, System.IO.Stream requiredFile, Option additionalMetadata) { } /// /// Logs exceptions that occur while retrieving the server response @@ -2628,7 +2628,7 @@ private void OnErrorUploadFileWithRequiredFileDefaultImplementation(Exception ex /// /// /// - partial void OnErrorUploadFileWithRequiredFile(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, long petId, System.IO.Stream requiredFile, Option additionalMetadata); + public virtual void OnErrorUploadFileWithRequiredFile(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, long petId, System.IO.Stream requiredFile, Option additionalMetadata) { } /// /// uploads an image (required) @@ -2774,7 +2774,7 @@ public UploadFileWithRequiredFileApiResponse(ILogger /// Returns true if the response is 200 Ok @@ -2822,7 +2822,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } - partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); + public virtual void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode) { } } } } 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 b3cd5adcbcca..784116525742 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 @@ -357,7 +357,7 @@ public StoreApi(ILogger logger, ILoggerFactory loggerFactory, HttpClie OauthTokenProvider = oauthTokenProvider; } - partial void FormatDeleteOrder(ref string orderId); + public virtual void FormatDeleteOrder(ref string orderId) { } /// /// Validates the request parameters @@ -389,7 +389,7 @@ private void AfterDeleteOrderDefaultImplementation(IDeleteOrderApiResponse apiRe /// /// /// - partial void AfterDeleteOrder(ref bool suppressDefaultLog, IDeleteOrderApiResponse apiResponseLocalVar, string orderId); + public virtual void AfterDeleteOrder(ref bool suppressDefaultLog, IDeleteOrderApiResponse apiResponseLocalVar, string orderId) { } /// /// Logs exceptions that occur while retrieving the server response @@ -414,7 +414,7 @@ private void OnErrorDeleteOrderDefaultImplementation(Exception exceptionLocalVar /// /// /// - partial void OnErrorDeleteOrder(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, string orderId); + public virtual 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 @@ -515,7 +515,7 @@ public DeleteOrderApiResponse(ILogger logger, System.Net OnCreated(httpRequestMessage, httpResponseMessage); } - partial void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage); + public virtual void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage) { } /// /// Returns true if the response is 400 BadRequest @@ -537,7 +537,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } - partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); + public virtual void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode) { } } /// @@ -557,7 +557,7 @@ private void AfterGetInventoryDefaultImplementation(IGetInventoryApiResponse api /// /// /// - partial void AfterGetInventory(ref bool suppressDefaultLog, IGetInventoryApiResponse apiResponseLocalVar); + public virtual void AfterGetInventory(ref bool suppressDefaultLog, IGetInventoryApiResponse apiResponseLocalVar) { } /// /// Logs exceptions that occur while retrieving the server response @@ -580,7 +580,7 @@ private void OnErrorGetInventoryDefaultImplementation(Exception exceptionLocalVa /// /// /// - partial void OnErrorGetInventory(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar); + public virtual void OnErrorGetInventory(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar) { } /// /// Returns pet inventories by status Returns a map of status codes to quantities @@ -692,7 +692,7 @@ public GetInventoryApiResponse(ILogger logger, System.N OnCreated(httpRequestMessage, httpResponseMessage); } - partial void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage); + public virtual void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage) { } /// /// Returns true if the response is 200 Ok @@ -740,10 +740,10 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } - partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); + public virtual void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode) { } } - partial void FormatGetOrderById(ref long orderId); + public virtual void FormatGetOrderById(ref long orderId) { } /// /// Processes the server response @@ -764,7 +764,7 @@ private void AfterGetOrderByIdDefaultImplementation(IGetOrderByIdApiResponse api /// /// /// - partial void AfterGetOrderById(ref bool suppressDefaultLog, IGetOrderByIdApiResponse apiResponseLocalVar, long orderId); + public virtual void AfterGetOrderById(ref bool suppressDefaultLog, IGetOrderByIdApiResponse apiResponseLocalVar, long orderId) { } /// /// Logs exceptions that occur while retrieving the server response @@ -789,7 +789,7 @@ private void OnErrorGetOrderByIdDefaultImplementation(Exception exceptionLocalVa /// /// /// - partial void OnErrorGetOrderById(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, long orderId); + public virtual 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 @@ -898,7 +898,7 @@ public GetOrderByIdApiResponse(ILogger logger, System.N OnCreated(httpRequestMessage, httpResponseMessage); } - partial void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage); + public virtual void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage) { } /// /// Returns true if the response is 200 Ok @@ -958,10 +958,10 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } - partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); + public virtual void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode) { } } - partial void FormatPlaceOrder(Order order); + public virtual void FormatPlaceOrder(Order order) { } /// /// Validates the request parameters @@ -993,7 +993,7 @@ private void AfterPlaceOrderDefaultImplementation(IPlaceOrderApiResponse apiResp /// /// /// - partial void AfterPlaceOrder(ref bool suppressDefaultLog, IPlaceOrderApiResponse apiResponseLocalVar, Order order); + public virtual void AfterPlaceOrder(ref bool suppressDefaultLog, IPlaceOrderApiResponse apiResponseLocalVar, Order order) { } /// /// Logs exceptions that occur while retrieving the server response @@ -1018,7 +1018,7 @@ private void OnErrorPlaceOrderDefaultImplementation(Exception exceptionLocalVar, /// /// /// - partial void OnErrorPlaceOrder(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, Order order); + public virtual void OnErrorPlaceOrder(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, Order order) { } /// /// Place an order for a pet @@ -1141,7 +1141,7 @@ public PlaceOrderApiResponse(ILogger logger, System.Net.H OnCreated(httpRequestMessage, httpResponseMessage); } - partial void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage); + public virtual void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage) { } /// /// Returns true if the response is 200 Ok @@ -1195,7 +1195,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } - partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); + public virtual void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode) { } } } } 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 788e681d73c8..8bbc51664cf0 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 @@ -607,7 +607,7 @@ public UserApi(ILogger logger, ILoggerFactory loggerFactory, HttpClient CookieContainer = cookieContainer; } - partial void FormatCreateUser(User user); + public virtual void FormatCreateUser(User user) { } /// /// Validates the request parameters @@ -639,7 +639,7 @@ private void AfterCreateUserDefaultImplementation(ICreateUserApiResponse apiResp /// /// /// - partial void AfterCreateUser(ref bool suppressDefaultLog, ICreateUserApiResponse apiResponseLocalVar, User user); + public virtual void AfterCreateUser(ref bool suppressDefaultLog, ICreateUserApiResponse apiResponseLocalVar, User user) { } /// /// Logs exceptions that occur while retrieving the server response @@ -664,7 +664,7 @@ private void OnErrorCreateUserDefaultImplementation(Exception exceptionLocalVar, /// /// /// - partial void OnErrorCreateUser(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, User user); + public virtual 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. @@ -777,7 +777,7 @@ public CreateUserApiResponse(ILogger logger, System.Net.H OnCreated(httpRequestMessage, httpResponseMessage); } - partial void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage); + public virtual void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage) { } /// /// Returns true if the response is the default response type @@ -793,10 +793,10 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } - partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); + public virtual void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode) { } } - partial void FormatCreateUsersWithArrayInput(List user); + public virtual void FormatCreateUsersWithArrayInput(List user) { } /// /// Validates the request parameters @@ -828,7 +828,7 @@ private void AfterCreateUsersWithArrayInputDefaultImplementation(ICreateUsersWit /// /// /// - partial void AfterCreateUsersWithArrayInput(ref bool suppressDefaultLog, ICreateUsersWithArrayInputApiResponse apiResponseLocalVar, List user); + public virtual void AfterCreateUsersWithArrayInput(ref bool suppressDefaultLog, ICreateUsersWithArrayInputApiResponse apiResponseLocalVar, List user) { } /// /// Logs exceptions that occur while retrieving the server response @@ -853,7 +853,7 @@ private void OnErrorCreateUsersWithArrayInputDefaultImplementation(Exception exc /// /// /// - partial void OnErrorCreateUsersWithArrayInput(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, List user); + public virtual void OnErrorCreateUsersWithArrayInput(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, List user) { } /// /// Creates list of users with given input array @@ -966,7 +966,7 @@ public CreateUsersWithArrayInputApiResponse(ILogger /// Returns true if the response is the default response type @@ -982,10 +982,10 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } - partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); + public virtual void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode) { } } - partial void FormatCreateUsersWithListInput(List user); + public virtual void FormatCreateUsersWithListInput(List user) { } /// /// Validates the request parameters @@ -1017,7 +1017,7 @@ private void AfterCreateUsersWithListInputDefaultImplementation(ICreateUsersWith /// /// /// - partial void AfterCreateUsersWithListInput(ref bool suppressDefaultLog, ICreateUsersWithListInputApiResponse apiResponseLocalVar, List user); + public virtual void AfterCreateUsersWithListInput(ref bool suppressDefaultLog, ICreateUsersWithListInputApiResponse apiResponseLocalVar, List user) { } /// /// Logs exceptions that occur while retrieving the server response @@ -1042,7 +1042,7 @@ private void OnErrorCreateUsersWithListInputDefaultImplementation(Exception exce /// /// /// - partial void OnErrorCreateUsersWithListInput(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, List user); + public virtual void OnErrorCreateUsersWithListInput(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, List user) { } /// /// Creates list of users with given input array @@ -1155,7 +1155,7 @@ public CreateUsersWithListInputApiResponse(ILogger /// Returns true if the response is the default response type @@ -1171,10 +1171,10 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } - partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); + public virtual void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode) { } } - partial void FormatDeleteUser(ref string username); + public virtual void FormatDeleteUser(ref string username) { } /// /// Validates the request parameters @@ -1206,7 +1206,7 @@ private void AfterDeleteUserDefaultImplementation(IDeleteUserApiResponse apiResp /// /// /// - partial void AfterDeleteUser(ref bool suppressDefaultLog, IDeleteUserApiResponse apiResponseLocalVar, string username); + public virtual void AfterDeleteUser(ref bool suppressDefaultLog, IDeleteUserApiResponse apiResponseLocalVar, string username) { } /// /// Logs exceptions that occur while retrieving the server response @@ -1231,7 +1231,7 @@ private void OnErrorDeleteUserDefaultImplementation(Exception exceptionLocalVar, /// /// /// - partial void OnErrorDeleteUser(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, string username); + public virtual 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. @@ -1332,7 +1332,7 @@ public DeleteUserApiResponse(ILogger logger, System.Net.H OnCreated(httpRequestMessage, httpResponseMessage); } - partial void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage); + public virtual void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage) { } /// /// Returns true if the response is 400 BadRequest @@ -1354,10 +1354,10 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } - partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); + public virtual void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode) { } } - partial void FormatGetUserByName(ref string username); + public virtual void FormatGetUserByName(ref string username) { } /// /// Validates the request parameters @@ -1389,7 +1389,7 @@ private void AfterGetUserByNameDefaultImplementation(IGetUserByNameApiResponse a /// /// /// - partial void AfterGetUserByName(ref bool suppressDefaultLog, IGetUserByNameApiResponse apiResponseLocalVar, string username); + public virtual void AfterGetUserByName(ref bool suppressDefaultLog, IGetUserByNameApiResponse apiResponseLocalVar, string username) { } /// /// Logs exceptions that occur while retrieving the server response @@ -1414,7 +1414,7 @@ private void OnErrorGetUserByNameDefaultImplementation(Exception exceptionLocalV /// /// /// - partial void OnErrorGetUserByName(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, string username); + public virtual void OnErrorGetUserByName(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, string username) { } /// /// Get user by user name @@ -1525,7 +1525,7 @@ public GetUserByNameApiResponse(ILogger logger, System OnCreated(httpRequestMessage, httpResponseMessage); } - partial void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage); + public virtual void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage) { } /// /// Returns true if the response is 200 Ok @@ -1629,10 +1629,10 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } - partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); + public virtual void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode) { } } - partial void FormatLoginUser(ref string password, ref string username); + public virtual void FormatLoginUser(ref string password, ref string username) { } /// /// Validates the request parameters @@ -1670,7 +1670,7 @@ private void AfterLoginUserDefaultImplementation(ILoginUserApiResponse apiRespon /// /// /// - partial void AfterLoginUser(ref bool suppressDefaultLog, ILoginUserApiResponse apiResponseLocalVar, string password, string username); + public virtual void AfterLoginUser(ref bool suppressDefaultLog, ILoginUserApiResponse apiResponseLocalVar, string password, string username) { } /// /// Logs exceptions that occur while retrieving the server response @@ -1697,7 +1697,7 @@ private void OnErrorLoginUserDefaultImplementation(Exception exceptionLocalVar, /// /// /// - partial void OnErrorLoginUser(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, string password, string username); + public virtual void OnErrorLoginUser(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, string password, string username) { } /// /// Logs user into the system @@ -1843,7 +1843,7 @@ public LoginUserApiResponse(ILogger logger, System.Net.Htt OnCreated(httpRequestMessage, httpResponseMessage); } - partial void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage); + public virtual void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage) { } /// /// Returns true if the response is 200 Ok @@ -1897,7 +1897,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } - partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); + public virtual void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode) { } } /// @@ -1917,7 +1917,7 @@ private void AfterLogoutUserDefaultImplementation(ILogoutUserApiResponse apiResp /// /// /// - partial void AfterLogoutUser(ref bool suppressDefaultLog, ILogoutUserApiResponse apiResponseLocalVar); + public virtual void AfterLogoutUser(ref bool suppressDefaultLog, ILogoutUserApiResponse apiResponseLocalVar) { } /// /// Logs exceptions that occur while retrieving the server response @@ -1940,7 +1940,7 @@ private void OnErrorLogoutUserDefaultImplementation(Exception exceptionLocalVar, /// /// /// - partial void OnErrorLogoutUser(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar); + public virtual void OnErrorLogoutUser(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar) { } /// /// Logs out current logged in user session @@ -2034,7 +2034,7 @@ public LogoutUserApiResponse(ILogger logger, System.Net.H OnCreated(httpRequestMessage, httpResponseMessage); } - partial void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage); + public virtual void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage) { } /// /// Returns true if the response is the default response type @@ -2050,10 +2050,10 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } - partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); + public virtual void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode) { } } - partial void FormatUpdateUser(User user, ref string username); + public virtual void FormatUpdateUser(User user, ref string username) { } /// /// Validates the request parameters @@ -2091,7 +2091,7 @@ private void AfterUpdateUserDefaultImplementation(IUpdateUserApiResponse apiResp /// /// /// - partial void AfterUpdateUser(ref bool suppressDefaultLog, IUpdateUserApiResponse apiResponseLocalVar, User user, string username); + public virtual void AfterUpdateUser(ref bool suppressDefaultLog, IUpdateUserApiResponse apiResponseLocalVar, User user, string username) { } /// /// Logs exceptions that occur while retrieving the server response @@ -2118,7 +2118,7 @@ private void OnErrorUpdateUserDefaultImplementation(Exception exceptionLocalVar, /// /// /// - partial void OnErrorUpdateUser(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, User user, string username); + public virtual 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. @@ -2234,7 +2234,7 @@ public UpdateUserApiResponse(ILogger logger, System.Net.H OnCreated(httpRequestMessage, httpResponseMessage); } - partial void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage); + public virtual void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage) { } /// /// Returns true if the response is 400 BadRequest @@ -2256,7 +2256,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } - partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); + public virtual void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode) { } } } } diff --git a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Client/ApiResponse`1.cs b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Client/ApiResponse`1.cs index 794b3601c853..969c6405e1d3 100644 --- a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Client/ApiResponse`1.cs +++ b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Client/ApiResponse`1.cs @@ -145,7 +145,7 @@ public ApiResponse(global::System.Net.Http.HttpRequestMessage httpRequestMessage OnCreated(httpRequestMessage, httpResponseMessage); } - partial void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage); + public virtual void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage) { } } /// diff --git a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/Activity.cs b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/Activity.cs index f9d2680b0ad5..a3e5736b07e4 100644 --- a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/Activity.cs +++ b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/Activity.cs @@ -40,7 +40,7 @@ public Activity(Option /// Used to track the state of ActivityOutputs diff --git a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/ActivityOutputElementRepresentation.cs b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/ActivityOutputElementRepresentation.cs index f5bcaf712030..ac3775b3da13 100644 --- a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/ActivityOutputElementRepresentation.cs +++ b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/ActivityOutputElementRepresentation.cs @@ -42,7 +42,7 @@ public ActivityOutputElementRepresentation(Option prop1 = default, Optio OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Used to track the state of Prop1 diff --git a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/AdditionalPropertiesClass.cs b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/AdditionalPropertiesClass.cs index 8d4153d53022..4f04553d468d 100644 --- a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/AdditionalPropertiesClass.cs +++ b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/AdditionalPropertiesClass.cs @@ -54,7 +54,7 @@ public AdditionalPropertiesClass(Option anytype1 = default, Option /// Used to track the state of Anytype1 diff --git a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/Animal.cs b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/Animal.cs index d0b07da62cc8..e9cde08adbdf 100644 --- a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/Animal.cs +++ b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/Animal.cs @@ -40,7 +40,7 @@ public Animal(Option color = default) OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// The discriminator diff --git a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/ApiResponse.cs b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/ApiResponse.cs index 3b185247e442..599662786106 100644 --- a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/ApiResponse.cs +++ b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/ApiResponse.cs @@ -44,7 +44,7 @@ public ApiResponse(Option code = default, Option message = default OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Used to track the state of Code diff --git a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/Apple.cs b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/Apple.cs index 26fbe0516849..fae239859475 100644 --- a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/Apple.cs +++ b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/Apple.cs @@ -44,7 +44,7 @@ public Apple(Option colorCode = default, Option cultivar = defau OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Used to track the state of ColorCode diff --git a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/AppleReq.cs b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/AppleReq.cs index 942640761b26..ae520d817b21 100644 --- a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/AppleReq.cs +++ b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/AppleReq.cs @@ -42,7 +42,7 @@ public AppleReq(string cultivar, Option mealy = default) OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Gets or Sets Cultivar diff --git a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/ArrayOfArrayOfNumberOnly.cs b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/ArrayOfArrayOfNumberOnly.cs index debcff217b93..d8dea839aea5 100644 --- a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/ArrayOfArrayOfNumberOnly.cs +++ b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/ArrayOfArrayOfNumberOnly.cs @@ -40,7 +40,7 @@ public ArrayOfArrayOfNumberOnly(Option>> arrayArrayNumber = d OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Used to track the state of ArrayArrayNumber diff --git a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/ArrayOfNumberOnly.cs b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/ArrayOfNumberOnly.cs index ded293438a45..b18a2efc75de 100644 --- a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/ArrayOfNumberOnly.cs +++ b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/ArrayOfNumberOnly.cs @@ -40,7 +40,7 @@ public ArrayOfNumberOnly(Option> arrayNumber = default) OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Used to track the state of ArrayNumber diff --git a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/ArrayTest.cs b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/ArrayTest.cs index ee7b94f08bd3..8a99a3ce0603 100644 --- a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/ArrayTest.cs +++ b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/ArrayTest.cs @@ -44,7 +44,7 @@ public ArrayTest(Option>> arrayArrayOfInteger = default, Option< OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Used to track the state of ArrayArrayOfInteger diff --git a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/Banana.cs b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/Banana.cs index 476a1c25352b..921e4d79eef3 100644 --- a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/Banana.cs +++ b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/Banana.cs @@ -40,7 +40,7 @@ public Banana(Option lengthCm = default) OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Used to track the state of LengthCm diff --git a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/BananaReq.cs b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/BananaReq.cs index a3a0a15428b4..eda50da1c0c3 100644 --- a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/BananaReq.cs +++ b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/BananaReq.cs @@ -42,7 +42,7 @@ public BananaReq(decimal lengthCm, Option sweet = default) OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Gets or Sets LengthCm diff --git a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/BasquePig.cs b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/BasquePig.cs index 9938d89e008d..3bb04d8e04e1 100644 --- a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/BasquePig.cs +++ b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/BasquePig.cs @@ -40,7 +40,7 @@ public BasquePig(string className) OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Gets or Sets ClassName diff --git a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/Capitalization.cs b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/Capitalization.cs index 8308df3a0912..19305bde498d 100644 --- a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/Capitalization.cs +++ b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/Capitalization.cs @@ -50,7 +50,7 @@ public Capitalization(Option aTTNAME = default, Option capitalCa OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Used to track the state of ATT_NAME diff --git a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/Cat.cs b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/Cat.cs index 6a1dfe1d90b6..a139c5a508fa 100644 --- a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/Cat.cs +++ b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/Cat.cs @@ -41,7 +41,7 @@ public Cat(Option color = default, Option declawed = default) : b OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// The discriminator diff --git a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/Category.cs b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/Category.cs index 9bd387646078..30e8753b442c 100644 --- a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/Category.cs +++ b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/Category.cs @@ -42,7 +42,7 @@ public Category(Option id = default, string name = @"default-name") OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Used to track the state of Id diff --git a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/ChildCat.cs b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/ChildCat.cs index 87a49cbe08f0..25b6695bcb34 100644 --- a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/ChildCat.cs +++ b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/ChildCat.cs @@ -40,7 +40,7 @@ public ChildCat(Option name = default) : base() OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Defines PetType diff --git a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/ClassModel.cs b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/ClassModel.cs index 9730e5b1185e..6df558296e85 100644 --- a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/ClassModel.cs +++ b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/ClassModel.cs @@ -40,7 +40,7 @@ public ClassModel(Option @class = default) OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Used to track the state of Class diff --git a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/ComplexQuadrilateral.cs b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/ComplexQuadrilateral.cs index 3023a45610e4..9ed7d63b7732 100644 --- a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/ComplexQuadrilateral.cs +++ b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/ComplexQuadrilateral.cs @@ -42,7 +42,7 @@ public ComplexQuadrilateral(string quadrilateralType, string shapeType) OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Gets or Sets QuadrilateralType diff --git a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/DanishPig.cs b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/DanishPig.cs index 14b2ed3b153f..8377e0f76cf5 100644 --- a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/DanishPig.cs +++ b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/DanishPig.cs @@ -40,7 +40,7 @@ public DanishPig(string className) OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Gets or Sets ClassName diff --git a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/DateOnlyClass.cs b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/DateOnlyClass.cs index 1f3a3bb8a98e..765cf5872bf5 100644 --- a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/DateOnlyClass.cs +++ b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/DateOnlyClass.cs @@ -40,7 +40,7 @@ public DateOnlyClass(Option dateOnlyProperty = default) OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Used to track the state of DateOnlyProperty diff --git a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/DeprecatedObject.cs b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/DeprecatedObject.cs index 65695f863abb..3380f335d8dc 100644 --- a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/DeprecatedObject.cs +++ b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/DeprecatedObject.cs @@ -40,7 +40,7 @@ public DeprecatedObject(Option name = default) OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Used to track the state of Name diff --git a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/Dog.cs b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/Dog.cs index 2ab1ca19d2d0..7acbb7afa118 100644 --- a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/Dog.cs +++ b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/Dog.cs @@ -41,7 +41,7 @@ public Dog(Option breed = default, Option color = default) : bas OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// The discriminator diff --git a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/Drawing.cs b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/Drawing.cs index 72e59c9baf44..e58839823ea3 100644 --- a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/Drawing.cs +++ b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/Drawing.cs @@ -46,7 +46,7 @@ public Drawing(Option mainShape = default, Option nullable OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Used to track the state of MainShape diff --git a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/EnumArrays.cs b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/EnumArrays.cs index 4eb9365b1f54..71a133c99448 100644 --- a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/EnumArrays.cs +++ b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/EnumArrays.cs @@ -42,7 +42,7 @@ public EnumArrays(Option> arrayEnum = default, Op OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Defines ArrayEnum diff --git a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/EnumTest.cs b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/EnumTest.cs index f7a3a20b1b10..22a05d24deb3 100644 --- a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/EnumTest.cs +++ b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/EnumTest.cs @@ -56,7 +56,7 @@ public EnumTest(EnumStringRequiredEnum enumStringRequired, Option /// Defines EnumStringRequired diff --git a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/EquilateralTriangle.cs b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/EquilateralTriangle.cs index d65c7740e5e8..e68cf480a05f 100644 --- a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/EquilateralTriangle.cs +++ b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/EquilateralTriangle.cs @@ -42,7 +42,7 @@ public EquilateralTriangle(string shapeType, string triangleType) OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Gets or Sets ShapeType diff --git a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/File.cs b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/File.cs index 3962bf2beee0..ff523b533654 100644 --- a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/File.cs +++ b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/File.cs @@ -40,7 +40,7 @@ public File(Option sourceURI = default) OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Used to track the state of SourceURI diff --git a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/FileSchemaTestClass.cs b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/FileSchemaTestClass.cs index b4307b69a3b6..543c139daa38 100644 --- a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/FileSchemaTestClass.cs +++ b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/FileSchemaTestClass.cs @@ -42,7 +42,7 @@ public FileSchemaTestClass(Option file = default, Option> files OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Used to track the state of File diff --git a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/Foo.cs b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/Foo.cs index 8c2e7c2aeb35..fbb8d26265ac 100644 --- a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/Foo.cs +++ b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/Foo.cs @@ -40,7 +40,7 @@ public Foo(Option bar = default) OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Used to track the state of Bar diff --git a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/FooGetDefaultResponse.cs b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/FooGetDefaultResponse.cs index 1540483527a3..39135550dff6 100644 --- a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/FooGetDefaultResponse.cs +++ b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/FooGetDefaultResponse.cs @@ -40,7 +40,7 @@ public FooGetDefaultResponse(Option @string = default) OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Used to track the state of String diff --git a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/FormatTest.cs b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/FormatTest.cs index 96902abd13a6..7a6bd4f26ad7 100644 --- a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/FormatTest.cs +++ b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/FormatTest.cs @@ -86,7 +86,7 @@ public FormatTest(byte[] @byte, DateOnly date, decimal number, string password, OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Gets or Sets Byte diff --git a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/Fruit.cs b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/Fruit.cs index 1b74f3034c82..3555f3cbb115 100644 --- a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/Fruit.cs +++ b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/Fruit.cs @@ -53,7 +53,7 @@ public Fruit(Banana banana, Option color = default) OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Gets or Sets Apple diff --git a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/FruitReq.cs b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/FruitReq.cs index 1e72875d4d32..fad135111099 100644 --- a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/FruitReq.cs +++ b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/FruitReq.cs @@ -49,7 +49,7 @@ public FruitReq(BananaReq bananaReq) OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Gets or Sets AppleReq diff --git a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/GmFruit.cs b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/GmFruit.cs index d5f9d222bc04..b5e645f68915 100644 --- a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/GmFruit.cs +++ b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/GmFruit.cs @@ -43,7 +43,7 @@ public GmFruit(Option apple, Option banana, Option color OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Used to track the state of Apple diff --git a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/GrandparentAnimal.cs b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/GrandparentAnimal.cs index b23e4826fd6b..6bbb19b1789e 100644 --- a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/GrandparentAnimal.cs +++ b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/GrandparentAnimal.cs @@ -38,7 +38,7 @@ public GrandparentAnimal() OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// The discriminator diff --git a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/HasOnlyReadOnly.cs b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/HasOnlyReadOnly.cs index a4e67f73a8e5..45947ab3cd6a 100644 --- a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/HasOnlyReadOnly.cs +++ b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/HasOnlyReadOnly.cs @@ -42,7 +42,7 @@ internal HasOnlyReadOnly(Option bar = default, Option foo = defa OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Used to track the state of Bar diff --git a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/HealthCheckResult.cs b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/HealthCheckResult.cs index 4b7b17d3f58a..1d1c09552fa0 100644 --- a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/HealthCheckResult.cs +++ b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/HealthCheckResult.cs @@ -40,7 +40,7 @@ public HealthCheckResult(Option nullableMessage = default) OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Used to track the state of NullableMessage diff --git a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/IsoscelesTriangle.cs b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/IsoscelesTriangle.cs index cce859524111..651f261659c1 100644 --- a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/IsoscelesTriangle.cs +++ b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/IsoscelesTriangle.cs @@ -42,7 +42,7 @@ public IsoscelesTriangle(string shapeType, string triangleType) OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Gets or Sets ShapeType diff --git a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/List.cs b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/List.cs index 8880c4c197e5..888736d83778 100644 --- a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/List.cs +++ b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/List.cs @@ -40,7 +40,7 @@ public List(Option var123List = default) OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Used to track the state of Var123List diff --git a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/LiteralStringClass.cs b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/LiteralStringClass.cs index 4c97ce2b0066..c5142dc014d5 100644 --- a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/LiteralStringClass.cs +++ b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/LiteralStringClass.cs @@ -42,7 +42,7 @@ public LiteralStringClass(Option escapedLiteralString = default, Option< OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Used to track the state of EscapedLiteralString diff --git a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/Mammal.cs b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/Mammal.cs index 267ac8769d31..d9a8cde9cd81 100644 --- a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/Mammal.cs +++ b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/Mammal.cs @@ -59,7 +59,7 @@ public Mammal(Pig pig) OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Gets or Sets Whale diff --git a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/MapTest.cs b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/MapTest.cs index 938d01fec443..7c60f0a10549 100644 --- a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/MapTest.cs +++ b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/MapTest.cs @@ -46,7 +46,7 @@ public MapTest(Option> directMap = default, Option /// Defines Inner diff --git a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/MixLog.cs b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/MixLog.cs index defed9c5c7c8..8b1643447a1e 100644 --- a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/MixLog.cs +++ b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/MixLog.cs @@ -102,7 +102,7 @@ public MixLog(string description, DateTime formulaVersionDate, Guid id, DateTime OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Gets or Sets Description diff --git a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/MixedAnyOf.cs b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/MixedAnyOf.cs index 674358380306..adb6369a88f2 100644 --- a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/MixedAnyOf.cs +++ b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/MixedAnyOf.cs @@ -40,7 +40,7 @@ public MixedAnyOf(Option content = default) OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Used to track the state of Content diff --git a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/MixedAnyOfContent.cs b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/MixedAnyOfContent.cs index 4d5b99d03e4c..b29dfb919911 100644 --- a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/MixedAnyOfContent.cs +++ b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/MixedAnyOfContent.cs @@ -47,7 +47,7 @@ public MixedAnyOfContent(Option @string, Option @bool, Option /// Used to track the state of String diff --git a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/MixedOneOf.cs b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/MixedOneOf.cs index 2467daa6e2b3..ab7e058c40a4 100644 --- a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/MixedOneOf.cs +++ b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/MixedOneOf.cs @@ -40,7 +40,7 @@ public MixedOneOf(Option content = default) OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Used to track the state of Content diff --git a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/MixedOneOfContent.cs b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/MixedOneOfContent.cs index 4cb69dae28cd..bd9823fdcbc1 100644 --- a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/MixedOneOfContent.cs +++ b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/MixedOneOfContent.cs @@ -79,7 +79,7 @@ public MixedOneOfContent(MixedSubId mixedSubId) OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Gets or Sets String diff --git a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/MixedPropertiesAndAdditionalPropertiesClass.cs b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/MixedPropertiesAndAdditionalPropertiesClass.cs index 808a4b66c6f2..dc2c1120b463 100644 --- a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/MixedPropertiesAndAdditionalPropertiesClass.cs +++ b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/MixedPropertiesAndAdditionalPropertiesClass.cs @@ -46,7 +46,7 @@ public MixedPropertiesAndAdditionalPropertiesClass(Option dateTime = OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Used to track the state of DateTime diff --git a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/MixedSubId.cs b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/MixedSubId.cs index 05c06c0129ed..e5d291e1948b 100644 --- a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/MixedSubId.cs +++ b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/MixedSubId.cs @@ -40,7 +40,7 @@ public MixedSubId(Option id = default) OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Used to track the state of Id diff --git a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/Model200Response.cs b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/Model200Response.cs index 8e865d8efae7..b2b41dd6d9fb 100644 --- a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/Model200Response.cs +++ b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/Model200Response.cs @@ -42,7 +42,7 @@ public Model200Response(Option @class = default, Option name = def OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Used to track the state of Class diff --git a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/ModelClient.cs b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/ModelClient.cs index 60a778b3a743..9d4ef9c384cb 100644 --- a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/ModelClient.cs +++ b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/ModelClient.cs @@ -40,7 +40,7 @@ public ModelClient(Option varClient = default) OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Used to track the state of VarClient diff --git a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/Name.cs b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/Name.cs index db407f5e3553..87b11258f4cc 100644 --- a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/Name.cs +++ b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/Name.cs @@ -46,7 +46,7 @@ public Name(int varName, Option property = default, Option snakeCa OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Gets or Sets VarName diff --git a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/NotificationtestGetElementsV1ResponseMPayload.cs b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/NotificationtestGetElementsV1ResponseMPayload.cs index ea8abdda0d78..d6c1a4bf339b 100644 --- a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/NotificationtestGetElementsV1ResponseMPayload.cs +++ b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/NotificationtestGetElementsV1ResponseMPayload.cs @@ -42,7 +42,7 @@ public NotificationtestGetElementsV1ResponseMPayload(List /// Gets or Sets AObjVariableobject diff --git a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/NullableClass.cs b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/NullableClass.cs index 3b9f00ed6666..c1c3244c9afb 100644 --- a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/NullableClass.cs +++ b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/NullableClass.cs @@ -62,7 +62,7 @@ public NullableClass(Option> arrayAndItemsNullableProp = default, O OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Used to track the state of ArrayAndItemsNullableProp diff --git a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/NullableGuidClass.cs b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/NullableGuidClass.cs index 5f369537bb2a..90f972c22b24 100644 --- a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/NullableGuidClass.cs +++ b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/NullableGuidClass.cs @@ -40,7 +40,7 @@ public NullableGuidClass(Option uuid = default) OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Used to track the state of Uuid diff --git a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/NullableShape.cs b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/NullableShape.cs index 9a93cb734e9c..995568e86c42 100644 --- a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/NullableShape.cs +++ b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/NullableShape.cs @@ -49,7 +49,7 @@ public NullableShape(Quadrilateral quadrilateral) OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Gets or Sets Triangle diff --git a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/NumberOnly.cs b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/NumberOnly.cs index f720208fafe0..d6399df1ae8d 100644 --- a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/NumberOnly.cs +++ b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/NumberOnly.cs @@ -40,7 +40,7 @@ public NumberOnly(Option justNumber = default) OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Used to track the state of JustNumber diff --git a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/ObjectWithDeprecatedFields.cs b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/ObjectWithDeprecatedFields.cs index 50ad5aef5a1b..59c8d1eb6859 100644 --- a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/ObjectWithDeprecatedFields.cs +++ b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/ObjectWithDeprecatedFields.cs @@ -46,7 +46,7 @@ public ObjectWithDeprecatedFields(Option> bars = default, Option /// Used to track the state of Bars diff --git a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/OneOfString.cs b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/OneOfString.cs index c89963f55a36..999f3ce9a2e5 100644 --- a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/OneOfString.cs +++ b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/OneOfString.cs @@ -39,7 +39,7 @@ internal OneOfString(string @string) OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Gets or Sets String diff --git a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/Order.cs b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/Order.cs index ee5777aabe75..19a2e1cdaf51 100644 --- a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/Order.cs +++ b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/Order.cs @@ -50,7 +50,7 @@ public Order(Option complete = default, Option id = default, Optio OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Order Status diff --git a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/OuterComposite.cs b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/OuterComposite.cs index 5a072449fae0..7736d80ba48e 100644 --- a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/OuterComposite.cs +++ b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/OuterComposite.cs @@ -44,7 +44,7 @@ public OuterComposite(Option myBoolean = default, Option myNumb OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Used to track the state of MyBoolean diff --git a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/ParentPet.cs b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/ParentPet.cs index 83104e900d01..dd6f0777ee48 100644 --- a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/ParentPet.cs +++ b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/ParentPet.cs @@ -38,7 +38,7 @@ public ParentPet() : base() OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// The discriminator diff --git a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/Pet.cs b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/Pet.cs index 8e7b548b39fd..a9b89e815632 100644 --- a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/Pet.cs +++ b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/Pet.cs @@ -50,7 +50,7 @@ public Pet(string name, List photoUrls, Option category = defa OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// pet status in the store diff --git a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/Pig.cs b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/Pig.cs index b6f300c94400..6cbb846229e6 100644 --- a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/Pig.cs +++ b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/Pig.cs @@ -49,7 +49,7 @@ public Pig(DanishPig danishPig) OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Gets or Sets BasquePig diff --git a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/PolymorphicProperty.cs b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/PolymorphicProperty.cs index ddea47edf40c..a0fdf9fa39c7 100644 --- a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/PolymorphicProperty.cs +++ b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/PolymorphicProperty.cs @@ -69,7 +69,7 @@ internal PolymorphicProperty(List list) OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Gets or Sets Bool diff --git a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/Quadrilateral.cs b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/Quadrilateral.cs index e8a2e2439975..a95ca8f058bf 100644 --- a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/Quadrilateral.cs +++ b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/Quadrilateral.cs @@ -49,7 +49,7 @@ public Quadrilateral(ComplexQuadrilateral complexQuadrilateral) OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Gets or Sets SimpleQuadrilateral diff --git a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/QuadrilateralInterface.cs b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/QuadrilateralInterface.cs index 519ed66393ca..08cade10a83f 100644 --- a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/QuadrilateralInterface.cs +++ b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/QuadrilateralInterface.cs @@ -40,7 +40,7 @@ public QuadrilateralInterface(string quadrilateralType) OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Gets or Sets QuadrilateralType diff --git a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/ReadOnlyFirst.cs b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/ReadOnlyFirst.cs index b1907fda8183..3435f784f78b 100644 --- a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/ReadOnlyFirst.cs +++ b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/ReadOnlyFirst.cs @@ -42,7 +42,7 @@ public ReadOnlyFirst(Option bar = default, Option baz = default) OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Used to track the state of Bar diff --git a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/RequiredClass.cs b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/RequiredClass.cs index f1483ce99399..50a4b87bfd80 100644 --- a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/RequiredClass.cs +++ b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/RequiredClass.cs @@ -126,7 +126,7 @@ public RequiredClass(DateOnly requiredNotNullableDateProp, List required OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Defines RequiredNotnullableEnumInteger diff --git a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/Return.cs b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/Return.cs index 9d1fbcfd0f6f..e82cc2e69a31 100644 --- a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/Return.cs +++ b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/Return.cs @@ -46,7 +46,7 @@ public Return(string @lock, string @abstract = default, Option varReturn = OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Gets or Sets Lock diff --git a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/RolesReportsHash.cs b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/RolesReportsHash.cs index 749507fe8e0c..b7204607d41a 100644 --- a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/RolesReportsHash.cs +++ b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/RolesReportsHash.cs @@ -42,7 +42,7 @@ public RolesReportsHash(Option role = default, Option /// Used to track the state of Role diff --git a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/RolesReportsHashRole.cs b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/RolesReportsHashRole.cs index 5b5b7899e3cf..bc45f788d1b1 100644 --- a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/RolesReportsHashRole.cs +++ b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/RolesReportsHashRole.cs @@ -40,7 +40,7 @@ public RolesReportsHashRole(Option name = default) OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Used to track the state of Name diff --git a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/ScaleneTriangle.cs b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/ScaleneTriangle.cs index 5c960eb54744..ae482c9fd59c 100644 --- a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/ScaleneTriangle.cs +++ b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/ScaleneTriangle.cs @@ -42,7 +42,7 @@ public ScaleneTriangle(string shapeType, string triangleType) OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Gets or Sets ShapeType diff --git a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/Shape.cs b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/Shape.cs index c651ac7d2454..bf15bb26ed51 100644 --- a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/Shape.cs +++ b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/Shape.cs @@ -49,7 +49,7 @@ public Shape(Quadrilateral quadrilateral) OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Gets or Sets Triangle diff --git a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/ShapeInterface.cs b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/ShapeInterface.cs index 37db5df64908..192ca6aef087 100644 --- a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/ShapeInterface.cs +++ b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/ShapeInterface.cs @@ -40,7 +40,7 @@ public ShapeInterface(string shapeType) OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Gets or Sets ShapeType diff --git a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/ShapeOrNull.cs b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/ShapeOrNull.cs index 1f0b22030070..c532dcee99f3 100644 --- a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/ShapeOrNull.cs +++ b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/ShapeOrNull.cs @@ -49,7 +49,7 @@ public ShapeOrNull(Quadrilateral quadrilateral) OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Gets or Sets Triangle diff --git a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/SimpleQuadrilateral.cs b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/SimpleQuadrilateral.cs index ffa68d1e75de..0a8314e7ee3b 100644 --- a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/SimpleQuadrilateral.cs +++ b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/SimpleQuadrilateral.cs @@ -42,7 +42,7 @@ public SimpleQuadrilateral(string quadrilateralType, string shapeType) OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Gets or Sets QuadrilateralType diff --git a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/SpecialModelName.cs b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/SpecialModelName.cs index 08b9d580d9f1..3bc3a37e2d90 100644 --- a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/SpecialModelName.cs +++ b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/SpecialModelName.cs @@ -42,7 +42,7 @@ public SpecialModelName(Option varSpecialModelName = default, Option /// Used to track the state of VarSpecialModelName diff --git a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/Tag.cs b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/Tag.cs index d5fb2f5610ad..425f66d8dafd 100644 --- a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/Tag.cs +++ b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/Tag.cs @@ -42,7 +42,7 @@ public Tag(Option id = default, Option name = default) OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Used to track the state of Id diff --git a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordList.cs b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordList.cs index 215caa45302b..d2777dd81ec8 100644 --- a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordList.cs +++ b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordList.cs @@ -40,7 +40,7 @@ public TestCollectionEndingWithWordList(Option value = default) OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Used to track the state of Value diff --git a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordListObject.cs b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordListObject.cs index 1936341f8ba6..7a04b7a7a794 100644 --- a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordListObject.cs +++ b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordListObject.cs @@ -40,7 +40,7 @@ public TestCollectionEndingWithWordListObject(Option /// Used to track the state of TestCollectionEndingWithWordList diff --git a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/TestInlineFreeformAdditionalPropertiesRequest.cs b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/TestInlineFreeformAdditionalPropertiesRequest.cs index fbd7dddd9dce..0125a098d144 100644 --- a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/TestInlineFreeformAdditionalPropertiesRequest.cs +++ b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/TestInlineFreeformAdditionalPropertiesRequest.cs @@ -40,7 +40,7 @@ public TestInlineFreeformAdditionalPropertiesRequest(Option someProperty OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Used to track the state of SomeProperty diff --git a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/Triangle.cs b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/Triangle.cs index cf22051519ad..36cae8b499ba 100644 --- a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/Triangle.cs +++ b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/Triangle.cs @@ -59,7 +59,7 @@ public Triangle(ScaleneTriangle scaleneTriangle) OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Gets or Sets EquilateralTriangle diff --git a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/TriangleInterface.cs b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/TriangleInterface.cs index 0f13b0e77451..55f659bdd721 100644 --- a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/TriangleInterface.cs +++ b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/TriangleInterface.cs @@ -40,7 +40,7 @@ public TriangleInterface(string triangleType) OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Gets or Sets TriangleType diff --git a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/User.cs b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/User.cs index 0c2e096925ef..a0c75e0c6f83 100644 --- a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/User.cs +++ b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/User.cs @@ -62,7 +62,7 @@ public User(Option anyTypeProp = default, Option anyTypePropNull OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Used to track the state of AnyTypeProp diff --git a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/Whale.cs b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/Whale.cs index a445c5ac182b..cf44ff1e27b8 100644 --- a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/Whale.cs +++ b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/Whale.cs @@ -44,7 +44,7 @@ public Whale(string className, Option hasBaleen = default, Option OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Gets or Sets ClassName diff --git a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/Zebra.cs b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/Zebra.cs index 0efe7f985a3a..4923b93f6434 100644 --- a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/Zebra.cs +++ b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/Zebra.cs @@ -42,7 +42,7 @@ public Zebra(string className, Option type = default) OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Defines Type diff --git a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/ZeroBasedEnumClass.cs b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/ZeroBasedEnumClass.cs index 9722305fcb2a..685238c2cea5 100644 --- a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/ZeroBasedEnumClass.cs +++ b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/ZeroBasedEnumClass.cs @@ -40,7 +40,7 @@ public ZeroBasedEnumClass(Option zeroBasedEnum = default) OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Defines ZeroBasedEnum 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 a34c828167b1..c403eab10e2a 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 @@ -172,7 +172,7 @@ public AnotherFakeApi(ILogger logger, ILoggerFactory loggerFacto OauthTokenProvider = oauthTokenProvider; } - partial void FormatCall123TestSpecialTags(ModelClient modelClient); + public virtual void FormatCall123TestSpecialTags(ModelClient modelClient) { } /// /// Validates the request parameters @@ -204,7 +204,7 @@ private void AfterCall123TestSpecialTagsDefaultImplementation(ICall123TestSpecia /// /// /// - partial void AfterCall123TestSpecialTags(ref bool suppressDefaultLog, ICall123TestSpecialTagsApiResponse apiResponseLocalVar, ModelClient modelClient); + public virtual void AfterCall123TestSpecialTags(ref bool suppressDefaultLog, ICall123TestSpecialTagsApiResponse apiResponseLocalVar, ModelClient modelClient) { } /// /// Logs exceptions that occur while retrieving the server response @@ -229,7 +229,7 @@ private void OnErrorCall123TestSpecialTagsDefaultImplementation(Exception except /// /// /// - partial void OnErrorCall123TestSpecialTags(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, ModelClient modelClient); + public virtual 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 @@ -351,7 +351,7 @@ public Call123TestSpecialTagsApiResponse(ILogger /// Returns true if the response is 200 Ok @@ -399,7 +399,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } - partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); + public virtual void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode) { } } } } 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 cced9ce3479a..99357f92410c 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 @@ -401,7 +401,7 @@ private void AfterFooGetDefaultImplementation(IFooGetApiResponse apiResponseLoca /// /// /// - partial void AfterFooGet(ref bool suppressDefaultLog, IFooGetApiResponse apiResponseLocalVar); + public virtual void AfterFooGet(ref bool suppressDefaultLog, IFooGetApiResponse apiResponseLocalVar) { } /// /// Logs exceptions that occur while retrieving the server response @@ -424,7 +424,7 @@ private void OnErrorFooGetDefaultImplementation(Exception exceptionLocalVar, str /// /// /// - partial void OnErrorFooGet(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar); + public virtual void OnErrorFooGet(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar) { } /// /// @@ -527,7 +527,7 @@ public FooGetApiResponse(ILogger logger, System.Net.Http.Http OnCreated(httpRequestMessage, httpResponseMessage); } - partial void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage); + public virtual void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage) { } /// /// Returns true if the response is the default response type @@ -575,10 +575,10 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } - partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); + public virtual void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode) { } } - partial void FormatGetCountry(ref string country); + public virtual void FormatGetCountry(ref string country) { } /// /// Validates the request parameters @@ -610,7 +610,7 @@ private void AfterGetCountryDefaultImplementation(IGetCountryApiResponse apiResp /// /// /// - partial void AfterGetCountry(ref bool suppressDefaultLog, IGetCountryApiResponse apiResponseLocalVar, string country); + public virtual void AfterGetCountry(ref bool suppressDefaultLog, IGetCountryApiResponse apiResponseLocalVar, string country) { } /// /// Logs exceptions that occur while retrieving the server response @@ -635,7 +635,7 @@ private void OnErrorGetCountryDefaultImplementation(Exception exceptionLocalVar, /// /// /// - partial void OnErrorGetCountry(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, string country); + public virtual void OnErrorGetCountry(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, string country) { } /// /// @@ -754,7 +754,7 @@ public GetCountryApiResponse(ILogger logger, System.Net.H OnCreated(httpRequestMessage, httpResponseMessage); } - partial void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage); + public virtual void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage) { } /// /// Returns true if the response is 200 Ok @@ -770,7 +770,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } - partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); + public virtual void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode) { } } /// @@ -790,7 +790,7 @@ private void AfterHelloDefaultImplementation(IHelloApiResponse apiResponseLocalV /// /// /// - partial void AfterHello(ref bool suppressDefaultLog, IHelloApiResponse apiResponseLocalVar); + public virtual void AfterHello(ref bool suppressDefaultLog, IHelloApiResponse apiResponseLocalVar) { } /// /// Logs exceptions that occur while retrieving the server response @@ -813,7 +813,7 @@ private void OnErrorHelloDefaultImplementation(Exception exceptionLocalVar, stri /// /// /// - partial void OnErrorHello(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar); + public virtual void OnErrorHello(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar) { } /// /// Hello Hello @@ -916,7 +916,7 @@ public HelloApiResponse(ILogger logger, System.Net.Http.HttpRe OnCreated(httpRequestMessage, httpResponseMessage); } - partial void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage); + public virtual void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage) { } /// /// Returns true if the response is 200 Ok @@ -964,7 +964,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } - partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); + public virtual void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode) { } } /// @@ -984,7 +984,7 @@ private void AfterRolesReportGetDefaultImplementation(IRolesReportGetApiResponse /// /// /// - partial void AfterRolesReportGet(ref bool suppressDefaultLog, IRolesReportGetApiResponse apiResponseLocalVar); + public virtual void AfterRolesReportGet(ref bool suppressDefaultLog, IRolesReportGetApiResponse apiResponseLocalVar) { } /// /// Logs exceptions that occur while retrieving the server response @@ -1007,7 +1007,7 @@ private void OnErrorRolesReportGetDefaultImplementation(Exception exceptionLocal /// /// /// - partial void OnErrorRolesReportGet(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar); + public virtual void OnErrorRolesReportGet(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar) { } /// /// @@ -1110,7 +1110,7 @@ public RolesReportGetApiResponse(ILogger logger, Syst OnCreated(httpRequestMessage, httpResponseMessage); } - partial void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage); + public virtual void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage) { } /// /// Returns true if the response is 200 Ok @@ -1158,7 +1158,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } - partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); + public virtual void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode) { } } /// @@ -1178,7 +1178,7 @@ private void AfterTestDefaultImplementation(ITestApiResponse apiResponseLocalVar /// /// /// - partial void AfterTest(ref bool suppressDefaultLog, ITestApiResponse apiResponseLocalVar); + public virtual void AfterTest(ref bool suppressDefaultLog, ITestApiResponse apiResponseLocalVar) { } /// /// Logs exceptions that occur while retrieving the server response @@ -1201,7 +1201,7 @@ private void OnErrorTestDefaultImplementation(Exception exceptionLocalVar, strin /// /// /// - partial void OnErrorTest(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar); + public virtual void OnErrorTest(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar) { } /// /// Retrieve an existing Notificationtest's Elements @@ -1304,7 +1304,7 @@ public TestApiResponse(ILogger logger, System.Net.Http.HttpRequ OnCreated(httpRequestMessage, httpResponseMessage); } - partial void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage); + public virtual void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage) { } /// /// Returns true if the response is 200 Ok @@ -1352,7 +1352,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } - partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); + public virtual void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode) { } } } } 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 39b422f6f7f7..9991646d2b78 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 @@ -1310,7 +1310,7 @@ private void AfterFakeHealthGetDefaultImplementation(IFakeHealthGetApiResponse a /// /// /// - partial void AfterFakeHealthGet(ref bool suppressDefaultLog, IFakeHealthGetApiResponse apiResponseLocalVar); + public virtual void AfterFakeHealthGet(ref bool suppressDefaultLog, IFakeHealthGetApiResponse apiResponseLocalVar) { } /// /// Logs exceptions that occur while retrieving the server response @@ -1333,7 +1333,7 @@ private void OnErrorFakeHealthGetDefaultImplementation(Exception exceptionLocalV /// /// /// - partial void OnErrorFakeHealthGet(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar); + public virtual void OnErrorFakeHealthGet(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar) { } /// /// Health check endpoint @@ -1436,7 +1436,7 @@ public FakeHealthGetApiResponse(ILogger logger, System OnCreated(httpRequestMessage, httpResponseMessage); } - partial void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage); + public virtual void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage) { } /// /// Returns true if the response is 200 Ok @@ -1484,10 +1484,10 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } - partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); + public virtual void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode) { } } - partial void FormatFakeOuterBooleanSerialize(ref Option body); + public virtual void FormatFakeOuterBooleanSerialize(ref Option body) { } /// /// Processes the server response @@ -1508,7 +1508,7 @@ private void AfterFakeOuterBooleanSerializeDefaultImplementation(IFakeOuterBoole /// /// /// - partial void AfterFakeOuterBooleanSerialize(ref bool suppressDefaultLog, IFakeOuterBooleanSerializeApiResponse apiResponseLocalVar, Option body); + public virtual void AfterFakeOuterBooleanSerialize(ref bool suppressDefaultLog, IFakeOuterBooleanSerializeApiResponse apiResponseLocalVar, Option body) { } /// /// Logs exceptions that occur while retrieving the server response @@ -1533,7 +1533,7 @@ private void OnErrorFakeOuterBooleanSerializeDefaultImplementation(Exception exc /// /// /// - partial void OnErrorFakeOuterBooleanSerialize(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, Option body); + public virtual void OnErrorFakeOuterBooleanSerialize(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, Option body) { } /// /// Test serialization of outer boolean types @@ -1654,7 +1654,7 @@ public FakeOuterBooleanSerializeApiResponse(ILogger /// Returns true if the response is 200 Ok @@ -1702,10 +1702,10 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } - partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); + public virtual void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode) { } } - partial void FormatFakeOuterCompositeSerialize(Option outerComposite); + public virtual void FormatFakeOuterCompositeSerialize(Option outerComposite) { } /// /// Validates the request parameters @@ -1737,7 +1737,7 @@ private void AfterFakeOuterCompositeSerializeDefaultImplementation(IFakeOuterCom /// /// /// - partial void AfterFakeOuterCompositeSerialize(ref bool suppressDefaultLog, IFakeOuterCompositeSerializeApiResponse apiResponseLocalVar, Option outerComposite); + public virtual void AfterFakeOuterCompositeSerialize(ref bool suppressDefaultLog, IFakeOuterCompositeSerializeApiResponse apiResponseLocalVar, Option outerComposite) { } /// /// Logs exceptions that occur while retrieving the server response @@ -1762,7 +1762,7 @@ private void OnErrorFakeOuterCompositeSerializeDefaultImplementation(Exception e /// /// /// - partial void OnErrorFakeOuterCompositeSerialize(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, Option outerComposite); + public virtual void OnErrorFakeOuterCompositeSerialize(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, Option outerComposite) { } /// /// Test serialization of object with outer number type @@ -1885,7 +1885,7 @@ public FakeOuterCompositeSerializeApiResponse(ILogger /// Returns true if the response is 200 Ok @@ -1933,10 +1933,10 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } - partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); + public virtual void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode) { } } - partial void FormatFakeOuterNumberSerialize(ref Option body); + public virtual void FormatFakeOuterNumberSerialize(ref Option body) { } /// /// Processes the server response @@ -1957,7 +1957,7 @@ private void AfterFakeOuterNumberSerializeDefaultImplementation(IFakeOuterNumber /// /// /// - partial void AfterFakeOuterNumberSerialize(ref bool suppressDefaultLog, IFakeOuterNumberSerializeApiResponse apiResponseLocalVar, Option body); + public virtual void AfterFakeOuterNumberSerialize(ref bool suppressDefaultLog, IFakeOuterNumberSerializeApiResponse apiResponseLocalVar, Option body) { } /// /// Logs exceptions that occur while retrieving the server response @@ -1982,7 +1982,7 @@ private void OnErrorFakeOuterNumberSerializeDefaultImplementation(Exception exce /// /// /// - partial void OnErrorFakeOuterNumberSerialize(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, Option body); + public virtual void OnErrorFakeOuterNumberSerialize(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, Option body) { } /// /// Test serialization of outer number types @@ -2103,7 +2103,7 @@ public FakeOuterNumberSerializeApiResponse(ILogger /// Returns true if the response is 200 Ok @@ -2151,10 +2151,10 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } - partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); + public virtual void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode) { } } - partial void FormatFakeOuterStringSerialize(ref Guid requiredStringUuid, ref Option body); + public virtual void FormatFakeOuterStringSerialize(ref Guid requiredStringUuid, ref Option body) { } /// /// Validates the request parameters @@ -2188,7 +2188,7 @@ private void AfterFakeOuterStringSerializeDefaultImplementation(IFakeOuterString /// /// /// - partial void AfterFakeOuterStringSerialize(ref bool suppressDefaultLog, IFakeOuterStringSerializeApiResponse apiResponseLocalVar, Guid requiredStringUuid, Option body); + public virtual void AfterFakeOuterStringSerialize(ref bool suppressDefaultLog, IFakeOuterStringSerializeApiResponse apiResponseLocalVar, Guid requiredStringUuid, Option body) { } /// /// Logs exceptions that occur while retrieving the server response @@ -2215,7 +2215,7 @@ private void OnErrorFakeOuterStringSerializeDefaultImplementation(Exception exce /// /// /// - partial void OnErrorFakeOuterStringSerialize(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, Guid requiredStringUuid, Option body); + public virtual void OnErrorFakeOuterStringSerialize(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, Guid requiredStringUuid, Option body) { } /// /// Test serialization of outer string types @@ -2346,7 +2346,7 @@ public FakeOuterStringSerializeApiResponse(ILogger /// Returns true if the response is 200 Ok @@ -2394,7 +2394,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } - partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); + public virtual void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode) { } } /// @@ -2414,7 +2414,7 @@ private void AfterGetArrayOfEnumsDefaultImplementation(IGetArrayOfEnumsApiRespon /// /// /// - partial void AfterGetArrayOfEnums(ref bool suppressDefaultLog, IGetArrayOfEnumsApiResponse apiResponseLocalVar); + public virtual void AfterGetArrayOfEnums(ref bool suppressDefaultLog, IGetArrayOfEnumsApiResponse apiResponseLocalVar) { } /// /// Logs exceptions that occur while retrieving the server response @@ -2437,7 +2437,7 @@ private void OnErrorGetArrayOfEnumsDefaultImplementation(Exception exceptionLoca /// /// /// - partial void OnErrorGetArrayOfEnums(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar); + public virtual void OnErrorGetArrayOfEnums(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar) { } /// /// Array of Enums @@ -2540,7 +2540,7 @@ public GetArrayOfEnumsApiResponse(ILogger logger, Sy OnCreated(httpRequestMessage, httpResponseMessage); } - partial void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage); + public virtual void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage) { } /// /// Returns true if the response is 200 Ok @@ -2588,7 +2588,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } - partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); + public virtual void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode) { } } /// @@ -2608,7 +2608,7 @@ private void AfterGetMixedAnyOfDefaultImplementation(IGetMixedAnyOfApiResponse a /// /// /// - partial void AfterGetMixedAnyOf(ref bool suppressDefaultLog, IGetMixedAnyOfApiResponse apiResponseLocalVar); + public virtual void AfterGetMixedAnyOf(ref bool suppressDefaultLog, IGetMixedAnyOfApiResponse apiResponseLocalVar) { } /// /// Logs exceptions that occur while retrieving the server response @@ -2631,7 +2631,7 @@ private void OnErrorGetMixedAnyOfDefaultImplementation(Exception exceptionLocalV /// /// /// - partial void OnErrorGetMixedAnyOf(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar); + public virtual void OnErrorGetMixedAnyOf(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar) { } /// /// Test mixed type anyOf deserialization @@ -2734,7 +2734,7 @@ public GetMixedAnyOfApiResponse(ILogger logger, System OnCreated(httpRequestMessage, httpResponseMessage); } - partial void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage); + public virtual void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage) { } /// /// Returns true if the response is 200 Ok @@ -2782,7 +2782,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } - partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); + public virtual void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode) { } } /// @@ -2802,7 +2802,7 @@ private void AfterGetMixedOneOfDefaultImplementation(IGetMixedOneOfApiResponse a /// /// /// - partial void AfterGetMixedOneOf(ref bool suppressDefaultLog, IGetMixedOneOfApiResponse apiResponseLocalVar); + public virtual void AfterGetMixedOneOf(ref bool suppressDefaultLog, IGetMixedOneOfApiResponse apiResponseLocalVar) { } /// /// Logs exceptions that occur while retrieving the server response @@ -2825,7 +2825,7 @@ private void OnErrorGetMixedOneOfDefaultImplementation(Exception exceptionLocalV /// /// /// - partial void OnErrorGetMixedOneOf(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar); + public virtual void OnErrorGetMixedOneOf(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar) { } /// /// Test mixed type oneOf deserialization @@ -2928,7 +2928,7 @@ public GetMixedOneOfApiResponse(ILogger logger, System OnCreated(httpRequestMessage, httpResponseMessage); } - partial void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage); + public virtual void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage) { } /// /// Returns true if the response is 200 Ok @@ -2976,10 +2976,10 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } - partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); + public virtual void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode) { } } - partial void FormatTestAdditionalPropertiesReference(Dictionary requestBody); + public virtual void FormatTestAdditionalPropertiesReference(Dictionary requestBody) { } /// /// Validates the request parameters @@ -3011,7 +3011,7 @@ private void AfterTestAdditionalPropertiesReferenceDefaultImplementation(ITestAd /// /// /// - partial void AfterTestAdditionalPropertiesReference(ref bool suppressDefaultLog, ITestAdditionalPropertiesReferenceApiResponse apiResponseLocalVar, Dictionary requestBody); + public virtual void AfterTestAdditionalPropertiesReference(ref bool suppressDefaultLog, ITestAdditionalPropertiesReferenceApiResponse apiResponseLocalVar, Dictionary requestBody) { } /// /// Logs exceptions that occur while retrieving the server response @@ -3036,7 +3036,7 @@ private void OnErrorTestAdditionalPropertiesReferenceDefaultImplementation(Excep /// /// /// - partial void OnErrorTestAdditionalPropertiesReference(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, Dictionary requestBody); + public virtual void OnErrorTestAdditionalPropertiesReference(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, Dictionary requestBody) { } /// /// test referenced additionalProperties @@ -3149,7 +3149,7 @@ public TestAdditionalPropertiesReferenceApiResponse(ILogger /// Returns true if the response is 200 Ok @@ -3165,10 +3165,10 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } - partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); + public virtual void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode) { } } - partial void FormatTestBodyWithFileSchema(FileSchemaTestClass fileSchemaTestClass); + public virtual void FormatTestBodyWithFileSchema(FileSchemaTestClass fileSchemaTestClass) { } /// /// Validates the request parameters @@ -3200,7 +3200,7 @@ private void AfterTestBodyWithFileSchemaDefaultImplementation(ITestBodyWithFileS /// /// /// - partial void AfterTestBodyWithFileSchema(ref bool suppressDefaultLog, ITestBodyWithFileSchemaApiResponse apiResponseLocalVar, FileSchemaTestClass fileSchemaTestClass); + public virtual void AfterTestBodyWithFileSchema(ref bool suppressDefaultLog, ITestBodyWithFileSchemaApiResponse apiResponseLocalVar, FileSchemaTestClass fileSchemaTestClass) { } /// /// Logs exceptions that occur while retrieving the server response @@ -3225,7 +3225,7 @@ private void OnErrorTestBodyWithFileSchemaDefaultImplementation(Exception except /// /// /// - partial void OnErrorTestBodyWithFileSchema(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, FileSchemaTestClass fileSchemaTestClass); + public virtual 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`. @@ -3338,7 +3338,7 @@ public TestBodyWithFileSchemaApiResponse(ILogger /// Returns true if the response is 200 Ok @@ -3354,10 +3354,10 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } - partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); + public virtual void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode) { } } - partial void FormatTestBodyWithQueryParams(ref string query, User user); + public virtual void FormatTestBodyWithQueryParams(ref string query, User user) { } /// /// Validates the request parameters @@ -3395,7 +3395,7 @@ private void AfterTestBodyWithQueryParamsDefaultImplementation(ITestBodyWithQuer /// /// /// - partial void AfterTestBodyWithQueryParams(ref bool suppressDefaultLog, ITestBodyWithQueryParamsApiResponse apiResponseLocalVar, string query, User user); + public virtual void AfterTestBodyWithQueryParams(ref bool suppressDefaultLog, ITestBodyWithQueryParamsApiResponse apiResponseLocalVar, string query, User user) { } /// /// Logs exceptions that occur while retrieving the server response @@ -3422,7 +3422,7 @@ private void OnErrorTestBodyWithQueryParamsDefaultImplementation(Exception excep /// /// /// - partial void OnErrorTestBodyWithQueryParams(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, string query, User user); + public virtual void OnErrorTestBodyWithQueryParams(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, string query, User user) { } /// /// @@ -3543,7 +3543,7 @@ public TestBodyWithQueryParamsApiResponse(ILogger /// Returns true if the response is 200 Ok @@ -3559,10 +3559,10 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } - partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); + public virtual void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode) { } } - partial void FormatTestClientModel(ModelClient modelClient); + public virtual void FormatTestClientModel(ModelClient modelClient) { } /// /// Validates the request parameters @@ -3594,7 +3594,7 @@ private void AfterTestClientModelDefaultImplementation(ITestClientModelApiRespon /// /// /// - partial void AfterTestClientModel(ref bool suppressDefaultLog, ITestClientModelApiResponse apiResponseLocalVar, ModelClient modelClient); + public virtual void AfterTestClientModel(ref bool suppressDefaultLog, ITestClientModelApiResponse apiResponseLocalVar, ModelClient modelClient) { } /// /// Logs exceptions that occur while retrieving the server response @@ -3619,7 +3619,7 @@ private void OnErrorTestClientModelDefaultImplementation(Exception exceptionLoca /// /// /// - partial void OnErrorTestClientModel(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, ModelClient modelClient); + public virtual void OnErrorTestClientModel(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, ModelClient modelClient) { } /// /// To test \"client\" model To test \"client\" model @@ -3741,7 +3741,7 @@ public TestClientModelApiResponse(ILogger logger, Sy OnCreated(httpRequestMessage, httpResponseMessage); } - partial void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage); + public virtual void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage) { } /// /// Returns true if the response is 200 Ok @@ -3789,10 +3789,10 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } - partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); + public virtual void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode) { } } - partial void FormatTestEndpointParameters(ref decimal number, ref string patternWithoutDelimiter, ref byte[] varByte, ref double varDouble, ref Option binary, ref Option callback, ref Option date, ref Option dateTime, ref Option int32, ref Option int64, ref Option integer, ref Option password, ref Option varFloat, ref Option varString); + public virtual void FormatTestEndpointParameters(ref decimal number, ref string patternWithoutDelimiter, ref byte[] varByte, ref double varDouble, ref Option binary, ref Option callback, ref Option date, ref Option dateTime, ref Option int32, ref Option int64, ref Option integer, ref Option password, ref Option varFloat, ref Option varString) { } /// /// Validates the request parameters @@ -3870,7 +3870,7 @@ private void AfterTestEndpointParametersDefaultImplementation(ITestEndpointParam /// /// /// - partial void AfterTestEndpointParameters(ref bool suppressDefaultLog, ITestEndpointParametersApiResponse apiResponseLocalVar, 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); + public virtual void AfterTestEndpointParameters(ref bool suppressDefaultLog, ITestEndpointParametersApiResponse apiResponseLocalVar, 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) { } /// /// Logs exceptions that occur while retrieving the server response @@ -3921,7 +3921,7 @@ private void OnErrorTestEndpointParametersDefaultImplementation(Exception except /// /// /// - 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); + public virtual 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 假端點 偽のエンドポイント 가짜 엔드 포인트 @@ -4113,7 +4113,7 @@ public TestEndpointParametersApiResponse(ILogger /// Returns true if the response is 400 BadRequest @@ -4135,10 +4135,10 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } - partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); + public virtual void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode) { } } - partial void FormatTestEnumParameters(ref Option enumFormString, Option> enumFormStringArray, ref Option enumHeaderString, Option> enumHeaderStringArray, ref Option enumQueryDouble, ref Option enumQueryInteger, ref Option enumQueryString, Option> enumQueryStringArray); + public virtual void FormatTestEnumParameters(ref Option enumFormString, Option> enumFormStringArray, ref Option enumHeaderString, Option> enumHeaderStringArray, ref Option enumQueryDouble, ref Option enumQueryInteger, ref Option enumQueryString, Option> enumQueryStringArray) { } /// /// Validates the request parameters @@ -4204,7 +4204,7 @@ private void AfterTestEnumParametersDefaultImplementation(ITestEnumParametersApi /// /// /// - partial void AfterTestEnumParameters(ref bool suppressDefaultLog, ITestEnumParametersApiResponse apiResponseLocalVar, Option enumFormString, Option> enumFormStringArray, Option enumHeaderString, Option> enumHeaderStringArray, Option enumQueryDouble, Option enumQueryInteger, Option enumQueryString, Option> enumQueryStringArray); + public virtual void AfterTestEnumParameters(ref bool suppressDefaultLog, ITestEnumParametersApiResponse apiResponseLocalVar, Option enumFormString, Option> enumFormStringArray, Option enumHeaderString, Option> enumHeaderStringArray, Option enumQueryDouble, Option enumQueryInteger, Option enumQueryString, Option> enumQueryStringArray) { } /// /// Logs exceptions that occur while retrieving the server response @@ -4243,7 +4243,7 @@ private void OnErrorTestEnumParametersDefaultImplementation(Exception exceptionL /// /// /// - 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); + public virtual 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 @@ -4400,7 +4400,7 @@ public TestEnumParametersApiResponse(ILogger logg OnCreated(httpRequestMessage, httpResponseMessage); } - partial void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage); + public virtual void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage) { } /// /// Returns true if the response is 400 BadRequest @@ -4422,10 +4422,10 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } - partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); + public virtual void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode) { } } - partial void FormatTestGroupParameters(ref bool requiredBooleanGroup, ref long requiredInt64Group, ref int requiredStringGroup, ref Option booleanGroup, ref Option int64Group, ref Option stringGroup); + public virtual void FormatTestGroupParameters(ref bool requiredBooleanGroup, ref long requiredInt64Group, ref int requiredStringGroup, ref Option booleanGroup, ref Option int64Group, ref Option stringGroup) { } /// /// Processes the server response @@ -4456,7 +4456,7 @@ private void AfterTestGroupParametersDefaultImplementation(ITestGroupParametersA /// /// /// - partial void AfterTestGroupParameters(ref bool suppressDefaultLog, ITestGroupParametersApiResponse apiResponseLocalVar, bool requiredBooleanGroup, long requiredInt64Group, int requiredStringGroup, Option booleanGroup, Option int64Group, Option stringGroup); + public virtual void AfterTestGroupParameters(ref bool suppressDefaultLog, ITestGroupParametersApiResponse apiResponseLocalVar, bool requiredBooleanGroup, long requiredInt64Group, int requiredStringGroup, Option booleanGroup, Option int64Group, Option stringGroup) { } /// /// Logs exceptions that occur while retrieving the server response @@ -4491,7 +4491,7 @@ private void OnErrorTestGroupParametersDefaultImplementation(Exception exception /// /// /// - partial void OnErrorTestGroupParameters(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, bool requiredBooleanGroup, long requiredInt64Group, int requiredStringGroup, Option booleanGroup, Option int64Group, Option stringGroup); + public virtual 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) @@ -4628,7 +4628,7 @@ public TestGroupParametersApiResponse(ILogger lo OnCreated(httpRequestMessage, httpResponseMessage); } - partial void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage); + public virtual void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage) { } /// /// Returns true if the response is 400 BadRequest @@ -4644,10 +4644,10 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } - partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); + public virtual void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode) { } } - partial void FormatTestInlineAdditionalProperties(Dictionary requestBody); + public virtual void FormatTestInlineAdditionalProperties(Dictionary requestBody) { } /// /// Validates the request parameters @@ -4679,7 +4679,7 @@ private void AfterTestInlineAdditionalPropertiesDefaultImplementation(ITestInlin /// /// /// - partial void AfterTestInlineAdditionalProperties(ref bool suppressDefaultLog, ITestInlineAdditionalPropertiesApiResponse apiResponseLocalVar, Dictionary requestBody); + public virtual void AfterTestInlineAdditionalProperties(ref bool suppressDefaultLog, ITestInlineAdditionalPropertiesApiResponse apiResponseLocalVar, Dictionary requestBody) { } /// /// Logs exceptions that occur while retrieving the server response @@ -4704,7 +4704,7 @@ private void OnErrorTestInlineAdditionalPropertiesDefaultImplementation(Exceptio /// /// /// - partial void OnErrorTestInlineAdditionalProperties(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, Dictionary requestBody); + public virtual void OnErrorTestInlineAdditionalProperties(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, Dictionary requestBody) { } /// /// test inline additionalProperties @@ -4817,7 +4817,7 @@ public TestInlineAdditionalPropertiesApiResponse(ILogger /// Returns true if the response is 200 Ok @@ -4833,10 +4833,10 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } - partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); + public virtual void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode) { } } - partial void FormatTestInlineFreeformAdditionalProperties(TestInlineFreeformAdditionalPropertiesRequest testInlineFreeformAdditionalPropertiesRequest); + public virtual void FormatTestInlineFreeformAdditionalProperties(TestInlineFreeformAdditionalPropertiesRequest testInlineFreeformAdditionalPropertiesRequest) { } /// /// Validates the request parameters @@ -4868,7 +4868,7 @@ private void AfterTestInlineFreeformAdditionalPropertiesDefaultImplementation(IT /// /// /// - partial void AfterTestInlineFreeformAdditionalProperties(ref bool suppressDefaultLog, ITestInlineFreeformAdditionalPropertiesApiResponse apiResponseLocalVar, TestInlineFreeformAdditionalPropertiesRequest testInlineFreeformAdditionalPropertiesRequest); + public virtual void AfterTestInlineFreeformAdditionalProperties(ref bool suppressDefaultLog, ITestInlineFreeformAdditionalPropertiesApiResponse apiResponseLocalVar, TestInlineFreeformAdditionalPropertiesRequest testInlineFreeformAdditionalPropertiesRequest) { } /// /// Logs exceptions that occur while retrieving the server response @@ -4893,7 +4893,7 @@ private void OnErrorTestInlineFreeformAdditionalPropertiesDefaultImplementation( /// /// /// - partial void OnErrorTestInlineFreeformAdditionalProperties(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, TestInlineFreeformAdditionalPropertiesRequest testInlineFreeformAdditionalPropertiesRequest); + public virtual void OnErrorTestInlineFreeformAdditionalProperties(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, TestInlineFreeformAdditionalPropertiesRequest testInlineFreeformAdditionalPropertiesRequest) { } /// /// test inline free-form additionalProperties @@ -5006,7 +5006,7 @@ public TestInlineFreeformAdditionalPropertiesApiResponse(ILogger /// Returns true if the response is 200 Ok @@ -5022,10 +5022,10 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } - partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); + public virtual void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode) { } } - partial void FormatTestJsonFormData(ref string param, ref string param2); + public virtual void FormatTestJsonFormData(ref string param, ref string param2) { } /// /// Validates the request parameters @@ -5063,7 +5063,7 @@ private void AfterTestJsonFormDataDefaultImplementation(ITestJsonFormDataApiResp /// /// /// - partial void AfterTestJsonFormData(ref bool suppressDefaultLog, ITestJsonFormDataApiResponse apiResponseLocalVar, string param, string param2); + public virtual void AfterTestJsonFormData(ref bool suppressDefaultLog, ITestJsonFormDataApiResponse apiResponseLocalVar, string param, string param2) { } /// /// Logs exceptions that occur while retrieving the server response @@ -5090,7 +5090,7 @@ private void OnErrorTestJsonFormDataDefaultImplementation(Exception exceptionLoc /// /// /// - partial void OnErrorTestJsonFormData(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, string param, string param2); + public virtual void OnErrorTestJsonFormData(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, string param, string param2) { } /// /// test json serialization of form data @@ -5213,7 +5213,7 @@ public TestJsonFormDataApiResponse(ILogger logger, OnCreated(httpRequestMessage, httpResponseMessage); } - partial void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage); + public virtual void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage) { } /// /// Returns true if the response is 200 Ok @@ -5229,10 +5229,10 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } - partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); + public virtual void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode) { } } - partial void FormatTestQueryParameterCollectionFormat(List context, List http, List ioutil, List pipe, ref string requiredNotNullable, List url, ref Option notRequiredNotNullable, ref Option notRequiredNullable, ref string? requiredNullable); + public virtual void FormatTestQueryParameterCollectionFormat(List context, List http, List ioutil, List pipe, ref string requiredNotNullable, List url, ref Option notRequiredNotNullable, ref Option notRequiredNullable, ref string? requiredNullable) { } /// /// Validates the request parameters @@ -5304,7 +5304,7 @@ private void AfterTestQueryParameterCollectionFormatDefaultImplementation(ITestQ /// /// /// - partial void AfterTestQueryParameterCollectionFormat(ref bool suppressDefaultLog, ITestQueryParameterCollectionFormatApiResponse apiResponseLocalVar, List context, List http, List ioutil, List pipe, string requiredNotNullable, List url, Option notRequiredNotNullable, Option notRequiredNullable, string? requiredNullable); + public virtual void AfterTestQueryParameterCollectionFormat(ref bool suppressDefaultLog, ITestQueryParameterCollectionFormatApiResponse apiResponseLocalVar, List context, List http, List ioutil, List pipe, string requiredNotNullable, List url, Option notRequiredNotNullable, Option notRequiredNullable, string? requiredNullable) { } /// /// Logs exceptions that occur while retrieving the server response @@ -5345,7 +5345,7 @@ private void OnErrorTestQueryParameterCollectionFormatDefaultImplementation(Exce /// /// /// - 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); + public virtual 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 @@ -5479,7 +5479,7 @@ public TestQueryParameterCollectionFormatApiResponse(ILogger /// Returns true if the response is 200 Ok @@ -5495,10 +5495,10 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } - partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); + public virtual void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode) { } } - partial void FormatTestStringMapReference(Dictionary requestBody); + public virtual void FormatTestStringMapReference(Dictionary requestBody) { } /// /// Validates the request parameters @@ -5530,7 +5530,7 @@ private void AfterTestStringMapReferenceDefaultImplementation(ITestStringMapRefe /// /// /// - partial void AfterTestStringMapReference(ref bool suppressDefaultLog, ITestStringMapReferenceApiResponse apiResponseLocalVar, Dictionary requestBody); + public virtual void AfterTestStringMapReference(ref bool suppressDefaultLog, ITestStringMapReferenceApiResponse apiResponseLocalVar, Dictionary requestBody) { } /// /// Logs exceptions that occur while retrieving the server response @@ -5555,7 +5555,7 @@ private void OnErrorTestStringMapReferenceDefaultImplementation(Exception except /// /// /// - partial void OnErrorTestStringMapReference(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, Dictionary requestBody); + public virtual void OnErrorTestStringMapReference(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, Dictionary requestBody) { } /// /// test referenced string map @@ -5668,7 +5668,7 @@ public TestStringMapReferenceApiResponse(ILogger /// Returns true if the response is 200 Ok @@ -5684,7 +5684,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } - partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); + public virtual void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode) { } } } } 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 d70af83c9115..81e7af381acb 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 @@ -172,7 +172,7 @@ public FakeClassnameTags123Api(ILogger logger, ILoggerF OauthTokenProvider = oauthTokenProvider; } - partial void FormatTestClassname(ModelClient modelClient); + public virtual void FormatTestClassname(ModelClient modelClient) { } /// /// Validates the request parameters @@ -204,7 +204,7 @@ private void AfterTestClassnameDefaultImplementation(ITestClassnameApiResponse a /// /// /// - partial void AfterTestClassname(ref bool suppressDefaultLog, ITestClassnameApiResponse apiResponseLocalVar, ModelClient modelClient); + public virtual void AfterTestClassname(ref bool suppressDefaultLog, ITestClassnameApiResponse apiResponseLocalVar, ModelClient modelClient) { } /// /// Logs exceptions that occur while retrieving the server response @@ -229,7 +229,7 @@ private void OnErrorTestClassnameDefaultImplementation(Exception exceptionLocalV /// /// /// - partial void OnErrorTestClassname(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, ModelClient modelClient); + public virtual 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 @@ -364,7 +364,7 @@ public TestClassnameApiResponse(ILogger logger, System OnCreated(httpRequestMessage, httpResponseMessage); } - partial void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage); + public virtual void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage) { } /// /// Returns true if the response is 200 Ok @@ -412,7 +412,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } - partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); + public virtual void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode) { } } } } 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 1d959b49106f..4403879bebd1 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 @@ -676,7 +676,7 @@ public PetApi(ILogger logger, ILoggerFactory loggerFactory, HttpClient h OauthTokenProvider = oauthTokenProvider; } - partial void FormatAddPet(Pet pet); + public virtual void FormatAddPet(Pet pet) { } /// /// Validates the request parameters @@ -708,7 +708,7 @@ private void AfterAddPetDefaultImplementation(IAddPetApiResponse apiResponseLoca /// /// /// - partial void AfterAddPet(ref bool suppressDefaultLog, IAddPetApiResponse apiResponseLocalVar, Pet pet); + public virtual void AfterAddPet(ref bool suppressDefaultLog, IAddPetApiResponse apiResponseLocalVar, Pet pet) { } /// /// Logs exceptions that occur while retrieving the server response @@ -733,7 +733,7 @@ private void OnErrorAddPetDefaultImplementation(Exception exceptionLocalVar, str /// /// /// - partial void OnErrorAddPet(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, Pet pet); + public virtual void OnErrorAddPet(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, Pet pet) { } /// /// Add a new pet to the store @@ -868,7 +868,7 @@ public AddPetApiResponse(ILogger logger, System.Net.Http.Http OnCreated(httpRequestMessage, httpResponseMessage); } - partial void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage); + public virtual void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage) { } /// /// Returns true if the response is 405 MethodNotAllowed @@ -884,10 +884,10 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } - partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); + public virtual void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode) { } } - partial void FormatDeletePet(ref long petId, ref Option apiKey); + public virtual void FormatDeletePet(ref long petId, ref Option apiKey) { } /// /// Validates the request parameters @@ -921,7 +921,7 @@ private void AfterDeletePetDefaultImplementation(IDeletePetApiResponse apiRespon /// /// /// - partial void AfterDeletePet(ref bool suppressDefaultLog, IDeletePetApiResponse apiResponseLocalVar, long petId, Option apiKey); + public virtual void AfterDeletePet(ref bool suppressDefaultLog, IDeletePetApiResponse apiResponseLocalVar, long petId, Option apiKey) { } /// /// Logs exceptions that occur while retrieving the server response @@ -948,7 +948,7 @@ private void OnErrorDeletePetDefaultImplementation(Exception exceptionLocalVar, /// /// /// - partial void OnErrorDeletePet(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, long petId, Option apiKey); + public virtual void OnErrorDeletePet(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, long petId, Option apiKey) { } /// /// Deletes a pet @@ -1065,7 +1065,7 @@ public DeletePetApiResponse(ILogger logger, System.Net.Htt OnCreated(httpRequestMessage, httpResponseMessage); } - partial void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage); + public virtual void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage) { } /// /// Returns true if the response is 400 BadRequest @@ -1081,10 +1081,10 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } - partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); + public virtual void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode) { } } - partial void FormatFindPetsByStatus(List status); + public virtual void FormatFindPetsByStatus(List status) { } /// /// Validates the request parameters @@ -1116,7 +1116,7 @@ private void AfterFindPetsByStatusDefaultImplementation(IFindPetsByStatusApiResp /// /// /// - partial void AfterFindPetsByStatus(ref bool suppressDefaultLog, IFindPetsByStatusApiResponse apiResponseLocalVar, List status); + public virtual void AfterFindPetsByStatus(ref bool suppressDefaultLog, IFindPetsByStatusApiResponse apiResponseLocalVar, List status) { } /// /// Logs exceptions that occur while retrieving the server response @@ -1141,7 +1141,7 @@ private void OnErrorFindPetsByStatusDefaultImplementation(Exception exceptionLoc /// /// /// - partial void OnErrorFindPetsByStatus(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, List status); + public virtual 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 @@ -1278,7 +1278,7 @@ public FindPetsByStatusApiResponse(ILogger logger, OnCreated(httpRequestMessage, httpResponseMessage); } - partial void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage); + public virtual void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage) { } /// /// Returns true if the response is 200 Ok @@ -1358,10 +1358,10 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } - partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); + public virtual void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode) { } } - partial void FormatFindPetsByTags(List tags); + public virtual void FormatFindPetsByTags(List tags) { } /// /// Validates the request parameters @@ -1393,7 +1393,7 @@ private void AfterFindPetsByTagsDefaultImplementation(IFindPetsByTagsApiResponse /// /// /// - partial void AfterFindPetsByTags(ref bool suppressDefaultLog, IFindPetsByTagsApiResponse apiResponseLocalVar, List tags); + public virtual void AfterFindPetsByTags(ref bool suppressDefaultLog, IFindPetsByTagsApiResponse apiResponseLocalVar, List tags) { } /// /// Logs exceptions that occur while retrieving the server response @@ -1418,7 +1418,7 @@ private void OnErrorFindPetsByTagsDefaultImplementation(Exception exceptionLocal /// /// /// - partial void OnErrorFindPetsByTags(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, List tags); + public virtual 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. @@ -1555,7 +1555,7 @@ public FindPetsByTagsApiResponse(ILogger logger, Syst OnCreated(httpRequestMessage, httpResponseMessage); } - partial void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage); + public virtual void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage) { } /// /// Returns true if the response is 200 Ok @@ -1609,10 +1609,10 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } - partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); + public virtual void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode) { } } - partial void FormatGetPetById(ref long petId); + public virtual void FormatGetPetById(ref long petId) { } /// /// Processes the server response @@ -1633,7 +1633,7 @@ private void AfterGetPetByIdDefaultImplementation(IGetPetByIdApiResponse apiResp /// /// /// - partial void AfterGetPetById(ref bool suppressDefaultLog, IGetPetByIdApiResponse apiResponseLocalVar, long petId); + public virtual void AfterGetPetById(ref bool suppressDefaultLog, IGetPetByIdApiResponse apiResponseLocalVar, long petId) { } /// /// Logs exceptions that occur while retrieving the server response @@ -1658,7 +1658,7 @@ private void OnErrorGetPetByIdDefaultImplementation(Exception exceptionLocalVar, /// /// /// - partial void OnErrorGetPetById(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, long petId); + public virtual void OnErrorGetPetById(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, long petId) { } /// /// Find pet by ID Returns a single pet @@ -1784,7 +1784,7 @@ public GetPetByIdApiResponse(ILogger logger, System.Net.H OnCreated(httpRequestMessage, httpResponseMessage); } - partial void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage); + public virtual void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage) { } /// /// Returns true if the response is 200 Ok @@ -1844,10 +1844,10 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } - partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); + public virtual void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode) { } } - partial void FormatUpdatePet(Pet pet); + public virtual void FormatUpdatePet(Pet pet) { } /// /// Validates the request parameters @@ -1879,7 +1879,7 @@ private void AfterUpdatePetDefaultImplementation(IUpdatePetApiResponse apiRespon /// /// /// - partial void AfterUpdatePet(ref bool suppressDefaultLog, IUpdatePetApiResponse apiResponseLocalVar, Pet pet); + public virtual void AfterUpdatePet(ref bool suppressDefaultLog, IUpdatePetApiResponse apiResponseLocalVar, Pet pet) { } /// /// Logs exceptions that occur while retrieving the server response @@ -1904,7 +1904,7 @@ private void OnErrorUpdatePetDefaultImplementation(Exception exceptionLocalVar, /// /// /// - partial void OnErrorUpdatePet(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, Pet pet); + public virtual void OnErrorUpdatePet(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, Pet pet) { } /// /// Update an existing pet @@ -2039,7 +2039,7 @@ public UpdatePetApiResponse(ILogger logger, System.Net.Htt OnCreated(httpRequestMessage, httpResponseMessage); } - partial void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage); + public virtual void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage) { } /// /// Returns true if the response is 400 BadRequest @@ -2067,10 +2067,10 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } - partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); + public virtual void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode) { } } - partial void FormatUpdatePetWithForm(ref long petId, ref Option name, ref Option status); + public virtual void FormatUpdatePetWithForm(ref long petId, ref Option name, ref Option status) { } /// /// Validates the request parameters @@ -2110,7 +2110,7 @@ private void AfterUpdatePetWithFormDefaultImplementation(IUpdatePetWithFormApiRe /// /// /// - partial void AfterUpdatePetWithForm(ref bool suppressDefaultLog, IUpdatePetWithFormApiResponse apiResponseLocalVar, long petId, Option name, Option status); + public virtual void AfterUpdatePetWithForm(ref bool suppressDefaultLog, IUpdatePetWithFormApiResponse apiResponseLocalVar, long petId, Option name, Option status) { } /// /// Logs exceptions that occur while retrieving the server response @@ -2139,7 +2139,7 @@ private void OnErrorUpdatePetWithFormDefaultImplementation(Exception exceptionLo /// /// /// - partial void OnErrorUpdatePetWithForm(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, long petId, Option name, Option status); + public virtual 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 @@ -2276,7 +2276,7 @@ public UpdatePetWithFormApiResponse(ILogger logger OnCreated(httpRequestMessage, httpResponseMessage); } - partial void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage); + public virtual void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage) { } /// /// Returns true if the response is 405 MethodNotAllowed @@ -2292,10 +2292,10 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } - partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); + public virtual void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode) { } } - partial void FormatUploadFile(ref long petId, ref Option additionalMetadata, ref Option file); + public virtual void FormatUploadFile(ref long petId, ref Option additionalMetadata, ref Option file) { } /// /// Validates the request parameters @@ -2335,7 +2335,7 @@ private void AfterUploadFileDefaultImplementation(IUploadFileApiResponse apiResp /// /// /// - partial void AfterUploadFile(ref bool suppressDefaultLog, IUploadFileApiResponse apiResponseLocalVar, long petId, Option additionalMetadata, Option file); + public virtual void AfterUploadFile(ref bool suppressDefaultLog, IUploadFileApiResponse apiResponseLocalVar, long petId, Option additionalMetadata, Option file) { } /// /// Logs exceptions that occur while retrieving the server response @@ -2364,7 +2364,7 @@ private void OnErrorUploadFileDefaultImplementation(Exception exceptionLocalVar, /// /// /// - partial void OnErrorUploadFile(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, long petId, Option additionalMetadata, Option file); + public virtual void OnErrorUploadFile(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, long petId, Option additionalMetadata, Option file) { } /// /// uploads an image @@ -2510,7 +2510,7 @@ public UploadFileApiResponse(ILogger logger, System.Net.H OnCreated(httpRequestMessage, httpResponseMessage); } - partial void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage); + public virtual void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage) { } /// /// Returns true if the response is 200 Ok @@ -2558,10 +2558,10 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } - partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); + public virtual void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode) { } } - partial void FormatUploadFileWithRequiredFile(ref long petId, ref System.IO.Stream requiredFile, ref Option additionalMetadata); + public virtual void FormatUploadFileWithRequiredFile(ref long petId, ref System.IO.Stream requiredFile, ref Option additionalMetadata) { } /// /// Validates the request parameters @@ -2601,7 +2601,7 @@ private void AfterUploadFileWithRequiredFileDefaultImplementation(IUploadFileWit /// /// /// - partial void AfterUploadFileWithRequiredFile(ref bool suppressDefaultLog, IUploadFileWithRequiredFileApiResponse apiResponseLocalVar, long petId, System.IO.Stream requiredFile, Option additionalMetadata); + public virtual void AfterUploadFileWithRequiredFile(ref bool suppressDefaultLog, IUploadFileWithRequiredFileApiResponse apiResponseLocalVar, long petId, System.IO.Stream requiredFile, Option additionalMetadata) { } /// /// Logs exceptions that occur while retrieving the server response @@ -2630,7 +2630,7 @@ private void OnErrorUploadFileWithRequiredFileDefaultImplementation(Exception ex /// /// /// - partial void OnErrorUploadFileWithRequiredFile(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, long petId, System.IO.Stream requiredFile, Option additionalMetadata); + public virtual void OnErrorUploadFileWithRequiredFile(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, long petId, System.IO.Stream requiredFile, Option additionalMetadata) { } /// /// uploads an image (required) @@ -2776,7 +2776,7 @@ public UploadFileWithRequiredFileApiResponse(ILogger /// Returns true if the response is 200 Ok @@ -2824,7 +2824,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } - partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); + public virtual void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode) { } } } } 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 1677ff9901e2..cf413852420c 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 @@ -359,7 +359,7 @@ public StoreApi(ILogger logger, ILoggerFactory loggerFactory, HttpClie OauthTokenProvider = oauthTokenProvider; } - partial void FormatDeleteOrder(ref string orderId); + public virtual void FormatDeleteOrder(ref string orderId) { } /// /// Validates the request parameters @@ -391,7 +391,7 @@ private void AfterDeleteOrderDefaultImplementation(IDeleteOrderApiResponse apiRe /// /// /// - partial void AfterDeleteOrder(ref bool suppressDefaultLog, IDeleteOrderApiResponse apiResponseLocalVar, string orderId); + public virtual void AfterDeleteOrder(ref bool suppressDefaultLog, IDeleteOrderApiResponse apiResponseLocalVar, string orderId) { } /// /// Logs exceptions that occur while retrieving the server response @@ -416,7 +416,7 @@ private void OnErrorDeleteOrderDefaultImplementation(Exception exceptionLocalVar /// /// /// - partial void OnErrorDeleteOrder(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, string orderId); + public virtual 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 @@ -517,7 +517,7 @@ public DeleteOrderApiResponse(ILogger logger, System.Net OnCreated(httpRequestMessage, httpResponseMessage); } - partial void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage); + public virtual void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage) { } /// /// Returns true if the response is 400 BadRequest @@ -539,7 +539,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } - partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); + public virtual void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode) { } } /// @@ -559,7 +559,7 @@ private void AfterGetInventoryDefaultImplementation(IGetInventoryApiResponse api /// /// /// - partial void AfterGetInventory(ref bool suppressDefaultLog, IGetInventoryApiResponse apiResponseLocalVar); + public virtual void AfterGetInventory(ref bool suppressDefaultLog, IGetInventoryApiResponse apiResponseLocalVar) { } /// /// Logs exceptions that occur while retrieving the server response @@ -582,7 +582,7 @@ private void OnErrorGetInventoryDefaultImplementation(Exception exceptionLocalVa /// /// /// - partial void OnErrorGetInventory(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar); + public virtual void OnErrorGetInventory(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar) { } /// /// Returns pet inventories by status Returns a map of status codes to quantities @@ -694,7 +694,7 @@ public GetInventoryApiResponse(ILogger logger, System.N OnCreated(httpRequestMessage, httpResponseMessage); } - partial void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage); + public virtual void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage) { } /// /// Returns true if the response is 200 Ok @@ -742,10 +742,10 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } - partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); + public virtual void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode) { } } - partial void FormatGetOrderById(ref long orderId); + public virtual void FormatGetOrderById(ref long orderId) { } /// /// Processes the server response @@ -766,7 +766,7 @@ private void AfterGetOrderByIdDefaultImplementation(IGetOrderByIdApiResponse api /// /// /// - partial void AfterGetOrderById(ref bool suppressDefaultLog, IGetOrderByIdApiResponse apiResponseLocalVar, long orderId); + public virtual void AfterGetOrderById(ref bool suppressDefaultLog, IGetOrderByIdApiResponse apiResponseLocalVar, long orderId) { } /// /// Logs exceptions that occur while retrieving the server response @@ -791,7 +791,7 @@ private void OnErrorGetOrderByIdDefaultImplementation(Exception exceptionLocalVa /// /// /// - partial void OnErrorGetOrderById(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, long orderId); + public virtual 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 @@ -900,7 +900,7 @@ public GetOrderByIdApiResponse(ILogger logger, System.N OnCreated(httpRequestMessage, httpResponseMessage); } - partial void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage); + public virtual void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage) { } /// /// Returns true if the response is 200 Ok @@ -960,10 +960,10 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } - partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); + public virtual void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode) { } } - partial void FormatPlaceOrder(Order order); + public virtual void FormatPlaceOrder(Order order) { } /// /// Validates the request parameters @@ -995,7 +995,7 @@ private void AfterPlaceOrderDefaultImplementation(IPlaceOrderApiResponse apiResp /// /// /// - partial void AfterPlaceOrder(ref bool suppressDefaultLog, IPlaceOrderApiResponse apiResponseLocalVar, Order order); + public virtual void AfterPlaceOrder(ref bool suppressDefaultLog, IPlaceOrderApiResponse apiResponseLocalVar, Order order) { } /// /// Logs exceptions that occur while retrieving the server response @@ -1020,7 +1020,7 @@ private void OnErrorPlaceOrderDefaultImplementation(Exception exceptionLocalVar, /// /// /// - partial void OnErrorPlaceOrder(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, Order order); + public virtual void OnErrorPlaceOrder(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, Order order) { } /// /// Place an order for a pet @@ -1143,7 +1143,7 @@ public PlaceOrderApiResponse(ILogger logger, System.Net.H OnCreated(httpRequestMessage, httpResponseMessage); } - partial void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage); + public virtual void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage) { } /// /// Returns true if the response is 200 Ok @@ -1197,7 +1197,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } - partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); + public virtual void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode) { } } } } 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 0352814ae67d..cb37b66ad049 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 @@ -609,7 +609,7 @@ public UserApi(ILogger logger, ILoggerFactory loggerFactory, HttpClient CookieContainer = cookieContainer; } - partial void FormatCreateUser(User user); + public virtual void FormatCreateUser(User user) { } /// /// Validates the request parameters @@ -641,7 +641,7 @@ private void AfterCreateUserDefaultImplementation(ICreateUserApiResponse apiResp /// /// /// - partial void AfterCreateUser(ref bool suppressDefaultLog, ICreateUserApiResponse apiResponseLocalVar, User user); + public virtual void AfterCreateUser(ref bool suppressDefaultLog, ICreateUserApiResponse apiResponseLocalVar, User user) { } /// /// Logs exceptions that occur while retrieving the server response @@ -666,7 +666,7 @@ private void OnErrorCreateUserDefaultImplementation(Exception exceptionLocalVar, /// /// /// - partial void OnErrorCreateUser(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, User user); + public virtual 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. @@ -779,7 +779,7 @@ public CreateUserApiResponse(ILogger logger, System.Net.H OnCreated(httpRequestMessage, httpResponseMessage); } - partial void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage); + public virtual void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage) { } /// /// Returns true if the response is the default response type @@ -795,10 +795,10 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } - partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); + public virtual void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode) { } } - partial void FormatCreateUsersWithArrayInput(List user); + public virtual void FormatCreateUsersWithArrayInput(List user) { } /// /// Validates the request parameters @@ -830,7 +830,7 @@ private void AfterCreateUsersWithArrayInputDefaultImplementation(ICreateUsersWit /// /// /// - partial void AfterCreateUsersWithArrayInput(ref bool suppressDefaultLog, ICreateUsersWithArrayInputApiResponse apiResponseLocalVar, List user); + public virtual void AfterCreateUsersWithArrayInput(ref bool suppressDefaultLog, ICreateUsersWithArrayInputApiResponse apiResponseLocalVar, List user) { } /// /// Logs exceptions that occur while retrieving the server response @@ -855,7 +855,7 @@ private void OnErrorCreateUsersWithArrayInputDefaultImplementation(Exception exc /// /// /// - partial void OnErrorCreateUsersWithArrayInput(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, List user); + public virtual void OnErrorCreateUsersWithArrayInput(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, List user) { } /// /// Creates list of users with given input array @@ -968,7 +968,7 @@ public CreateUsersWithArrayInputApiResponse(ILogger /// Returns true if the response is the default response type @@ -984,10 +984,10 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } - partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); + public virtual void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode) { } } - partial void FormatCreateUsersWithListInput(List user); + public virtual void FormatCreateUsersWithListInput(List user) { } /// /// Validates the request parameters @@ -1019,7 +1019,7 @@ private void AfterCreateUsersWithListInputDefaultImplementation(ICreateUsersWith /// /// /// - partial void AfterCreateUsersWithListInput(ref bool suppressDefaultLog, ICreateUsersWithListInputApiResponse apiResponseLocalVar, List user); + public virtual void AfterCreateUsersWithListInput(ref bool suppressDefaultLog, ICreateUsersWithListInputApiResponse apiResponseLocalVar, List user) { } /// /// Logs exceptions that occur while retrieving the server response @@ -1044,7 +1044,7 @@ private void OnErrorCreateUsersWithListInputDefaultImplementation(Exception exce /// /// /// - partial void OnErrorCreateUsersWithListInput(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, List user); + public virtual void OnErrorCreateUsersWithListInput(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, List user) { } /// /// Creates list of users with given input array @@ -1157,7 +1157,7 @@ public CreateUsersWithListInputApiResponse(ILogger /// Returns true if the response is the default response type @@ -1173,10 +1173,10 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } - partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); + public virtual void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode) { } } - partial void FormatDeleteUser(ref string username); + public virtual void FormatDeleteUser(ref string username) { } /// /// Validates the request parameters @@ -1208,7 +1208,7 @@ private void AfterDeleteUserDefaultImplementation(IDeleteUserApiResponse apiResp /// /// /// - partial void AfterDeleteUser(ref bool suppressDefaultLog, IDeleteUserApiResponse apiResponseLocalVar, string username); + public virtual void AfterDeleteUser(ref bool suppressDefaultLog, IDeleteUserApiResponse apiResponseLocalVar, string username) { } /// /// Logs exceptions that occur while retrieving the server response @@ -1233,7 +1233,7 @@ private void OnErrorDeleteUserDefaultImplementation(Exception exceptionLocalVar, /// /// /// - partial void OnErrorDeleteUser(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, string username); + public virtual 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. @@ -1334,7 +1334,7 @@ public DeleteUserApiResponse(ILogger logger, System.Net.H OnCreated(httpRequestMessage, httpResponseMessage); } - partial void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage); + public virtual void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage) { } /// /// Returns true if the response is 400 BadRequest @@ -1356,10 +1356,10 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } - partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); + public virtual void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode) { } } - partial void FormatGetUserByName(ref string username); + public virtual void FormatGetUserByName(ref string username) { } /// /// Validates the request parameters @@ -1391,7 +1391,7 @@ private void AfterGetUserByNameDefaultImplementation(IGetUserByNameApiResponse a /// /// /// - partial void AfterGetUserByName(ref bool suppressDefaultLog, IGetUserByNameApiResponse apiResponseLocalVar, string username); + public virtual void AfterGetUserByName(ref bool suppressDefaultLog, IGetUserByNameApiResponse apiResponseLocalVar, string username) { } /// /// Logs exceptions that occur while retrieving the server response @@ -1416,7 +1416,7 @@ private void OnErrorGetUserByNameDefaultImplementation(Exception exceptionLocalV /// /// /// - partial void OnErrorGetUserByName(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, string username); + public virtual void OnErrorGetUserByName(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, string username) { } /// /// Get user by user name @@ -1527,7 +1527,7 @@ public GetUserByNameApiResponse(ILogger logger, System OnCreated(httpRequestMessage, httpResponseMessage); } - partial void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage); + public virtual void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage) { } /// /// Returns true if the response is 200 Ok @@ -1631,10 +1631,10 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } - partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); + public virtual void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode) { } } - partial void FormatLoginUser(ref string password, ref string username); + public virtual void FormatLoginUser(ref string password, ref string username) { } /// /// Validates the request parameters @@ -1672,7 +1672,7 @@ private void AfterLoginUserDefaultImplementation(ILoginUserApiResponse apiRespon /// /// /// - partial void AfterLoginUser(ref bool suppressDefaultLog, ILoginUserApiResponse apiResponseLocalVar, string password, string username); + public virtual void AfterLoginUser(ref bool suppressDefaultLog, ILoginUserApiResponse apiResponseLocalVar, string password, string username) { } /// /// Logs exceptions that occur while retrieving the server response @@ -1699,7 +1699,7 @@ private void OnErrorLoginUserDefaultImplementation(Exception exceptionLocalVar, /// /// /// - partial void OnErrorLoginUser(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, string password, string username); + public virtual void OnErrorLoginUser(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, string password, string username) { } /// /// Logs user into the system @@ -1845,7 +1845,7 @@ public LoginUserApiResponse(ILogger logger, System.Net.Htt OnCreated(httpRequestMessage, httpResponseMessage); } - partial void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage); + public virtual void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage) { } /// /// Returns true if the response is 200 Ok @@ -1899,7 +1899,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } - partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); + public virtual void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode) { } } /// @@ -1919,7 +1919,7 @@ private void AfterLogoutUserDefaultImplementation(ILogoutUserApiResponse apiResp /// /// /// - partial void AfterLogoutUser(ref bool suppressDefaultLog, ILogoutUserApiResponse apiResponseLocalVar); + public virtual void AfterLogoutUser(ref bool suppressDefaultLog, ILogoutUserApiResponse apiResponseLocalVar) { } /// /// Logs exceptions that occur while retrieving the server response @@ -1942,7 +1942,7 @@ private void OnErrorLogoutUserDefaultImplementation(Exception exceptionLocalVar, /// /// /// - partial void OnErrorLogoutUser(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar); + public virtual void OnErrorLogoutUser(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar) { } /// /// Logs out current logged in user session @@ -2036,7 +2036,7 @@ public LogoutUserApiResponse(ILogger logger, System.Net.H OnCreated(httpRequestMessage, httpResponseMessage); } - partial void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage); + public virtual void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage) { } /// /// Returns true if the response is the default response type @@ -2052,10 +2052,10 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } - partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); + public virtual void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode) { } } - partial void FormatUpdateUser(User user, ref string username); + public virtual void FormatUpdateUser(User user, ref string username) { } /// /// Validates the request parameters @@ -2093,7 +2093,7 @@ private void AfterUpdateUserDefaultImplementation(IUpdateUserApiResponse apiResp /// /// /// - partial void AfterUpdateUser(ref bool suppressDefaultLog, IUpdateUserApiResponse apiResponseLocalVar, User user, string username); + public virtual void AfterUpdateUser(ref bool suppressDefaultLog, IUpdateUserApiResponse apiResponseLocalVar, User user, string username) { } /// /// Logs exceptions that occur while retrieving the server response @@ -2120,7 +2120,7 @@ private void OnErrorUpdateUserDefaultImplementation(Exception exceptionLocalVar, /// /// /// - partial void OnErrorUpdateUser(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, User user, string username); + public virtual 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. @@ -2236,7 +2236,7 @@ public UpdateUserApiResponse(ILogger logger, System.Net.H OnCreated(httpRequestMessage, httpResponseMessage); } - partial void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage); + public virtual void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage) { } /// /// Returns true if the response is 400 BadRequest @@ -2258,7 +2258,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } - partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); + public virtual void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode) { } } } } diff --git a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Client/ApiResponse`1.cs b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Client/ApiResponse`1.cs index 88b4a497394b..d16b6589868f 100644 --- a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Client/ApiResponse`1.cs +++ b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Client/ApiResponse`1.cs @@ -147,7 +147,7 @@ public ApiResponse(global::System.Net.Http.HttpRequestMessage httpRequestMessage OnCreated(httpRequestMessage, httpResponseMessage); } - partial void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage); + public virtual void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage) { } } /// diff --git a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/Activity.cs b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/Activity.cs index 97aaf78dd30a..981981fdc31f 100644 --- a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/Activity.cs +++ b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/Activity.cs @@ -43,7 +43,7 @@ public Activity(Option /// Used to track the state of ActivityOutputs diff --git a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/ActivityOutputElementRepresentation.cs b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/ActivityOutputElementRepresentation.cs index 993b2a750ce7..f49348deae01 100644 --- a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/ActivityOutputElementRepresentation.cs +++ b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/ActivityOutputElementRepresentation.cs @@ -45,7 +45,7 @@ public ActivityOutputElementRepresentation(Option prop1 = default, Opti OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Used to track the state of Prop1 diff --git a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/AdditionalPropertiesClass.cs b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/AdditionalPropertiesClass.cs index fe4e050f537d..a29996756f49 100644 --- a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/AdditionalPropertiesClass.cs +++ b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/AdditionalPropertiesClass.cs @@ -57,7 +57,7 @@ public AdditionalPropertiesClass(Option anytype1 = default, Option /// Used to track the state of Anytype1 diff --git a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/Animal.cs b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/Animal.cs index 7c54e55cb7b5..b238b31dd237 100644 --- a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/Animal.cs +++ b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/Animal.cs @@ -43,7 +43,7 @@ public Animal(Option color = default) OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// The discriminator diff --git a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/ApiResponse.cs b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/ApiResponse.cs index 4ae5d07dcfef..c0469948c4f3 100644 --- a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/ApiResponse.cs +++ b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/ApiResponse.cs @@ -47,7 +47,7 @@ public ApiResponse(Option code = default, Option message = defaul OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Used to track the state of Code diff --git a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/Apple.cs b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/Apple.cs index 3dab90bbeb36..e38ecd752eb1 100644 --- a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/Apple.cs +++ b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/Apple.cs @@ -47,7 +47,7 @@ public Apple(Option colorCode = default, Option cultivar = def OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Used to track the state of ColorCode diff --git a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/AppleReq.cs b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/AppleReq.cs index 840e615e2280..10f27db2d2c1 100644 --- a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/AppleReq.cs +++ b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/AppleReq.cs @@ -45,7 +45,7 @@ public AppleReq(string cultivar, Option mealy = default) OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Gets or Sets Cultivar diff --git a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/ArrayOfArrayOfNumberOnly.cs b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/ArrayOfArrayOfNumberOnly.cs index d27c45fdcd1d..9a1f2759be7f 100644 --- a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/ArrayOfArrayOfNumberOnly.cs +++ b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/ArrayOfArrayOfNumberOnly.cs @@ -43,7 +43,7 @@ public ArrayOfArrayOfNumberOnly(Option>?> arrayArrayNumber = OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Used to track the state of ArrayArrayNumber diff --git a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/ArrayOfNumberOnly.cs b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/ArrayOfNumberOnly.cs index 72dc6b5327f5..a45634b46911 100644 --- a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/ArrayOfNumberOnly.cs +++ b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/ArrayOfNumberOnly.cs @@ -43,7 +43,7 @@ public ArrayOfNumberOnly(Option?> arrayNumber = default) OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Used to track the state of ArrayNumber diff --git a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/ArrayTest.cs b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/ArrayTest.cs index 947e074e1390..e7475c34faa4 100644 --- a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/ArrayTest.cs +++ b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/ArrayTest.cs @@ -47,7 +47,7 @@ public ArrayTest(Option>?> arrayArrayOfInteger = default, Option OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Used to track the state of ArrayArrayOfInteger diff --git a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/Banana.cs b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/Banana.cs index 06208194730c..f5b78f71f396 100644 --- a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/Banana.cs +++ b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/Banana.cs @@ -43,7 +43,7 @@ public Banana(Option lengthCm = default) OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Used to track the state of LengthCm diff --git a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/BananaReq.cs b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/BananaReq.cs index c145e62672fb..80e880f8fac8 100644 --- a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/BananaReq.cs +++ b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/BananaReq.cs @@ -45,7 +45,7 @@ public BananaReq(decimal lengthCm, Option sweet = default) OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Gets or Sets LengthCm diff --git a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/BasquePig.cs b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/BasquePig.cs index cdd31db8f50c..a1879df9e631 100644 --- a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/BasquePig.cs +++ b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/BasquePig.cs @@ -43,7 +43,7 @@ public BasquePig(string className) OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Gets or Sets ClassName diff --git a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/Capitalization.cs b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/Capitalization.cs index e36a343dc5e2..7442692d0c07 100644 --- a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/Capitalization.cs +++ b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/Capitalization.cs @@ -53,7 +53,7 @@ public Capitalization(Option aTTNAME = default, Option capital OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Used to track the state of ATT_NAME diff --git a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/Cat.cs b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/Cat.cs index 352bba5d51e4..698da5d93896 100644 --- a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/Cat.cs +++ b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/Cat.cs @@ -44,7 +44,7 @@ public Cat(Option color = default, Option declawed = default) : OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// The discriminator diff --git a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/Category.cs b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/Category.cs index 286d8b6464b5..ff7d7d216467 100644 --- a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/Category.cs +++ b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/Category.cs @@ -45,7 +45,7 @@ public Category(Option id = default, string name = @"default-name") OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Used to track the state of Id diff --git a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/ChildCat.cs b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/ChildCat.cs index 2b39e8e86f0c..501d3f07430b 100644 --- a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/ChildCat.cs +++ b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/ChildCat.cs @@ -43,7 +43,7 @@ public ChildCat(Option name = default) : base() OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Defines PetType diff --git a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/ClassModel.cs b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/ClassModel.cs index e38fad89dbad..7fb9722acf73 100644 --- a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/ClassModel.cs +++ b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/ClassModel.cs @@ -43,7 +43,7 @@ public ClassModel(Option @class = default) OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Used to track the state of Class diff --git a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/ComplexQuadrilateral.cs b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/ComplexQuadrilateral.cs index acf1f351fe7a..40371d77bd4f 100644 --- a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/ComplexQuadrilateral.cs +++ b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/ComplexQuadrilateral.cs @@ -45,7 +45,7 @@ public ComplexQuadrilateral(string quadrilateralType, string shapeType) OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Gets or Sets QuadrilateralType diff --git a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/DanishPig.cs b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/DanishPig.cs index c54e2bd3ea87..e60b42612449 100644 --- a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/DanishPig.cs +++ b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/DanishPig.cs @@ -43,7 +43,7 @@ public DanishPig(string className) OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Gets or Sets ClassName diff --git a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/DateOnlyClass.cs b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/DateOnlyClass.cs index dfa0a603bb61..0d096de398b0 100644 --- a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/DateOnlyClass.cs +++ b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/DateOnlyClass.cs @@ -43,7 +43,7 @@ public DateOnlyClass(Option dateOnlyProperty = default) OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Used to track the state of DateOnlyProperty diff --git a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/DeprecatedObject.cs b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/DeprecatedObject.cs index 0b8716d11ff4..5b4e75d2b4a8 100644 --- a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/DeprecatedObject.cs +++ b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/DeprecatedObject.cs @@ -43,7 +43,7 @@ public DeprecatedObject(Option name = default) OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Used to track the state of Name diff --git a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/Dog.cs b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/Dog.cs index 4de2c40c0183..048df7da4ed1 100644 --- a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/Dog.cs +++ b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/Dog.cs @@ -44,7 +44,7 @@ public Dog(Option breed = default, Option color = default) : b OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// The discriminator diff --git a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/Drawing.cs b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/Drawing.cs index 1f8cc5462321..8a08188a7d90 100644 --- a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/Drawing.cs +++ b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/Drawing.cs @@ -49,7 +49,7 @@ public Drawing(Option mainShape = default, Option nullab OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Used to track the state of MainShape diff --git a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/EnumArrays.cs b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/EnumArrays.cs index 809acadd5224..d099366d27d1 100644 --- a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/EnumArrays.cs +++ b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/EnumArrays.cs @@ -45,7 +45,7 @@ public EnumArrays(Option?> arrayEnum = default, O OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Defines ArrayEnum diff --git a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/EnumTest.cs b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/EnumTest.cs index 65adf54ea349..0eb71adc8c17 100644 --- a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/EnumTest.cs +++ b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/EnumTest.cs @@ -59,7 +59,7 @@ public EnumTest(EnumStringRequiredEnum enumStringRequired, Option /// Defines EnumStringRequired diff --git a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/EquilateralTriangle.cs b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/EquilateralTriangle.cs index ca7a8101de84..dacbd5afb6b8 100644 --- a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/EquilateralTriangle.cs +++ b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/EquilateralTriangle.cs @@ -45,7 +45,7 @@ public EquilateralTriangle(string shapeType, string triangleType) OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Gets or Sets ShapeType diff --git a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/File.cs b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/File.cs index bdc5c25e1329..eec89c88c33d 100644 --- a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/File.cs +++ b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/File.cs @@ -43,7 +43,7 @@ public File(Option sourceURI = default) OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Used to track the state of SourceURI diff --git a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/FileSchemaTestClass.cs b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/FileSchemaTestClass.cs index d713d6a161ee..69cb1aea6d78 100644 --- a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/FileSchemaTestClass.cs +++ b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/FileSchemaTestClass.cs @@ -45,7 +45,7 @@ public FileSchemaTestClass(Option file = default, Option?> fil OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Used to track the state of File diff --git a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/Foo.cs b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/Foo.cs index ac4aeb49df5c..6339a01d620c 100644 --- a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/Foo.cs +++ b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/Foo.cs @@ -43,7 +43,7 @@ public Foo(Option bar = default) OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Used to track the state of Bar diff --git a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/FooGetDefaultResponse.cs b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/FooGetDefaultResponse.cs index d1d691a8dd2e..f9898e9239c9 100644 --- a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/FooGetDefaultResponse.cs +++ b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/FooGetDefaultResponse.cs @@ -43,7 +43,7 @@ public FooGetDefaultResponse(Option @string = default) OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Used to track the state of String diff --git a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/FormatTest.cs b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/FormatTest.cs index d9011f3dbd67..811461b307c4 100644 --- a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/FormatTest.cs +++ b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/FormatTest.cs @@ -89,7 +89,7 @@ public FormatTest(byte[] @byte, DateOnly date, decimal number, string password, OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Gets or Sets Byte diff --git a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/Fruit.cs b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/Fruit.cs index 6aa166222089..10cc6f277391 100644 --- a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/Fruit.cs +++ b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/Fruit.cs @@ -56,7 +56,7 @@ public Fruit(Banana banana, Option color = default) OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Gets or Sets Apple diff --git a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/FruitReq.cs b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/FruitReq.cs index 1f75be50f94b..284049a47770 100644 --- a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/FruitReq.cs +++ b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/FruitReq.cs @@ -52,7 +52,7 @@ public FruitReq(BananaReq bananaReq) OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Gets or Sets AppleReq diff --git a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/GmFruit.cs b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/GmFruit.cs index e44c82f23506..e9f32d6dc5d3 100644 --- a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/GmFruit.cs +++ b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/GmFruit.cs @@ -46,7 +46,7 @@ public GmFruit(Option apple, Option banana, Option col OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Used to track the state of Apple diff --git a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/GrandparentAnimal.cs b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/GrandparentAnimal.cs index 69049f30a58f..43ef79e7792f 100644 --- a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/GrandparentAnimal.cs +++ b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/GrandparentAnimal.cs @@ -41,7 +41,7 @@ public GrandparentAnimal() OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// The discriminator diff --git a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/HasOnlyReadOnly.cs b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/HasOnlyReadOnly.cs index 0bf77a18dca2..9d0882298164 100644 --- a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/HasOnlyReadOnly.cs +++ b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/HasOnlyReadOnly.cs @@ -45,7 +45,7 @@ internal HasOnlyReadOnly(Option bar = default, Option foo = de OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Used to track the state of Bar diff --git a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/HealthCheckResult.cs b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/HealthCheckResult.cs index 71f3c4dc4ec0..e24730b0ff4f 100644 --- a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/HealthCheckResult.cs +++ b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/HealthCheckResult.cs @@ -43,7 +43,7 @@ public HealthCheckResult(Option nullableMessage = default) OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Used to track the state of NullableMessage diff --git a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/IsoscelesTriangle.cs b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/IsoscelesTriangle.cs index df5fac5540b5..6bff38521714 100644 --- a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/IsoscelesTriangle.cs +++ b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/IsoscelesTriangle.cs @@ -45,7 +45,7 @@ public IsoscelesTriangle(string shapeType, string triangleType) OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Gets or Sets ShapeType diff --git a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/List.cs b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/List.cs index 024998ed763a..deee071ee63a 100644 --- a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/List.cs +++ b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/List.cs @@ -43,7 +43,7 @@ public List(Option var123List = default) OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Used to track the state of Var123List diff --git a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/LiteralStringClass.cs b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/LiteralStringClass.cs index e54eebdaa1dc..944d1127e3c4 100644 --- a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/LiteralStringClass.cs +++ b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/LiteralStringClass.cs @@ -45,7 +45,7 @@ public LiteralStringClass(Option escapedLiteralString = default, Option OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Used to track the state of EscapedLiteralString diff --git a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/Mammal.cs b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/Mammal.cs index fe273665e2c2..e15d00b9cfae 100644 --- a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/Mammal.cs +++ b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/Mammal.cs @@ -62,7 +62,7 @@ public Mammal(Pig pig) OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Gets or Sets Whale diff --git a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/MapTest.cs b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/MapTest.cs index cf14472204d4..15a13d643b23 100644 --- a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/MapTest.cs +++ b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/MapTest.cs @@ -49,7 +49,7 @@ public MapTest(Option?> directMap = default, Option /// Defines Inner diff --git a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/MixLog.cs b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/MixLog.cs index 002521973975..848ab4a61c18 100644 --- a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/MixLog.cs +++ b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/MixLog.cs @@ -105,7 +105,7 @@ public MixLog(string description, DateTime formulaVersionDate, Guid id, DateTime OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Gets or Sets Description diff --git a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/MixedAnyOf.cs b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/MixedAnyOf.cs index cb6c05a7c77f..93998269708d 100644 --- a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/MixedAnyOf.cs +++ b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/MixedAnyOf.cs @@ -43,7 +43,7 @@ public MixedAnyOf(Option content = default) OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Used to track the state of Content diff --git a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/MixedAnyOfContent.cs b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/MixedAnyOfContent.cs index 72287b1d1b45..776bc2c716e7 100644 --- a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/MixedAnyOfContent.cs +++ b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/MixedAnyOfContent.cs @@ -50,7 +50,7 @@ public MixedAnyOfContent(Option @string, Option @bool, Option /// Used to track the state of String diff --git a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/MixedOneOf.cs b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/MixedOneOf.cs index 2f8ac2dc1d53..74f8278e34b0 100644 --- a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/MixedOneOf.cs +++ b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/MixedOneOf.cs @@ -43,7 +43,7 @@ public MixedOneOf(Option content = default) OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Used to track the state of Content diff --git a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/MixedOneOfContent.cs b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/MixedOneOfContent.cs index 8ea30fde6f80..cf45a798712a 100644 --- a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/MixedOneOfContent.cs +++ b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/MixedOneOfContent.cs @@ -82,7 +82,7 @@ public MixedOneOfContent(MixedSubId mixedSubId) OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Gets or Sets String diff --git a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/MixedPropertiesAndAdditionalPropertiesClass.cs b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/MixedPropertiesAndAdditionalPropertiesClass.cs index a9e28c2f3e83..24cb47fad327 100644 --- a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/MixedPropertiesAndAdditionalPropertiesClass.cs +++ b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/MixedPropertiesAndAdditionalPropertiesClass.cs @@ -49,7 +49,7 @@ public MixedPropertiesAndAdditionalPropertiesClass(Option dateTime = OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Used to track the state of DateTime diff --git a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/MixedSubId.cs b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/MixedSubId.cs index 696681a920f3..23efe3724954 100644 --- a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/MixedSubId.cs +++ b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/MixedSubId.cs @@ -43,7 +43,7 @@ public MixedSubId(Option id = default) OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Used to track the state of Id diff --git a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/Model200Response.cs b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/Model200Response.cs index a6022a5f9cce..071a9256f9d9 100644 --- a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/Model200Response.cs +++ b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/Model200Response.cs @@ -45,7 +45,7 @@ public Model200Response(Option @class = default, Option name = de OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Used to track the state of Class diff --git a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/ModelClient.cs b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/ModelClient.cs index 49dcb68c571f..810a2daf7259 100644 --- a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/ModelClient.cs +++ b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/ModelClient.cs @@ -43,7 +43,7 @@ public ModelClient(Option varClient = default) OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Used to track the state of VarClient diff --git a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/Name.cs b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/Name.cs index 2632fefd0fac..b5aa0cda08e4 100644 --- a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/Name.cs +++ b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/Name.cs @@ -49,7 +49,7 @@ public Name(int varName, Option property = default, Option snakeC OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Gets or Sets VarName diff --git a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/NotificationtestGetElementsV1ResponseMPayload.cs b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/NotificationtestGetElementsV1ResponseMPayload.cs index e3a042f07ea2..5bb540d0aa9b 100644 --- a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/NotificationtestGetElementsV1ResponseMPayload.cs +++ b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/NotificationtestGetElementsV1ResponseMPayload.cs @@ -45,7 +45,7 @@ public NotificationtestGetElementsV1ResponseMPayload(List /// Gets or Sets AObjVariableobject diff --git a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/NullableClass.cs b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/NullableClass.cs index 97697787aa33..4be19d7a4ba7 100644 --- a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/NullableClass.cs +++ b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/NullableClass.cs @@ -65,7 +65,7 @@ public NullableClass(Option?> arrayAndItemsNullableProp = default, OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Used to track the state of ArrayAndItemsNullableProp diff --git a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/NullableGuidClass.cs b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/NullableGuidClass.cs index 7db4f508852b..3f4d3a1cc639 100644 --- a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/NullableGuidClass.cs +++ b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/NullableGuidClass.cs @@ -43,7 +43,7 @@ public NullableGuidClass(Option uuid = default) OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Used to track the state of Uuid diff --git a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/NullableShape.cs b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/NullableShape.cs index 25248c75ffaf..c4dd27296f7a 100644 --- a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/NullableShape.cs +++ b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/NullableShape.cs @@ -52,7 +52,7 @@ public NullableShape(Quadrilateral quadrilateral) OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Gets or Sets Triangle diff --git a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/NumberOnly.cs b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/NumberOnly.cs index b33930dee1b7..538de5d61005 100644 --- a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/NumberOnly.cs +++ b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/NumberOnly.cs @@ -43,7 +43,7 @@ public NumberOnly(Option justNumber = default) OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Used to track the state of JustNumber diff --git a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/ObjectWithDeprecatedFields.cs b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/ObjectWithDeprecatedFields.cs index 72d8feb0ba05..4f2cd3727ae4 100644 --- a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/ObjectWithDeprecatedFields.cs +++ b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/ObjectWithDeprecatedFields.cs @@ -49,7 +49,7 @@ public ObjectWithDeprecatedFields(Option?> bars = default, Option /// Used to track the state of Bars diff --git a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/OneOfString.cs b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/OneOfString.cs index 269f97ae4fd3..0257bd480539 100644 --- a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/OneOfString.cs +++ b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/OneOfString.cs @@ -42,7 +42,7 @@ internal OneOfString(string @string) OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Gets or Sets String diff --git a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/Order.cs b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/Order.cs index ad8a7fe42d07..825021e97959 100644 --- a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/Order.cs +++ b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/Order.cs @@ -53,7 +53,7 @@ public Order(Option complete = default, Option id = default, Optio OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Order Status diff --git a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/OuterComposite.cs b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/OuterComposite.cs index 9e354ba31085..80f658408b3b 100644 --- a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/OuterComposite.cs +++ b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/OuterComposite.cs @@ -47,7 +47,7 @@ public OuterComposite(Option myBoolean = default, Option myNumb OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Used to track the state of MyBoolean diff --git a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/ParentPet.cs b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/ParentPet.cs index 6218c3add483..a558c9633a5c 100644 --- a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/ParentPet.cs +++ b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/ParentPet.cs @@ -41,7 +41,7 @@ public ParentPet() : base() OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// The discriminator diff --git a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/Pet.cs b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/Pet.cs index f055e78da6e8..ae28853f7e11 100644 --- a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/Pet.cs +++ b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/Pet.cs @@ -53,7 +53,7 @@ public Pet(string name, List photoUrls, Option category = def OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// pet status in the store diff --git a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/Pig.cs b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/Pig.cs index 57c4f9a91217..8d9037863e61 100644 --- a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/Pig.cs +++ b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/Pig.cs @@ -52,7 +52,7 @@ public Pig(DanishPig danishPig) OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Gets or Sets BasquePig diff --git a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/PolymorphicProperty.cs b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/PolymorphicProperty.cs index 9e1aaafe221e..3ae447899d9e 100644 --- a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/PolymorphicProperty.cs +++ b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/PolymorphicProperty.cs @@ -72,7 +72,7 @@ internal PolymorphicProperty(List list) OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Gets or Sets Bool diff --git a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/Quadrilateral.cs b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/Quadrilateral.cs index 8e308392490d..749d36b9fd21 100644 --- a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/Quadrilateral.cs +++ b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/Quadrilateral.cs @@ -52,7 +52,7 @@ public Quadrilateral(ComplexQuadrilateral complexQuadrilateral) OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Gets or Sets SimpleQuadrilateral diff --git a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/QuadrilateralInterface.cs b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/QuadrilateralInterface.cs index 3d15636fda9a..12d4ee29b63e 100644 --- a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/QuadrilateralInterface.cs +++ b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/QuadrilateralInterface.cs @@ -43,7 +43,7 @@ public QuadrilateralInterface(string quadrilateralType) OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Gets or Sets QuadrilateralType diff --git a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/ReadOnlyFirst.cs b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/ReadOnlyFirst.cs index 4d458434bb1c..fa322f4bbd50 100644 --- a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/ReadOnlyFirst.cs +++ b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/ReadOnlyFirst.cs @@ -45,7 +45,7 @@ public ReadOnlyFirst(Option bar = default, Option baz = defaul OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Used to track the state of Bar diff --git a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/RequiredClass.cs b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/RequiredClass.cs index f8095975d33e..42c11539284e 100644 --- a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/RequiredClass.cs +++ b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/RequiredClass.cs @@ -129,7 +129,7 @@ public RequiredClass(DateOnly requiredNotNullableDateProp, List required OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Defines RequiredNotnullableEnumInteger diff --git a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/Return.cs b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/Return.cs index 14b4548c6105..7b0e2c452be3 100644 --- a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/Return.cs +++ b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/Return.cs @@ -49,7 +49,7 @@ public Return(string @lock, string? @abstract = default, Option varReturn OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Gets or Sets Lock diff --git a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/RolesReportsHash.cs b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/RolesReportsHash.cs index 8df9de9ae715..da23e9a534f7 100644 --- a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/RolesReportsHash.cs +++ b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/RolesReportsHash.cs @@ -45,7 +45,7 @@ public RolesReportsHash(Option role = default, Option /// Used to track the state of Role diff --git a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/RolesReportsHashRole.cs b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/RolesReportsHashRole.cs index ba4ac84d8e20..fe109ab0480c 100644 --- a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/RolesReportsHashRole.cs +++ b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/RolesReportsHashRole.cs @@ -43,7 +43,7 @@ public RolesReportsHashRole(Option name = default) OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Used to track the state of Name diff --git a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/ScaleneTriangle.cs b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/ScaleneTriangle.cs index 6ce8c2b68a1b..c0dbc1caef87 100644 --- a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/ScaleneTriangle.cs +++ b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/ScaleneTriangle.cs @@ -45,7 +45,7 @@ public ScaleneTriangle(string shapeType, string triangleType) OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Gets or Sets ShapeType diff --git a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/Shape.cs b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/Shape.cs index 71620d915bbb..150f0c408255 100644 --- a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/Shape.cs +++ b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/Shape.cs @@ -52,7 +52,7 @@ public Shape(Quadrilateral quadrilateral) OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Gets or Sets Triangle diff --git a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/ShapeInterface.cs b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/ShapeInterface.cs index 3070f52be3ac..914f1cad2df9 100644 --- a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/ShapeInterface.cs +++ b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/ShapeInterface.cs @@ -43,7 +43,7 @@ public ShapeInterface(string shapeType) OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Gets or Sets ShapeType diff --git a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/ShapeOrNull.cs b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/ShapeOrNull.cs index 37b5fddee5e3..94591fbdc7ee 100644 --- a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/ShapeOrNull.cs +++ b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/ShapeOrNull.cs @@ -52,7 +52,7 @@ public ShapeOrNull(Quadrilateral quadrilateral) OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Gets or Sets Triangle diff --git a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/SimpleQuadrilateral.cs b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/SimpleQuadrilateral.cs index 61ff978f3c24..d876f150a051 100644 --- a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/SimpleQuadrilateral.cs +++ b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/SimpleQuadrilateral.cs @@ -45,7 +45,7 @@ public SimpleQuadrilateral(string quadrilateralType, string shapeType) OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Gets or Sets QuadrilateralType diff --git a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/SpecialModelName.cs b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/SpecialModelName.cs index c72f3539283b..f4a4a73ed45d 100644 --- a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/SpecialModelName.cs +++ b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/SpecialModelName.cs @@ -45,7 +45,7 @@ public SpecialModelName(Option varSpecialModelName = default, Option /// Used to track the state of VarSpecialModelName diff --git a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/Tag.cs b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/Tag.cs index 9ac29533f720..16236a0d6ab2 100644 --- a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/Tag.cs +++ b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/Tag.cs @@ -45,7 +45,7 @@ public Tag(Option id = default, Option name = default) OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Used to track the state of Id diff --git a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordList.cs b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordList.cs index b5f8d88ed68d..12adda47f93c 100644 --- a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordList.cs +++ b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordList.cs @@ -43,7 +43,7 @@ public TestCollectionEndingWithWordList(Option value = default) OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Used to track the state of Value diff --git a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordListObject.cs b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordListObject.cs index bfc3a14472d7..7c4d3b5bc857 100644 --- a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordListObject.cs +++ b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordListObject.cs @@ -43,7 +43,7 @@ public TestCollectionEndingWithWordListObject(Option /// Used to track the state of TestCollectionEndingWithWordList diff --git a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/TestInlineFreeformAdditionalPropertiesRequest.cs b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/TestInlineFreeformAdditionalPropertiesRequest.cs index de60d7c2281f..dd3309d17674 100644 --- a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/TestInlineFreeformAdditionalPropertiesRequest.cs +++ b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/TestInlineFreeformAdditionalPropertiesRequest.cs @@ -43,7 +43,7 @@ public TestInlineFreeformAdditionalPropertiesRequest(Option somePropert OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Used to track the state of SomeProperty diff --git a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/Triangle.cs b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/Triangle.cs index 5c2490410259..1b78a405e43e 100644 --- a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/Triangle.cs +++ b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/Triangle.cs @@ -62,7 +62,7 @@ public Triangle(ScaleneTriangle scaleneTriangle) OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Gets or Sets EquilateralTriangle diff --git a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/TriangleInterface.cs b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/TriangleInterface.cs index a2ef4da28f5a..3f76d394749b 100644 --- a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/TriangleInterface.cs +++ b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/TriangleInterface.cs @@ -43,7 +43,7 @@ public TriangleInterface(string triangleType) OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Gets or Sets TriangleType diff --git a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/User.cs b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/User.cs index 6692b4f25093..101f9305d60b 100644 --- a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/User.cs +++ b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/User.cs @@ -65,7 +65,7 @@ public User(Option anyTypeProp = default, Option anyTypePropNu OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Used to track the state of AnyTypeProp diff --git a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/Whale.cs b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/Whale.cs index f3f3e60766df..5429f238f906 100644 --- a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/Whale.cs +++ b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/Whale.cs @@ -47,7 +47,7 @@ public Whale(string className, Option hasBaleen = default, Option OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Gets or Sets ClassName diff --git a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/Zebra.cs b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/Zebra.cs index 0d0e7222c42b..f5b10906683c 100644 --- a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/Zebra.cs +++ b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/Zebra.cs @@ -45,7 +45,7 @@ public Zebra(string className, Option type = default) OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Defines Type diff --git a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/ZeroBasedEnumClass.cs b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/ZeroBasedEnumClass.cs index 74792442fd0e..7c916367504a 100644 --- a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/ZeroBasedEnumClass.cs +++ b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/ZeroBasedEnumClass.cs @@ -43,7 +43,7 @@ public ZeroBasedEnumClass(Option zeroBasedEnum = default) OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Defines ZeroBasedEnum 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 7782f09b34bf..0e0785ad41a9 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 @@ -152,7 +152,7 @@ private void AfterNowGetDefaultImplementation(INowGetApiResponse apiResponseLoca /// /// /// - partial void AfterNowGet(ref bool suppressDefaultLog, INowGetApiResponse apiResponseLocalVar); + public virtual void AfterNowGet(ref bool suppressDefaultLog, INowGetApiResponse apiResponseLocalVar) { } /// /// Logs exceptions that occur while retrieving the server response @@ -175,7 +175,7 @@ private void OnErrorNowGetDefaultImplementation(Exception exceptionLocalVar, str /// /// /// - partial void OnErrorNowGet(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar); + public virtual void OnErrorNowGet(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar) { } /// /// @@ -278,7 +278,7 @@ public NowGetApiResponse(ILogger logger, System.Net.Http.Http OnCreated(httpRequestMessage, httpResponseMessage); } - partial void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage); + public virtual void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage) { } /// /// Returns true if the response is 200 Ok @@ -326,7 +326,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } - partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); + public virtual void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode) { } } } } diff --git a/samples/client/petstore/csharp/generichost/net8/UseDateTimeForDate/src/Org.OpenAPITools/Client/ApiResponse`1.cs b/samples/client/petstore/csharp/generichost/net8/UseDateTimeForDate/src/Org.OpenAPITools/Client/ApiResponse`1.cs index 0027952859de..4e2538f73592 100644 --- a/samples/client/petstore/csharp/generichost/net8/UseDateTimeForDate/src/Org.OpenAPITools/Client/ApiResponse`1.cs +++ b/samples/client/petstore/csharp/generichost/net8/UseDateTimeForDate/src/Org.OpenAPITools/Client/ApiResponse`1.cs @@ -147,7 +147,7 @@ public ApiResponse(global::System.Net.Http.HttpRequestMessage httpRequestMessage OnCreated(httpRequestMessage, httpResponseMessage); } - partial void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage); + public virtual void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage) { } } /// diff --git a/samples/client/petstore/csharp/generichost/net8/UseDateTimeForDate/src/Org.OpenAPITools/Model/NowGet200Response.cs b/samples/client/petstore/csharp/generichost/net8/UseDateTimeForDate/src/Org.OpenAPITools/Model/NowGet200Response.cs index d07559ec5275..bd5ab64255b3 100644 --- a/samples/client/petstore/csharp/generichost/net8/UseDateTimeForDate/src/Org.OpenAPITools/Model/NowGet200Response.cs +++ b/samples/client/petstore/csharp/generichost/net8/UseDateTimeForDate/src/Org.OpenAPITools/Model/NowGet200Response.cs @@ -43,7 +43,7 @@ public NowGet200Response(Option now = default, Option toda OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Used to track the state of Now 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 57b7fd8511df..81b68a7bd804 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 @@ -169,7 +169,7 @@ public AnotherFakeApi(ILogger logger, ILoggerFactory loggerFacto OauthTokenProvider = oauthTokenProvider; } - partial void FormatCall123TestSpecialTags(ModelClient modelClient); + public virtual void FormatCall123TestSpecialTags(ModelClient modelClient) { } /// /// Validates the request parameters @@ -201,7 +201,7 @@ private void AfterCall123TestSpecialTagsDefaultImplementation(ICall123TestSpecia /// /// /// - partial void AfterCall123TestSpecialTags(ref bool suppressDefaultLog, ICall123TestSpecialTagsApiResponse apiResponseLocalVar, ModelClient modelClient); + public virtual void AfterCall123TestSpecialTags(ref bool suppressDefaultLog, ICall123TestSpecialTagsApiResponse apiResponseLocalVar, ModelClient modelClient) { } /// /// Logs exceptions that occur while retrieving the server response @@ -226,7 +226,7 @@ private void OnErrorCall123TestSpecialTagsDefaultImplementation(Exception except /// /// /// - partial void OnErrorCall123TestSpecialTags(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, ModelClient modelClient); + public virtual 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 @@ -347,7 +347,7 @@ public Call123TestSpecialTagsApiResponse(ILogger /// Returns true if the response is 200 Ok @@ -395,7 +395,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } - partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); + public virtual void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode) { } } } } 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 e2f9ed3767b0..0b09acdb3c40 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 @@ -398,7 +398,7 @@ private void AfterFooGetDefaultImplementation(IFooGetApiResponse apiResponseLoca /// /// /// - partial void AfterFooGet(ref bool suppressDefaultLog, IFooGetApiResponse apiResponseLocalVar); + public virtual void AfterFooGet(ref bool suppressDefaultLog, IFooGetApiResponse apiResponseLocalVar) { } /// /// Logs exceptions that occur while retrieving the server response @@ -421,7 +421,7 @@ private void OnErrorFooGetDefaultImplementation(Exception exceptionLocalVar, str /// /// /// - partial void OnErrorFooGet(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar); + public virtual void OnErrorFooGet(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar) { } /// /// @@ -523,7 +523,7 @@ public FooGetApiResponse(ILogger logger, System.Net.Http.Http OnCreated(httpRequestMessage, httpResponseMessage); } - partial void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage); + public virtual void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage) { } /// /// Returns true if the response is the default response type @@ -571,10 +571,10 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } - partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); + public virtual void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode) { } } - partial void FormatGetCountry(ref string country); + public virtual void FormatGetCountry(ref string country) { } /// /// Validates the request parameters @@ -606,7 +606,7 @@ private void AfterGetCountryDefaultImplementation(IGetCountryApiResponse apiResp /// /// /// - partial void AfterGetCountry(ref bool suppressDefaultLog, IGetCountryApiResponse apiResponseLocalVar, string country); + public virtual void AfterGetCountry(ref bool suppressDefaultLog, IGetCountryApiResponse apiResponseLocalVar, string country) { } /// /// Logs exceptions that occur while retrieving the server response @@ -631,7 +631,7 @@ private void OnErrorGetCountryDefaultImplementation(Exception exceptionLocalVar, /// /// /// - partial void OnErrorGetCountry(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, string country); + public virtual void OnErrorGetCountry(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, string country) { } /// /// @@ -750,7 +750,7 @@ public GetCountryApiResponse(ILogger logger, System.Net.H OnCreated(httpRequestMessage, httpResponseMessage); } - partial void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage); + public virtual void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage) { } /// /// Returns true if the response is 200 Ok @@ -766,7 +766,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } - partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); + public virtual void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode) { } } /// @@ -786,7 +786,7 @@ private void AfterHelloDefaultImplementation(IHelloApiResponse apiResponseLocalV /// /// /// - partial void AfterHello(ref bool suppressDefaultLog, IHelloApiResponse apiResponseLocalVar); + public virtual void AfterHello(ref bool suppressDefaultLog, IHelloApiResponse apiResponseLocalVar) { } /// /// Logs exceptions that occur while retrieving the server response @@ -809,7 +809,7 @@ private void OnErrorHelloDefaultImplementation(Exception exceptionLocalVar, stri /// /// /// - partial void OnErrorHello(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar); + public virtual void OnErrorHello(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar) { } /// /// Hello Hello @@ -911,7 +911,7 @@ public HelloApiResponse(ILogger logger, System.Net.Http.HttpRe OnCreated(httpRequestMessage, httpResponseMessage); } - partial void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage); + public virtual void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage) { } /// /// Returns true if the response is 200 Ok @@ -959,7 +959,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } - partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); + public virtual void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode) { } } /// @@ -979,7 +979,7 @@ private void AfterRolesReportGetDefaultImplementation(IRolesReportGetApiResponse /// /// /// - partial void AfterRolesReportGet(ref bool suppressDefaultLog, IRolesReportGetApiResponse apiResponseLocalVar); + public virtual void AfterRolesReportGet(ref bool suppressDefaultLog, IRolesReportGetApiResponse apiResponseLocalVar) { } /// /// Logs exceptions that occur while retrieving the server response @@ -1002,7 +1002,7 @@ private void OnErrorRolesReportGetDefaultImplementation(Exception exceptionLocal /// /// /// - partial void OnErrorRolesReportGet(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar); + public virtual void OnErrorRolesReportGet(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar) { } /// /// @@ -1104,7 +1104,7 @@ public RolesReportGetApiResponse(ILogger logger, Syst OnCreated(httpRequestMessage, httpResponseMessage); } - partial void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage); + public virtual void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage) { } /// /// Returns true if the response is 200 Ok @@ -1152,7 +1152,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } - partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); + public virtual void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode) { } } /// @@ -1172,7 +1172,7 @@ private void AfterTestDefaultImplementation(ITestApiResponse apiResponseLocalVar /// /// /// - partial void AfterTest(ref bool suppressDefaultLog, ITestApiResponse apiResponseLocalVar); + public virtual void AfterTest(ref bool suppressDefaultLog, ITestApiResponse apiResponseLocalVar) { } /// /// Logs exceptions that occur while retrieving the server response @@ -1195,7 +1195,7 @@ private void OnErrorTestDefaultImplementation(Exception exceptionLocalVar, strin /// /// /// - partial void OnErrorTest(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar); + public virtual void OnErrorTest(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar) { } /// /// Retrieve an existing Notificationtest's Elements @@ -1297,7 +1297,7 @@ public TestApiResponse(ILogger logger, System.Net.Http.HttpRequ OnCreated(httpRequestMessage, httpResponseMessage); } - partial void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage); + public virtual void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage) { } /// /// Returns true if the response is 200 Ok @@ -1345,7 +1345,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } - partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); + public virtual void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode) { } } } } 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 0df3dc21b8d7..8f7af6155dcc 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 @@ -1307,7 +1307,7 @@ private void AfterFakeHealthGetDefaultImplementation(IFakeHealthGetApiResponse a /// /// /// - partial void AfterFakeHealthGet(ref bool suppressDefaultLog, IFakeHealthGetApiResponse apiResponseLocalVar); + public virtual void AfterFakeHealthGet(ref bool suppressDefaultLog, IFakeHealthGetApiResponse apiResponseLocalVar) { } /// /// Logs exceptions that occur while retrieving the server response @@ -1330,7 +1330,7 @@ private void OnErrorFakeHealthGetDefaultImplementation(Exception exceptionLocalV /// /// /// - partial void OnErrorFakeHealthGet(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar); + public virtual void OnErrorFakeHealthGet(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar) { } /// /// Health check endpoint @@ -1432,7 +1432,7 @@ public FakeHealthGetApiResponse(ILogger logger, System OnCreated(httpRequestMessage, httpResponseMessage); } - partial void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage); + public virtual void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage) { } /// /// Returns true if the response is 200 Ok @@ -1480,10 +1480,10 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } - partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); + public virtual void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode) { } } - partial void FormatFakeOuterBooleanSerialize(ref Option body); + public virtual void FormatFakeOuterBooleanSerialize(ref Option body) { } /// /// Processes the server response @@ -1504,7 +1504,7 @@ private void AfterFakeOuterBooleanSerializeDefaultImplementation(IFakeOuterBoole /// /// /// - partial void AfterFakeOuterBooleanSerialize(ref bool suppressDefaultLog, IFakeOuterBooleanSerializeApiResponse apiResponseLocalVar, Option body); + public virtual void AfterFakeOuterBooleanSerialize(ref bool suppressDefaultLog, IFakeOuterBooleanSerializeApiResponse apiResponseLocalVar, Option body) { } /// /// Logs exceptions that occur while retrieving the server response @@ -1529,7 +1529,7 @@ private void OnErrorFakeOuterBooleanSerializeDefaultImplementation(Exception exc /// /// /// - partial void OnErrorFakeOuterBooleanSerialize(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, Option body); + public virtual void OnErrorFakeOuterBooleanSerialize(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, Option body) { } /// /// Test serialization of outer boolean types @@ -1649,7 +1649,7 @@ public FakeOuterBooleanSerializeApiResponse(ILogger /// Returns true if the response is 200 Ok @@ -1697,10 +1697,10 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } - partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); + public virtual void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode) { } } - partial void FormatFakeOuterCompositeSerialize(Option outerComposite); + public virtual void FormatFakeOuterCompositeSerialize(Option outerComposite) { } /// /// Validates the request parameters @@ -1732,7 +1732,7 @@ private void AfterFakeOuterCompositeSerializeDefaultImplementation(IFakeOuterCom /// /// /// - partial void AfterFakeOuterCompositeSerialize(ref bool suppressDefaultLog, IFakeOuterCompositeSerializeApiResponse apiResponseLocalVar, Option outerComposite); + public virtual void AfterFakeOuterCompositeSerialize(ref bool suppressDefaultLog, IFakeOuterCompositeSerializeApiResponse apiResponseLocalVar, Option outerComposite) { } /// /// Logs exceptions that occur while retrieving the server response @@ -1757,7 +1757,7 @@ private void OnErrorFakeOuterCompositeSerializeDefaultImplementation(Exception e /// /// /// - partial void OnErrorFakeOuterCompositeSerialize(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, Option outerComposite); + public virtual void OnErrorFakeOuterCompositeSerialize(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, Option outerComposite) { } /// /// Test serialization of object with outer number type @@ -1879,7 +1879,7 @@ public FakeOuterCompositeSerializeApiResponse(ILogger /// Returns true if the response is 200 Ok @@ -1927,10 +1927,10 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } - partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); + public virtual void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode) { } } - partial void FormatFakeOuterNumberSerialize(ref Option body); + public virtual void FormatFakeOuterNumberSerialize(ref Option body) { } /// /// Processes the server response @@ -1951,7 +1951,7 @@ private void AfterFakeOuterNumberSerializeDefaultImplementation(IFakeOuterNumber /// /// /// - partial void AfterFakeOuterNumberSerialize(ref bool suppressDefaultLog, IFakeOuterNumberSerializeApiResponse apiResponseLocalVar, Option body); + public virtual void AfterFakeOuterNumberSerialize(ref bool suppressDefaultLog, IFakeOuterNumberSerializeApiResponse apiResponseLocalVar, Option body) { } /// /// Logs exceptions that occur while retrieving the server response @@ -1976,7 +1976,7 @@ private void OnErrorFakeOuterNumberSerializeDefaultImplementation(Exception exce /// /// /// - partial void OnErrorFakeOuterNumberSerialize(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, Option body); + public virtual void OnErrorFakeOuterNumberSerialize(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, Option body) { } /// /// Test serialization of outer number types @@ -2096,7 +2096,7 @@ public FakeOuterNumberSerializeApiResponse(ILogger /// Returns true if the response is 200 Ok @@ -2144,10 +2144,10 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } - partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); + public virtual void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode) { } } - partial void FormatFakeOuterStringSerialize(ref Guid requiredStringUuid, ref Option body); + public virtual void FormatFakeOuterStringSerialize(ref Guid requiredStringUuid, ref Option body) { } /// /// Validates the request parameters @@ -2181,7 +2181,7 @@ private void AfterFakeOuterStringSerializeDefaultImplementation(IFakeOuterString /// /// /// - partial void AfterFakeOuterStringSerialize(ref bool suppressDefaultLog, IFakeOuterStringSerializeApiResponse apiResponseLocalVar, Guid requiredStringUuid, Option body); + public virtual void AfterFakeOuterStringSerialize(ref bool suppressDefaultLog, IFakeOuterStringSerializeApiResponse apiResponseLocalVar, Guid requiredStringUuid, Option body) { } /// /// Logs exceptions that occur while retrieving the server response @@ -2208,7 +2208,7 @@ private void OnErrorFakeOuterStringSerializeDefaultImplementation(Exception exce /// /// /// - partial void OnErrorFakeOuterStringSerialize(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, Guid requiredStringUuid, Option body); + public virtual void OnErrorFakeOuterStringSerialize(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, Guid requiredStringUuid, Option body) { } /// /// Test serialization of outer string types @@ -2338,7 +2338,7 @@ public FakeOuterStringSerializeApiResponse(ILogger /// Returns true if the response is 200 Ok @@ -2386,7 +2386,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } - partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); + public virtual void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode) { } } /// @@ -2406,7 +2406,7 @@ private void AfterGetArrayOfEnumsDefaultImplementation(IGetArrayOfEnumsApiRespon /// /// /// - partial void AfterGetArrayOfEnums(ref bool suppressDefaultLog, IGetArrayOfEnumsApiResponse apiResponseLocalVar); + public virtual void AfterGetArrayOfEnums(ref bool suppressDefaultLog, IGetArrayOfEnumsApiResponse apiResponseLocalVar) { } /// /// Logs exceptions that occur while retrieving the server response @@ -2429,7 +2429,7 @@ private void OnErrorGetArrayOfEnumsDefaultImplementation(Exception exceptionLoca /// /// /// - partial void OnErrorGetArrayOfEnums(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar); + public virtual void OnErrorGetArrayOfEnums(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar) { } /// /// Array of Enums @@ -2531,7 +2531,7 @@ public GetArrayOfEnumsApiResponse(ILogger logger, Sy OnCreated(httpRequestMessage, httpResponseMessage); } - partial void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage); + public virtual void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage) { } /// /// Returns true if the response is 200 Ok @@ -2579,7 +2579,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } - partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); + public virtual void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode) { } } /// @@ -2599,7 +2599,7 @@ private void AfterGetMixedAnyOfDefaultImplementation(IGetMixedAnyOfApiResponse a /// /// /// - partial void AfterGetMixedAnyOf(ref bool suppressDefaultLog, IGetMixedAnyOfApiResponse apiResponseLocalVar); + public virtual void AfterGetMixedAnyOf(ref bool suppressDefaultLog, IGetMixedAnyOfApiResponse apiResponseLocalVar) { } /// /// Logs exceptions that occur while retrieving the server response @@ -2622,7 +2622,7 @@ private void OnErrorGetMixedAnyOfDefaultImplementation(Exception exceptionLocalV /// /// /// - partial void OnErrorGetMixedAnyOf(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar); + public virtual void OnErrorGetMixedAnyOf(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar) { } /// /// Test mixed type anyOf deserialization @@ -2724,7 +2724,7 @@ public GetMixedAnyOfApiResponse(ILogger logger, System OnCreated(httpRequestMessage, httpResponseMessage); } - partial void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage); + public virtual void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage) { } /// /// Returns true if the response is 200 Ok @@ -2772,7 +2772,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } - partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); + public virtual void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode) { } } /// @@ -2792,7 +2792,7 @@ private void AfterGetMixedOneOfDefaultImplementation(IGetMixedOneOfApiResponse a /// /// /// - partial void AfterGetMixedOneOf(ref bool suppressDefaultLog, IGetMixedOneOfApiResponse apiResponseLocalVar); + public virtual void AfterGetMixedOneOf(ref bool suppressDefaultLog, IGetMixedOneOfApiResponse apiResponseLocalVar) { } /// /// Logs exceptions that occur while retrieving the server response @@ -2815,7 +2815,7 @@ private void OnErrorGetMixedOneOfDefaultImplementation(Exception exceptionLocalV /// /// /// - partial void OnErrorGetMixedOneOf(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar); + public virtual void OnErrorGetMixedOneOf(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar) { } /// /// Test mixed type oneOf deserialization @@ -2917,7 +2917,7 @@ public GetMixedOneOfApiResponse(ILogger logger, System OnCreated(httpRequestMessage, httpResponseMessage); } - partial void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage); + public virtual void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage) { } /// /// Returns true if the response is 200 Ok @@ -2965,10 +2965,10 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } - partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); + public virtual void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode) { } } - partial void FormatTestAdditionalPropertiesReference(Dictionary requestBody); + public virtual void FormatTestAdditionalPropertiesReference(Dictionary requestBody) { } /// /// Validates the request parameters @@ -3000,7 +3000,7 @@ private void AfterTestAdditionalPropertiesReferenceDefaultImplementation(ITestAd /// /// /// - partial void AfterTestAdditionalPropertiesReference(ref bool suppressDefaultLog, ITestAdditionalPropertiesReferenceApiResponse apiResponseLocalVar, Dictionary requestBody); + public virtual void AfterTestAdditionalPropertiesReference(ref bool suppressDefaultLog, ITestAdditionalPropertiesReferenceApiResponse apiResponseLocalVar, Dictionary requestBody) { } /// /// Logs exceptions that occur while retrieving the server response @@ -3025,7 +3025,7 @@ private void OnErrorTestAdditionalPropertiesReferenceDefaultImplementation(Excep /// /// /// - partial void OnErrorTestAdditionalPropertiesReference(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, Dictionary requestBody); + public virtual void OnErrorTestAdditionalPropertiesReference(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, Dictionary requestBody) { } /// /// test referenced additionalProperties @@ -3138,7 +3138,7 @@ public TestAdditionalPropertiesReferenceApiResponse(ILogger /// Returns true if the response is 200 Ok @@ -3154,10 +3154,10 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } - partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); + public virtual void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode) { } } - partial void FormatTestBodyWithFileSchema(FileSchemaTestClass fileSchemaTestClass); + public virtual void FormatTestBodyWithFileSchema(FileSchemaTestClass fileSchemaTestClass) { } /// /// Validates the request parameters @@ -3189,7 +3189,7 @@ private void AfterTestBodyWithFileSchemaDefaultImplementation(ITestBodyWithFileS /// /// /// - partial void AfterTestBodyWithFileSchema(ref bool suppressDefaultLog, ITestBodyWithFileSchemaApiResponse apiResponseLocalVar, FileSchemaTestClass fileSchemaTestClass); + public virtual void AfterTestBodyWithFileSchema(ref bool suppressDefaultLog, ITestBodyWithFileSchemaApiResponse apiResponseLocalVar, FileSchemaTestClass fileSchemaTestClass) { } /// /// Logs exceptions that occur while retrieving the server response @@ -3214,7 +3214,7 @@ private void OnErrorTestBodyWithFileSchemaDefaultImplementation(Exception except /// /// /// - partial void OnErrorTestBodyWithFileSchema(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, FileSchemaTestClass fileSchemaTestClass); + public virtual 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`. @@ -3327,7 +3327,7 @@ public TestBodyWithFileSchemaApiResponse(ILogger /// Returns true if the response is 200 Ok @@ -3343,10 +3343,10 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } - partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); + public virtual void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode) { } } - partial void FormatTestBodyWithQueryParams(ref string query, User user); + public virtual void FormatTestBodyWithQueryParams(ref string query, User user) { } /// /// Validates the request parameters @@ -3384,7 +3384,7 @@ private void AfterTestBodyWithQueryParamsDefaultImplementation(ITestBodyWithQuer /// /// /// - partial void AfterTestBodyWithQueryParams(ref bool suppressDefaultLog, ITestBodyWithQueryParamsApiResponse apiResponseLocalVar, string query, User user); + public virtual void AfterTestBodyWithQueryParams(ref bool suppressDefaultLog, ITestBodyWithQueryParamsApiResponse apiResponseLocalVar, string query, User user) { } /// /// Logs exceptions that occur while retrieving the server response @@ -3411,7 +3411,7 @@ private void OnErrorTestBodyWithQueryParamsDefaultImplementation(Exception excep /// /// /// - partial void OnErrorTestBodyWithQueryParams(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, string query, User user); + public virtual void OnErrorTestBodyWithQueryParams(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, string query, User user) { } /// /// @@ -3532,7 +3532,7 @@ public TestBodyWithQueryParamsApiResponse(ILogger /// Returns true if the response is 200 Ok @@ -3548,10 +3548,10 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } - partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); + public virtual void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode) { } } - partial void FormatTestClientModel(ModelClient modelClient); + public virtual void FormatTestClientModel(ModelClient modelClient) { } /// /// Validates the request parameters @@ -3583,7 +3583,7 @@ private void AfterTestClientModelDefaultImplementation(ITestClientModelApiRespon /// /// /// - partial void AfterTestClientModel(ref bool suppressDefaultLog, ITestClientModelApiResponse apiResponseLocalVar, ModelClient modelClient); + public virtual void AfterTestClientModel(ref bool suppressDefaultLog, ITestClientModelApiResponse apiResponseLocalVar, ModelClient modelClient) { } /// /// Logs exceptions that occur while retrieving the server response @@ -3608,7 +3608,7 @@ private void OnErrorTestClientModelDefaultImplementation(Exception exceptionLoca /// /// /// - partial void OnErrorTestClientModel(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, ModelClient modelClient); + public virtual void OnErrorTestClientModel(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, ModelClient modelClient) { } /// /// To test \"client\" model To test \"client\" model @@ -3729,7 +3729,7 @@ public TestClientModelApiResponse(ILogger logger, Sy OnCreated(httpRequestMessage, httpResponseMessage); } - partial void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage); + public virtual void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage) { } /// /// Returns true if the response is 200 Ok @@ -3777,10 +3777,10 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } - partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); + public virtual void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode) { } } - partial void FormatTestEndpointParameters(ref decimal number, ref string patternWithoutDelimiter, ref byte[] varByte, ref double varDouble, ref Option binary, ref Option callback, ref Option date, ref Option dateTime, ref Option int32, ref Option int64, ref Option integer, ref Option password, ref Option varFloat, ref Option varString); + public virtual void FormatTestEndpointParameters(ref decimal number, ref string patternWithoutDelimiter, ref byte[] varByte, ref double varDouble, ref Option binary, ref Option callback, ref Option date, ref Option dateTime, ref Option int32, ref Option int64, ref Option integer, ref Option password, ref Option varFloat, ref Option varString) { } /// /// Validates the request parameters @@ -3858,7 +3858,7 @@ private void AfterTestEndpointParametersDefaultImplementation(ITestEndpointParam /// /// /// - partial void AfterTestEndpointParameters(ref bool suppressDefaultLog, ITestEndpointParametersApiResponse apiResponseLocalVar, 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); + public virtual void AfterTestEndpointParameters(ref bool suppressDefaultLog, ITestEndpointParametersApiResponse apiResponseLocalVar, 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) { } /// /// Logs exceptions that occur while retrieving the server response @@ -3909,7 +3909,7 @@ private void OnErrorTestEndpointParametersDefaultImplementation(Exception except /// /// /// - 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); + public virtual 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 假端點 偽のエンドポイント 가짜 엔드 포인트 @@ -4101,7 +4101,7 @@ public TestEndpointParametersApiResponse(ILogger /// Returns true if the response is 400 BadRequest @@ -4123,10 +4123,10 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } - partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); + public virtual void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode) { } } - partial void FormatTestEnumParameters(ref Option enumFormString, Option> enumFormStringArray, ref Option enumHeaderString, Option> enumHeaderStringArray, ref Option enumQueryDouble, ref Option enumQueryInteger, ref Option enumQueryString, Option> enumQueryStringArray); + public virtual void FormatTestEnumParameters(ref Option enumFormString, Option> enumFormStringArray, ref Option enumHeaderString, Option> enumHeaderStringArray, ref Option enumQueryDouble, ref Option enumQueryInteger, ref Option enumQueryString, Option> enumQueryStringArray) { } /// /// Validates the request parameters @@ -4192,7 +4192,7 @@ private void AfterTestEnumParametersDefaultImplementation(ITestEnumParametersApi /// /// /// - partial void AfterTestEnumParameters(ref bool suppressDefaultLog, ITestEnumParametersApiResponse apiResponseLocalVar, Option enumFormString, Option> enumFormStringArray, Option enumHeaderString, Option> enumHeaderStringArray, Option enumQueryDouble, Option enumQueryInteger, Option enumQueryString, Option> enumQueryStringArray); + public virtual void AfterTestEnumParameters(ref bool suppressDefaultLog, ITestEnumParametersApiResponse apiResponseLocalVar, Option enumFormString, Option> enumFormStringArray, Option enumHeaderString, Option> enumHeaderStringArray, Option enumQueryDouble, Option enumQueryInteger, Option enumQueryString, Option> enumQueryStringArray) { } /// /// Logs exceptions that occur while retrieving the server response @@ -4231,7 +4231,7 @@ private void OnErrorTestEnumParametersDefaultImplementation(Exception exceptionL /// /// /// - 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); + public virtual 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 @@ -4388,7 +4388,7 @@ public TestEnumParametersApiResponse(ILogger logg OnCreated(httpRequestMessage, httpResponseMessage); } - partial void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage); + public virtual void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage) { } /// /// Returns true if the response is 400 BadRequest @@ -4410,10 +4410,10 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } - partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); + public virtual void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode) { } } - partial void FormatTestGroupParameters(ref bool requiredBooleanGroup, ref long requiredInt64Group, ref int requiredStringGroup, ref Option booleanGroup, ref Option int64Group, ref Option stringGroup); + public virtual void FormatTestGroupParameters(ref bool requiredBooleanGroup, ref long requiredInt64Group, ref int requiredStringGroup, ref Option booleanGroup, ref Option int64Group, ref Option stringGroup) { } /// /// Processes the server response @@ -4444,7 +4444,7 @@ private void AfterTestGroupParametersDefaultImplementation(ITestGroupParametersA /// /// /// - partial void AfterTestGroupParameters(ref bool suppressDefaultLog, ITestGroupParametersApiResponse apiResponseLocalVar, bool requiredBooleanGroup, long requiredInt64Group, int requiredStringGroup, Option booleanGroup, Option int64Group, Option stringGroup); + public virtual void AfterTestGroupParameters(ref bool suppressDefaultLog, ITestGroupParametersApiResponse apiResponseLocalVar, bool requiredBooleanGroup, long requiredInt64Group, int requiredStringGroup, Option booleanGroup, Option int64Group, Option stringGroup) { } /// /// Logs exceptions that occur while retrieving the server response @@ -4479,7 +4479,7 @@ private void OnErrorTestGroupParametersDefaultImplementation(Exception exception /// /// /// - partial void OnErrorTestGroupParameters(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, bool requiredBooleanGroup, long requiredInt64Group, int requiredStringGroup, Option booleanGroup, Option int64Group, Option stringGroup); + public virtual 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) @@ -4615,7 +4615,7 @@ public TestGroupParametersApiResponse(ILogger lo OnCreated(httpRequestMessage, httpResponseMessage); } - partial void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage); + public virtual void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage) { } /// /// Returns true if the response is 400 BadRequest @@ -4631,10 +4631,10 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } - partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); + public virtual void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode) { } } - partial void FormatTestInlineAdditionalProperties(Dictionary requestBody); + public virtual void FormatTestInlineAdditionalProperties(Dictionary requestBody) { } /// /// Validates the request parameters @@ -4666,7 +4666,7 @@ private void AfterTestInlineAdditionalPropertiesDefaultImplementation(ITestInlin /// /// /// - partial void AfterTestInlineAdditionalProperties(ref bool suppressDefaultLog, ITestInlineAdditionalPropertiesApiResponse apiResponseLocalVar, Dictionary requestBody); + public virtual void AfterTestInlineAdditionalProperties(ref bool suppressDefaultLog, ITestInlineAdditionalPropertiesApiResponse apiResponseLocalVar, Dictionary requestBody) { } /// /// Logs exceptions that occur while retrieving the server response @@ -4691,7 +4691,7 @@ private void OnErrorTestInlineAdditionalPropertiesDefaultImplementation(Exceptio /// /// /// - partial void OnErrorTestInlineAdditionalProperties(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, Dictionary requestBody); + public virtual void OnErrorTestInlineAdditionalProperties(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, Dictionary requestBody) { } /// /// test inline additionalProperties @@ -4804,7 +4804,7 @@ public TestInlineAdditionalPropertiesApiResponse(ILogger /// Returns true if the response is 200 Ok @@ -4820,10 +4820,10 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } - partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); + public virtual void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode) { } } - partial void FormatTestInlineFreeformAdditionalProperties(TestInlineFreeformAdditionalPropertiesRequest testInlineFreeformAdditionalPropertiesRequest); + public virtual void FormatTestInlineFreeformAdditionalProperties(TestInlineFreeformAdditionalPropertiesRequest testInlineFreeformAdditionalPropertiesRequest) { } /// /// Validates the request parameters @@ -4855,7 +4855,7 @@ private void AfterTestInlineFreeformAdditionalPropertiesDefaultImplementation(IT /// /// /// - partial void AfterTestInlineFreeformAdditionalProperties(ref bool suppressDefaultLog, ITestInlineFreeformAdditionalPropertiesApiResponse apiResponseLocalVar, TestInlineFreeformAdditionalPropertiesRequest testInlineFreeformAdditionalPropertiesRequest); + public virtual void AfterTestInlineFreeformAdditionalProperties(ref bool suppressDefaultLog, ITestInlineFreeformAdditionalPropertiesApiResponse apiResponseLocalVar, TestInlineFreeformAdditionalPropertiesRequest testInlineFreeformAdditionalPropertiesRequest) { } /// /// Logs exceptions that occur while retrieving the server response @@ -4880,7 +4880,7 @@ private void OnErrorTestInlineFreeformAdditionalPropertiesDefaultImplementation( /// /// /// - partial void OnErrorTestInlineFreeformAdditionalProperties(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, TestInlineFreeformAdditionalPropertiesRequest testInlineFreeformAdditionalPropertiesRequest); + public virtual void OnErrorTestInlineFreeformAdditionalProperties(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, TestInlineFreeformAdditionalPropertiesRequest testInlineFreeformAdditionalPropertiesRequest) { } /// /// test inline free-form additionalProperties @@ -4993,7 +4993,7 @@ public TestInlineFreeformAdditionalPropertiesApiResponse(ILogger /// Returns true if the response is 200 Ok @@ -5009,10 +5009,10 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } - partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); + public virtual void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode) { } } - partial void FormatTestJsonFormData(ref string param, ref string param2); + public virtual void FormatTestJsonFormData(ref string param, ref string param2) { } /// /// Validates the request parameters @@ -5050,7 +5050,7 @@ private void AfterTestJsonFormDataDefaultImplementation(ITestJsonFormDataApiResp /// /// /// - partial void AfterTestJsonFormData(ref bool suppressDefaultLog, ITestJsonFormDataApiResponse apiResponseLocalVar, string param, string param2); + public virtual void AfterTestJsonFormData(ref bool suppressDefaultLog, ITestJsonFormDataApiResponse apiResponseLocalVar, string param, string param2) { } /// /// Logs exceptions that occur while retrieving the server response @@ -5077,7 +5077,7 @@ private void OnErrorTestJsonFormDataDefaultImplementation(Exception exceptionLoc /// /// /// - partial void OnErrorTestJsonFormData(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, string param, string param2); + public virtual void OnErrorTestJsonFormData(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, string param, string param2) { } /// /// test json serialization of form data @@ -5200,7 +5200,7 @@ public TestJsonFormDataApiResponse(ILogger logger, OnCreated(httpRequestMessage, httpResponseMessage); } - partial void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage); + public virtual void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage) { } /// /// Returns true if the response is 200 Ok @@ -5216,10 +5216,10 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } - partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); + public virtual void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode) { } } - partial void FormatTestQueryParameterCollectionFormat(List context, List http, List ioutil, List pipe, ref string requiredNotNullable, List url, ref Option notRequiredNotNullable, ref Option notRequiredNullable, ref string requiredNullable); + public virtual void FormatTestQueryParameterCollectionFormat(List context, List http, List ioutil, List pipe, ref string requiredNotNullable, List url, ref Option notRequiredNotNullable, ref Option notRequiredNullable, ref string requiredNullable) { } /// /// Validates the request parameters @@ -5291,7 +5291,7 @@ private void AfterTestQueryParameterCollectionFormatDefaultImplementation(ITestQ /// /// /// - partial void AfterTestQueryParameterCollectionFormat(ref bool suppressDefaultLog, ITestQueryParameterCollectionFormatApiResponse apiResponseLocalVar, List context, List http, List ioutil, List pipe, string requiredNotNullable, List url, Option notRequiredNotNullable, Option notRequiredNullable, string requiredNullable); + public virtual void AfterTestQueryParameterCollectionFormat(ref bool suppressDefaultLog, ITestQueryParameterCollectionFormatApiResponse apiResponseLocalVar, List context, List http, List ioutil, List pipe, string requiredNotNullable, List url, Option notRequiredNotNullable, Option notRequiredNullable, string requiredNullable) { } /// /// Logs exceptions that occur while retrieving the server response @@ -5332,7 +5332,7 @@ private void OnErrorTestQueryParameterCollectionFormatDefaultImplementation(Exce /// /// /// - 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); + public virtual 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 @@ -5465,7 +5465,7 @@ public TestQueryParameterCollectionFormatApiResponse(ILogger /// Returns true if the response is 200 Ok @@ -5481,10 +5481,10 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } - partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); + public virtual void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode) { } } - partial void FormatTestStringMapReference(Dictionary requestBody); + public virtual void FormatTestStringMapReference(Dictionary requestBody) { } /// /// Validates the request parameters @@ -5516,7 +5516,7 @@ private void AfterTestStringMapReferenceDefaultImplementation(ITestStringMapRefe /// /// /// - partial void AfterTestStringMapReference(ref bool suppressDefaultLog, ITestStringMapReferenceApiResponse apiResponseLocalVar, Dictionary requestBody); + public virtual void AfterTestStringMapReference(ref bool suppressDefaultLog, ITestStringMapReferenceApiResponse apiResponseLocalVar, Dictionary requestBody) { } /// /// Logs exceptions that occur while retrieving the server response @@ -5541,7 +5541,7 @@ private void OnErrorTestStringMapReferenceDefaultImplementation(Exception except /// /// /// - partial void OnErrorTestStringMapReference(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, Dictionary requestBody); + public virtual void OnErrorTestStringMapReference(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, Dictionary requestBody) { } /// /// test referenced string map @@ -5654,7 +5654,7 @@ public TestStringMapReferenceApiResponse(ILogger /// Returns true if the response is 200 Ok @@ -5670,7 +5670,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } - partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); + public virtual void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode) { } } } } 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 6417fde05b99..916aec441bc0 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 @@ -169,7 +169,7 @@ public FakeClassnameTags123Api(ILogger logger, ILoggerF OauthTokenProvider = oauthTokenProvider; } - partial void FormatTestClassname(ModelClient modelClient); + public virtual void FormatTestClassname(ModelClient modelClient) { } /// /// Validates the request parameters @@ -201,7 +201,7 @@ private void AfterTestClassnameDefaultImplementation(ITestClassnameApiResponse a /// /// /// - partial void AfterTestClassname(ref bool suppressDefaultLog, ITestClassnameApiResponse apiResponseLocalVar, ModelClient modelClient); + public virtual void AfterTestClassname(ref bool suppressDefaultLog, ITestClassnameApiResponse apiResponseLocalVar, ModelClient modelClient) { } /// /// Logs exceptions that occur while retrieving the server response @@ -226,7 +226,7 @@ private void OnErrorTestClassnameDefaultImplementation(Exception exceptionLocalV /// /// /// - partial void OnErrorTestClassname(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, ModelClient modelClient); + public virtual 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 @@ -360,7 +360,7 @@ public TestClassnameApiResponse(ILogger logger, System OnCreated(httpRequestMessage, httpResponseMessage); } - partial void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage); + public virtual void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage) { } /// /// Returns true if the response is 200 Ok @@ -408,7 +408,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } - partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); + public virtual void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode) { } } } } 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 db54750a432f..b523f41c74c8 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 @@ -673,7 +673,7 @@ public PetApi(ILogger logger, ILoggerFactory loggerFactory, HttpClient h OauthTokenProvider = oauthTokenProvider; } - partial void FormatAddPet(Pet pet); + public virtual void FormatAddPet(Pet pet) { } /// /// Validates the request parameters @@ -705,7 +705,7 @@ private void AfterAddPetDefaultImplementation(IAddPetApiResponse apiResponseLoca /// /// /// - partial void AfterAddPet(ref bool suppressDefaultLog, IAddPetApiResponse apiResponseLocalVar, Pet pet); + public virtual void AfterAddPet(ref bool suppressDefaultLog, IAddPetApiResponse apiResponseLocalVar, Pet pet) { } /// /// Logs exceptions that occur while retrieving the server response @@ -730,7 +730,7 @@ private void OnErrorAddPetDefaultImplementation(Exception exceptionLocalVar, str /// /// /// - partial void OnErrorAddPet(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, Pet pet); + public virtual void OnErrorAddPet(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, Pet pet) { } /// /// Add a new pet to the store @@ -865,7 +865,7 @@ public AddPetApiResponse(ILogger logger, System.Net.Http.Http OnCreated(httpRequestMessage, httpResponseMessage); } - partial void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage); + public virtual void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage) { } /// /// Returns true if the response is 405 MethodNotAllowed @@ -881,10 +881,10 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } - partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); + public virtual void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode) { } } - partial void FormatDeletePet(ref long petId, ref Option apiKey); + public virtual void FormatDeletePet(ref long petId, ref Option apiKey) { } /// /// Validates the request parameters @@ -918,7 +918,7 @@ private void AfterDeletePetDefaultImplementation(IDeletePetApiResponse apiRespon /// /// /// - partial void AfterDeletePet(ref bool suppressDefaultLog, IDeletePetApiResponse apiResponseLocalVar, long petId, Option apiKey); + public virtual void AfterDeletePet(ref bool suppressDefaultLog, IDeletePetApiResponse apiResponseLocalVar, long petId, Option apiKey) { } /// /// Logs exceptions that occur while retrieving the server response @@ -945,7 +945,7 @@ private void OnErrorDeletePetDefaultImplementation(Exception exceptionLocalVar, /// /// /// - partial void OnErrorDeletePet(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, long petId, Option apiKey); + public virtual void OnErrorDeletePet(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, long petId, Option apiKey) { } /// /// Deletes a pet @@ -1061,7 +1061,7 @@ public DeletePetApiResponse(ILogger logger, System.Net.Htt OnCreated(httpRequestMessage, httpResponseMessage); } - partial void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage); + public virtual void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage) { } /// /// Returns true if the response is 400 BadRequest @@ -1077,10 +1077,10 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } - partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); + public virtual void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode) { } } - partial void FormatFindPetsByStatus(List status); + public virtual void FormatFindPetsByStatus(List status) { } /// /// Validates the request parameters @@ -1112,7 +1112,7 @@ private void AfterFindPetsByStatusDefaultImplementation(IFindPetsByStatusApiResp /// /// /// - partial void AfterFindPetsByStatus(ref bool suppressDefaultLog, IFindPetsByStatusApiResponse apiResponseLocalVar, List status); + public virtual void AfterFindPetsByStatus(ref bool suppressDefaultLog, IFindPetsByStatusApiResponse apiResponseLocalVar, List status) { } /// /// Logs exceptions that occur while retrieving the server response @@ -1137,7 +1137,7 @@ private void OnErrorFindPetsByStatusDefaultImplementation(Exception exceptionLoc /// /// /// - partial void OnErrorFindPetsByStatus(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, List status); + public virtual 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 @@ -1273,7 +1273,7 @@ public FindPetsByStatusApiResponse(ILogger logger, OnCreated(httpRequestMessage, httpResponseMessage); } - partial void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage); + public virtual void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage) { } /// /// Returns true if the response is 200 Ok @@ -1353,10 +1353,10 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } - partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); + public virtual void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode) { } } - partial void FormatFindPetsByTags(List tags); + public virtual void FormatFindPetsByTags(List tags) { } /// /// Validates the request parameters @@ -1388,7 +1388,7 @@ private void AfterFindPetsByTagsDefaultImplementation(IFindPetsByTagsApiResponse /// /// /// - partial void AfterFindPetsByTags(ref bool suppressDefaultLog, IFindPetsByTagsApiResponse apiResponseLocalVar, List tags); + public virtual void AfterFindPetsByTags(ref bool suppressDefaultLog, IFindPetsByTagsApiResponse apiResponseLocalVar, List tags) { } /// /// Logs exceptions that occur while retrieving the server response @@ -1413,7 +1413,7 @@ private void OnErrorFindPetsByTagsDefaultImplementation(Exception exceptionLocal /// /// /// - partial void OnErrorFindPetsByTags(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, List tags); + public virtual 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. @@ -1549,7 +1549,7 @@ public FindPetsByTagsApiResponse(ILogger logger, Syst OnCreated(httpRequestMessage, httpResponseMessage); } - partial void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage); + public virtual void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage) { } /// /// Returns true if the response is 200 Ok @@ -1603,10 +1603,10 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } - partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); + public virtual void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode) { } } - partial void FormatGetPetById(ref long petId); + public virtual void FormatGetPetById(ref long petId) { } /// /// Processes the server response @@ -1627,7 +1627,7 @@ private void AfterGetPetByIdDefaultImplementation(IGetPetByIdApiResponse apiResp /// /// /// - partial void AfterGetPetById(ref bool suppressDefaultLog, IGetPetByIdApiResponse apiResponseLocalVar, long petId); + public virtual void AfterGetPetById(ref bool suppressDefaultLog, IGetPetByIdApiResponse apiResponseLocalVar, long petId) { } /// /// Logs exceptions that occur while retrieving the server response @@ -1652,7 +1652,7 @@ private void OnErrorGetPetByIdDefaultImplementation(Exception exceptionLocalVar, /// /// /// - partial void OnErrorGetPetById(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, long petId); + public virtual void OnErrorGetPetById(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, long petId) { } /// /// Find pet by ID Returns a single pet @@ -1777,7 +1777,7 @@ public GetPetByIdApiResponse(ILogger logger, System.Net.H OnCreated(httpRequestMessage, httpResponseMessage); } - partial void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage); + public virtual void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage) { } /// /// Returns true if the response is 200 Ok @@ -1837,10 +1837,10 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } - partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); + public virtual void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode) { } } - partial void FormatUpdatePet(Pet pet); + public virtual void FormatUpdatePet(Pet pet) { } /// /// Validates the request parameters @@ -1872,7 +1872,7 @@ private void AfterUpdatePetDefaultImplementation(IUpdatePetApiResponse apiRespon /// /// /// - partial void AfterUpdatePet(ref bool suppressDefaultLog, IUpdatePetApiResponse apiResponseLocalVar, Pet pet); + public virtual void AfterUpdatePet(ref bool suppressDefaultLog, IUpdatePetApiResponse apiResponseLocalVar, Pet pet) { } /// /// Logs exceptions that occur while retrieving the server response @@ -1897,7 +1897,7 @@ private void OnErrorUpdatePetDefaultImplementation(Exception exceptionLocalVar, /// /// /// - partial void OnErrorUpdatePet(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, Pet pet); + public virtual void OnErrorUpdatePet(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, Pet pet) { } /// /// Update an existing pet @@ -2032,7 +2032,7 @@ public UpdatePetApiResponse(ILogger logger, System.Net.Htt OnCreated(httpRequestMessage, httpResponseMessage); } - partial void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage); + public virtual void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage) { } /// /// Returns true if the response is 400 BadRequest @@ -2060,10 +2060,10 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } - partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); + public virtual void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode) { } } - partial void FormatUpdatePetWithForm(ref long petId, ref Option name, ref Option status); + public virtual void FormatUpdatePetWithForm(ref long petId, ref Option name, ref Option status) { } /// /// Validates the request parameters @@ -2103,7 +2103,7 @@ private void AfterUpdatePetWithFormDefaultImplementation(IUpdatePetWithFormApiRe /// /// /// - partial void AfterUpdatePetWithForm(ref bool suppressDefaultLog, IUpdatePetWithFormApiResponse apiResponseLocalVar, long petId, Option name, Option status); + public virtual void AfterUpdatePetWithForm(ref bool suppressDefaultLog, IUpdatePetWithFormApiResponse apiResponseLocalVar, long petId, Option name, Option status) { } /// /// Logs exceptions that occur while retrieving the server response @@ -2132,7 +2132,7 @@ private void OnErrorUpdatePetWithFormDefaultImplementation(Exception exceptionLo /// /// /// - partial void OnErrorUpdatePetWithForm(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, long petId, Option name, Option status); + public virtual 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 @@ -2269,7 +2269,7 @@ public UpdatePetWithFormApiResponse(ILogger logger OnCreated(httpRequestMessage, httpResponseMessage); } - partial void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage); + public virtual void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage) { } /// /// Returns true if the response is 405 MethodNotAllowed @@ -2285,10 +2285,10 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } - partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); + public virtual void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode) { } } - partial void FormatUploadFile(ref long petId, ref Option additionalMetadata, ref Option file); + public virtual void FormatUploadFile(ref long petId, ref Option additionalMetadata, ref Option file) { } /// /// Validates the request parameters @@ -2328,7 +2328,7 @@ private void AfterUploadFileDefaultImplementation(IUploadFileApiResponse apiResp /// /// /// - partial void AfterUploadFile(ref bool suppressDefaultLog, IUploadFileApiResponse apiResponseLocalVar, long petId, Option additionalMetadata, Option file); + public virtual void AfterUploadFile(ref bool suppressDefaultLog, IUploadFileApiResponse apiResponseLocalVar, long petId, Option additionalMetadata, Option file) { } /// /// Logs exceptions that occur while retrieving the server response @@ -2357,7 +2357,7 @@ private void OnErrorUploadFileDefaultImplementation(Exception exceptionLocalVar, /// /// /// - partial void OnErrorUploadFile(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, long petId, Option additionalMetadata, Option file); + public virtual void OnErrorUploadFile(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, long petId, Option additionalMetadata, Option file) { } /// /// uploads an image @@ -2502,7 +2502,7 @@ public UploadFileApiResponse(ILogger logger, System.Net.H OnCreated(httpRequestMessage, httpResponseMessage); } - partial void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage); + public virtual void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage) { } /// /// Returns true if the response is 200 Ok @@ -2550,10 +2550,10 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } - partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); + public virtual void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode) { } } - partial void FormatUploadFileWithRequiredFile(ref long petId, ref System.IO.Stream requiredFile, ref Option additionalMetadata); + public virtual void FormatUploadFileWithRequiredFile(ref long petId, ref System.IO.Stream requiredFile, ref Option additionalMetadata) { } /// /// Validates the request parameters @@ -2593,7 +2593,7 @@ private void AfterUploadFileWithRequiredFileDefaultImplementation(IUploadFileWit /// /// /// - partial void AfterUploadFileWithRequiredFile(ref bool suppressDefaultLog, IUploadFileWithRequiredFileApiResponse apiResponseLocalVar, long petId, System.IO.Stream requiredFile, Option additionalMetadata); + public virtual void AfterUploadFileWithRequiredFile(ref bool suppressDefaultLog, IUploadFileWithRequiredFileApiResponse apiResponseLocalVar, long petId, System.IO.Stream requiredFile, Option additionalMetadata) { } /// /// Logs exceptions that occur while retrieving the server response @@ -2622,7 +2622,7 @@ private void OnErrorUploadFileWithRequiredFileDefaultImplementation(Exception ex /// /// /// - partial void OnErrorUploadFileWithRequiredFile(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, long petId, System.IO.Stream requiredFile, Option additionalMetadata); + public virtual void OnErrorUploadFileWithRequiredFile(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, long petId, System.IO.Stream requiredFile, Option additionalMetadata) { } /// /// uploads an image (required) @@ -2767,7 +2767,7 @@ public UploadFileWithRequiredFileApiResponse(ILogger /// Returns true if the response is 200 Ok @@ -2815,7 +2815,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } - partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); + public virtual void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode) { } } } } 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 52a7f2d56123..d3398e5e0508 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 @@ -356,7 +356,7 @@ public StoreApi(ILogger logger, ILoggerFactory loggerFactory, HttpClie OauthTokenProvider = oauthTokenProvider; } - partial void FormatDeleteOrder(ref string orderId); + public virtual void FormatDeleteOrder(ref string orderId) { } /// /// Validates the request parameters @@ -388,7 +388,7 @@ private void AfterDeleteOrderDefaultImplementation(IDeleteOrderApiResponse apiRe /// /// /// - partial void AfterDeleteOrder(ref bool suppressDefaultLog, IDeleteOrderApiResponse apiResponseLocalVar, string orderId); + public virtual void AfterDeleteOrder(ref bool suppressDefaultLog, IDeleteOrderApiResponse apiResponseLocalVar, string orderId) { } /// /// Logs exceptions that occur while retrieving the server response @@ -413,7 +413,7 @@ private void OnErrorDeleteOrderDefaultImplementation(Exception exceptionLocalVar /// /// /// - partial void OnErrorDeleteOrder(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, string orderId); + public virtual 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 @@ -513,7 +513,7 @@ public DeleteOrderApiResponse(ILogger logger, System.Net OnCreated(httpRequestMessage, httpResponseMessage); } - partial void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage); + public virtual void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage) { } /// /// Returns true if the response is 400 BadRequest @@ -535,7 +535,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } - partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); + public virtual void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode) { } } /// @@ -555,7 +555,7 @@ private void AfterGetInventoryDefaultImplementation(IGetInventoryApiResponse api /// /// /// - partial void AfterGetInventory(ref bool suppressDefaultLog, IGetInventoryApiResponse apiResponseLocalVar); + public virtual void AfterGetInventory(ref bool suppressDefaultLog, IGetInventoryApiResponse apiResponseLocalVar) { } /// /// Logs exceptions that occur while retrieving the server response @@ -578,7 +578,7 @@ private void OnErrorGetInventoryDefaultImplementation(Exception exceptionLocalVa /// /// /// - partial void OnErrorGetInventory(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar); + public virtual void OnErrorGetInventory(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar) { } /// /// Returns pet inventories by status Returns a map of status codes to quantities @@ -689,7 +689,7 @@ public GetInventoryApiResponse(ILogger logger, System.N OnCreated(httpRequestMessage, httpResponseMessage); } - partial void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage); + public virtual void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage) { } /// /// Returns true if the response is 200 Ok @@ -737,10 +737,10 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } - partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); + public virtual void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode) { } } - partial void FormatGetOrderById(ref long orderId); + public virtual void FormatGetOrderById(ref long orderId) { } /// /// Processes the server response @@ -761,7 +761,7 @@ private void AfterGetOrderByIdDefaultImplementation(IGetOrderByIdApiResponse api /// /// /// - partial void AfterGetOrderById(ref bool suppressDefaultLog, IGetOrderByIdApiResponse apiResponseLocalVar, long orderId); + public virtual void AfterGetOrderById(ref bool suppressDefaultLog, IGetOrderByIdApiResponse apiResponseLocalVar, long orderId) { } /// /// Logs exceptions that occur while retrieving the server response @@ -786,7 +786,7 @@ private void OnErrorGetOrderByIdDefaultImplementation(Exception exceptionLocalVa /// /// /// - partial void OnErrorGetOrderById(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, long orderId); + public virtual 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 @@ -894,7 +894,7 @@ public GetOrderByIdApiResponse(ILogger logger, System.N OnCreated(httpRequestMessage, httpResponseMessage); } - partial void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage); + public virtual void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage) { } /// /// Returns true if the response is 200 Ok @@ -954,10 +954,10 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } - partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); + public virtual void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode) { } } - partial void FormatPlaceOrder(Order order); + public virtual void FormatPlaceOrder(Order order) { } /// /// Validates the request parameters @@ -989,7 +989,7 @@ private void AfterPlaceOrderDefaultImplementation(IPlaceOrderApiResponse apiResp /// /// /// - partial void AfterPlaceOrder(ref bool suppressDefaultLog, IPlaceOrderApiResponse apiResponseLocalVar, Order order); + public virtual void AfterPlaceOrder(ref bool suppressDefaultLog, IPlaceOrderApiResponse apiResponseLocalVar, Order order) { } /// /// Logs exceptions that occur while retrieving the server response @@ -1014,7 +1014,7 @@ private void OnErrorPlaceOrderDefaultImplementation(Exception exceptionLocalVar, /// /// /// - partial void OnErrorPlaceOrder(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, Order order); + public virtual void OnErrorPlaceOrder(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, Order order) { } /// /// Place an order for a pet @@ -1136,7 +1136,7 @@ public PlaceOrderApiResponse(ILogger logger, System.Net.H OnCreated(httpRequestMessage, httpResponseMessage); } - partial void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage); + public virtual void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage) { } /// /// Returns true if the response is 200 Ok @@ -1190,7 +1190,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } - partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); + public virtual void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode) { } } } } 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 d29929bbd0fd..d57062359be8 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 @@ -598,7 +598,7 @@ public UserApi(ILogger logger, ILoggerFactory loggerFactory, HttpClient OauthTokenProvider = oauthTokenProvider; } - partial void FormatCreateUser(User user); + public virtual void FormatCreateUser(User user) { } /// /// Validates the request parameters @@ -630,7 +630,7 @@ private void AfterCreateUserDefaultImplementation(ICreateUserApiResponse apiResp /// /// /// - partial void AfterCreateUser(ref bool suppressDefaultLog, ICreateUserApiResponse apiResponseLocalVar, User user); + public virtual void AfterCreateUser(ref bool suppressDefaultLog, ICreateUserApiResponse apiResponseLocalVar, User user) { } /// /// Logs exceptions that occur while retrieving the server response @@ -655,7 +655,7 @@ private void OnErrorCreateUserDefaultImplementation(Exception exceptionLocalVar, /// /// /// - partial void OnErrorCreateUser(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, User user); + public virtual 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. @@ -768,7 +768,7 @@ public CreateUserApiResponse(ILogger logger, System.Net.H OnCreated(httpRequestMessage, httpResponseMessage); } - partial void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage); + public virtual void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage) { } /// /// Returns true if the response is the default response type @@ -784,10 +784,10 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } - partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); + public virtual void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode) { } } - partial void FormatCreateUsersWithArrayInput(List user); + public virtual void FormatCreateUsersWithArrayInput(List user) { } /// /// Validates the request parameters @@ -819,7 +819,7 @@ private void AfterCreateUsersWithArrayInputDefaultImplementation(ICreateUsersWit /// /// /// - partial void AfterCreateUsersWithArrayInput(ref bool suppressDefaultLog, ICreateUsersWithArrayInputApiResponse apiResponseLocalVar, List user); + public virtual void AfterCreateUsersWithArrayInput(ref bool suppressDefaultLog, ICreateUsersWithArrayInputApiResponse apiResponseLocalVar, List user) { } /// /// Logs exceptions that occur while retrieving the server response @@ -844,7 +844,7 @@ private void OnErrorCreateUsersWithArrayInputDefaultImplementation(Exception exc /// /// /// - partial void OnErrorCreateUsersWithArrayInput(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, List user); + public virtual void OnErrorCreateUsersWithArrayInput(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, List user) { } /// /// Creates list of users with given input array @@ -957,7 +957,7 @@ public CreateUsersWithArrayInputApiResponse(ILogger /// Returns true if the response is the default response type @@ -973,10 +973,10 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } - partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); + public virtual void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode) { } } - partial void FormatCreateUsersWithListInput(List user); + public virtual void FormatCreateUsersWithListInput(List user) { } /// /// Validates the request parameters @@ -1008,7 +1008,7 @@ private void AfterCreateUsersWithListInputDefaultImplementation(ICreateUsersWith /// /// /// - partial void AfterCreateUsersWithListInput(ref bool suppressDefaultLog, ICreateUsersWithListInputApiResponse apiResponseLocalVar, List user); + public virtual void AfterCreateUsersWithListInput(ref bool suppressDefaultLog, ICreateUsersWithListInputApiResponse apiResponseLocalVar, List user) { } /// /// Logs exceptions that occur while retrieving the server response @@ -1033,7 +1033,7 @@ private void OnErrorCreateUsersWithListInputDefaultImplementation(Exception exce /// /// /// - partial void OnErrorCreateUsersWithListInput(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, List user); + public virtual void OnErrorCreateUsersWithListInput(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, List user) { } /// /// Creates list of users with given input array @@ -1146,7 +1146,7 @@ public CreateUsersWithListInputApiResponse(ILogger /// Returns true if the response is the default response type @@ -1162,10 +1162,10 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } - partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); + public virtual void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode) { } } - partial void FormatDeleteUser(ref string username); + public virtual void FormatDeleteUser(ref string username) { } /// /// Validates the request parameters @@ -1197,7 +1197,7 @@ private void AfterDeleteUserDefaultImplementation(IDeleteUserApiResponse apiResp /// /// /// - partial void AfterDeleteUser(ref bool suppressDefaultLog, IDeleteUserApiResponse apiResponseLocalVar, string username); + public virtual void AfterDeleteUser(ref bool suppressDefaultLog, IDeleteUserApiResponse apiResponseLocalVar, string username) { } /// /// Logs exceptions that occur while retrieving the server response @@ -1222,7 +1222,7 @@ private void OnErrorDeleteUserDefaultImplementation(Exception exceptionLocalVar, /// /// /// - partial void OnErrorDeleteUser(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, string username); + public virtual 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. @@ -1322,7 +1322,7 @@ public DeleteUserApiResponse(ILogger logger, System.Net.H OnCreated(httpRequestMessage, httpResponseMessage); } - partial void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage); + public virtual void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage) { } /// /// Returns true if the response is 400 BadRequest @@ -1344,10 +1344,10 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } - partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); + public virtual void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode) { } } - partial void FormatGetUserByName(ref string username); + public virtual void FormatGetUserByName(ref string username) { } /// /// Validates the request parameters @@ -1379,7 +1379,7 @@ private void AfterGetUserByNameDefaultImplementation(IGetUserByNameApiResponse a /// /// /// - partial void AfterGetUserByName(ref bool suppressDefaultLog, IGetUserByNameApiResponse apiResponseLocalVar, string username); + public virtual void AfterGetUserByName(ref bool suppressDefaultLog, IGetUserByNameApiResponse apiResponseLocalVar, string username) { } /// /// Logs exceptions that occur while retrieving the server response @@ -1404,7 +1404,7 @@ private void OnErrorGetUserByNameDefaultImplementation(Exception exceptionLocalV /// /// /// - partial void OnErrorGetUserByName(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, string username); + public virtual void OnErrorGetUserByName(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, string username) { } /// /// Get user by user name @@ -1514,7 +1514,7 @@ public GetUserByNameApiResponse(ILogger logger, System OnCreated(httpRequestMessage, httpResponseMessage); } - partial void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage); + public virtual void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage) { } /// /// Returns true if the response is 200 Ok @@ -1618,10 +1618,10 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } - partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); + public virtual void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode) { } } - partial void FormatLoginUser(ref string password, ref string username); + public virtual void FormatLoginUser(ref string password, ref string username) { } /// /// Validates the request parameters @@ -1659,7 +1659,7 @@ private void AfterLoginUserDefaultImplementation(ILoginUserApiResponse apiRespon /// /// /// - partial void AfterLoginUser(ref bool suppressDefaultLog, ILoginUserApiResponse apiResponseLocalVar, string password, string username); + public virtual void AfterLoginUser(ref bool suppressDefaultLog, ILoginUserApiResponse apiResponseLocalVar, string password, string username) { } /// /// Logs exceptions that occur while retrieving the server response @@ -1686,7 +1686,7 @@ private void OnErrorLoginUserDefaultImplementation(Exception exceptionLocalVar, /// /// /// - partial void OnErrorLoginUser(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, string password, string username); + public virtual void OnErrorLoginUser(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, string password, string username) { } /// /// Logs user into the system @@ -1804,7 +1804,7 @@ public LoginUserApiResponse(ILogger logger, System.Net.Htt OnCreated(httpRequestMessage, httpResponseMessage); } - partial void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage); + public virtual void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage) { } /// /// Returns true if the response is 200 Ok @@ -1858,7 +1858,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } - partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); + public virtual void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode) { } } /// @@ -1878,7 +1878,7 @@ private void AfterLogoutUserDefaultImplementation(ILogoutUserApiResponse apiResp /// /// /// - partial void AfterLogoutUser(ref bool suppressDefaultLog, ILogoutUserApiResponse apiResponseLocalVar); + public virtual void AfterLogoutUser(ref bool suppressDefaultLog, ILogoutUserApiResponse apiResponseLocalVar) { } /// /// Logs exceptions that occur while retrieving the server response @@ -1901,7 +1901,7 @@ private void OnErrorLogoutUserDefaultImplementation(Exception exceptionLocalVar, /// /// /// - partial void OnErrorLogoutUser(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar); + public virtual void OnErrorLogoutUser(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar) { } /// /// Logs out current logged in user session @@ -1994,7 +1994,7 @@ public LogoutUserApiResponse(ILogger logger, System.Net.H OnCreated(httpRequestMessage, httpResponseMessage); } - partial void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage); + public virtual void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage) { } /// /// Returns true if the response is the default response type @@ -2010,10 +2010,10 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } - partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); + public virtual void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode) { } } - partial void FormatUpdateUser(User user, ref string username); + public virtual void FormatUpdateUser(User user, ref string username) { } /// /// Validates the request parameters @@ -2051,7 +2051,7 @@ private void AfterUpdateUserDefaultImplementation(IUpdateUserApiResponse apiResp /// /// /// - partial void AfterUpdateUser(ref bool suppressDefaultLog, IUpdateUserApiResponse apiResponseLocalVar, User user, string username); + public virtual void AfterUpdateUser(ref bool suppressDefaultLog, IUpdateUserApiResponse apiResponseLocalVar, User user, string username) { } /// /// Logs exceptions that occur while retrieving the server response @@ -2078,7 +2078,7 @@ private void OnErrorUpdateUserDefaultImplementation(Exception exceptionLocalVar, /// /// /// - partial void OnErrorUpdateUser(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, User user, string username); + public virtual 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. @@ -2194,7 +2194,7 @@ public UpdateUserApiResponse(ILogger logger, System.Net.H OnCreated(httpRequestMessage, httpResponseMessage); } - partial void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage); + public virtual void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage) { } /// /// Returns true if the response is 400 BadRequest @@ -2216,7 +2216,7 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht Logger.LogError(exception, "An error occurred while deserializing the {code} response.", httpStatusCode); } - partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); + public virtual void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode) { } } } } diff --git a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Client/ApiResponse`1.cs b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Client/ApiResponse`1.cs index 1a0d0a718382..69a06200c80b 100644 --- a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Client/ApiResponse`1.cs +++ b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Client/ApiResponse`1.cs @@ -144,7 +144,7 @@ public ApiResponse(global::System.Net.Http.HttpRequestMessage httpRequestMessage OnCreated(httpRequestMessage, httpResponseMessage); } - partial void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage); + public virtual void OnCreated(global::System.Net.Http.HttpRequestMessage httpRequestMessage, System.Net.Http.HttpResponseMessage httpResponseMessage) { } } /// diff --git a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/Activity.cs b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/Activity.cs index a5e4bd35e9bc..7c5af7896600 100644 --- a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/Activity.cs +++ b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/Activity.cs @@ -40,7 +40,7 @@ public Activity(Option /// Used to track the state of ActivityOutputs diff --git a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/ActivityOutputElementRepresentation.cs b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/ActivityOutputElementRepresentation.cs index d7b4374e6a7b..3f53511fff0c 100644 --- a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/ActivityOutputElementRepresentation.cs +++ b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/ActivityOutputElementRepresentation.cs @@ -42,7 +42,7 @@ public ActivityOutputElementRepresentation(Option prop1 = default, Optio OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Used to track the state of Prop1 diff --git a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/AdditionalPropertiesClass.cs b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/AdditionalPropertiesClass.cs index ec17222fbc8f..f1db02649575 100644 --- a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/AdditionalPropertiesClass.cs +++ b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/AdditionalPropertiesClass.cs @@ -54,7 +54,7 @@ public AdditionalPropertiesClass(Option anytype1 = default, Option /// Used to track the state of Anytype1 diff --git a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/Animal.cs b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/Animal.cs index 74cb14f52d91..fb7179ed5b86 100644 --- a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/Animal.cs +++ b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/Animal.cs @@ -40,7 +40,7 @@ public Animal(Option color = default) OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// The discriminator diff --git a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/ApiResponse.cs b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/ApiResponse.cs index 77ec0bd5ed2d..6d2870b461f3 100644 --- a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/ApiResponse.cs +++ b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/ApiResponse.cs @@ -44,7 +44,7 @@ public ApiResponse(Option code = default, Option message = default OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Used to track the state of Code diff --git a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/Apple.cs b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/Apple.cs index df3bc9af06cc..d021ad2d4958 100644 --- a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/Apple.cs +++ b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/Apple.cs @@ -44,7 +44,7 @@ public Apple(Option colorCode = default, Option cultivar = defau OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Used to track the state of ColorCode diff --git a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/AppleReq.cs b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/AppleReq.cs index 1cc72ecd59d3..73f39589fe21 100644 --- a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/AppleReq.cs +++ b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/AppleReq.cs @@ -42,7 +42,7 @@ public AppleReq(string cultivar, Option mealy = default) OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Gets or Sets Cultivar diff --git a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/ArrayOfArrayOfNumberOnly.cs b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/ArrayOfArrayOfNumberOnly.cs index d2398a452eee..697f6c964a19 100644 --- a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/ArrayOfArrayOfNumberOnly.cs +++ b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/ArrayOfArrayOfNumberOnly.cs @@ -40,7 +40,7 @@ public ArrayOfArrayOfNumberOnly(Option>> arrayArrayNumber = d OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Used to track the state of ArrayArrayNumber diff --git a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/ArrayOfNumberOnly.cs b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/ArrayOfNumberOnly.cs index cce8d5d564b6..b1bba9d4e9b1 100644 --- a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/ArrayOfNumberOnly.cs +++ b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/ArrayOfNumberOnly.cs @@ -40,7 +40,7 @@ public ArrayOfNumberOnly(Option> arrayNumber = default) OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Used to track the state of ArrayNumber diff --git a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/ArrayTest.cs b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/ArrayTest.cs index 3fbc72e2f5ab..4200504840ed 100644 --- a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/ArrayTest.cs +++ b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/ArrayTest.cs @@ -44,7 +44,7 @@ public ArrayTest(Option>> arrayArrayOfInteger = default, Option< OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Used to track the state of ArrayArrayOfInteger diff --git a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/Banana.cs b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/Banana.cs index d92ba4ae6aef..cdd4c9cc4ce4 100644 --- a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/Banana.cs +++ b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/Banana.cs @@ -40,7 +40,7 @@ public Banana(Option lengthCm = default) OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Used to track the state of LengthCm diff --git a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/BananaReq.cs b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/BananaReq.cs index c9734cbe3808..371a8d61c67b 100644 --- a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/BananaReq.cs +++ b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/BananaReq.cs @@ -42,7 +42,7 @@ public BananaReq(decimal lengthCm, Option sweet = default) OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Gets or Sets LengthCm diff --git a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/BasquePig.cs b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/BasquePig.cs index 9938d89e008d..3bb04d8e04e1 100644 --- a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/BasquePig.cs +++ b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/BasquePig.cs @@ -40,7 +40,7 @@ public BasquePig(string className) OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Gets or Sets ClassName diff --git a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/Capitalization.cs b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/Capitalization.cs index a1fb0b3eb574..c9d0f8a45227 100644 --- a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/Capitalization.cs +++ b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/Capitalization.cs @@ -50,7 +50,7 @@ public Capitalization(Option aTTNAME = default, Option capitalCa OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Used to track the state of ATT_NAME diff --git a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/Cat.cs b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/Cat.cs index 0ffe1228015d..4b85228b4b74 100644 --- a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/Cat.cs +++ b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/Cat.cs @@ -41,7 +41,7 @@ public Cat(Option color = default, Option declawed = default) : b OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// The discriminator diff --git a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/Category.cs b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/Category.cs index f483d87f36c8..a0dfa1015567 100644 --- a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/Category.cs +++ b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/Category.cs @@ -42,7 +42,7 @@ public Category(Option id = default, string name = @"default-name") OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Used to track the state of Id diff --git a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/ChildCat.cs b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/ChildCat.cs index 2eb5dd8dc35a..c495b86f5c99 100644 --- a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/ChildCat.cs +++ b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/ChildCat.cs @@ -40,7 +40,7 @@ public ChildCat(Option name = default) : base() OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Defines PetType diff --git a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/ClassModel.cs b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/ClassModel.cs index 7c49d7adb55c..e181a808250b 100644 --- a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/ClassModel.cs +++ b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/ClassModel.cs @@ -40,7 +40,7 @@ public ClassModel(Option @class = default) OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Used to track the state of Class diff --git a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/ComplexQuadrilateral.cs b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/ComplexQuadrilateral.cs index 3023a45610e4..9ed7d63b7732 100644 --- a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/ComplexQuadrilateral.cs +++ b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/ComplexQuadrilateral.cs @@ -42,7 +42,7 @@ public ComplexQuadrilateral(string quadrilateralType, string shapeType) OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Gets or Sets QuadrilateralType diff --git a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/DanishPig.cs b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/DanishPig.cs index 14b2ed3b153f..8377e0f76cf5 100644 --- a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/DanishPig.cs +++ b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/DanishPig.cs @@ -40,7 +40,7 @@ public DanishPig(string className) OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Gets or Sets ClassName diff --git a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/DateOnlyClass.cs b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/DateOnlyClass.cs index 1c478cf336df..d67efe6868d1 100644 --- a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/DateOnlyClass.cs +++ b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/DateOnlyClass.cs @@ -40,7 +40,7 @@ public DateOnlyClass(Option dateOnlyProperty = default) OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Used to track the state of DateOnlyProperty diff --git a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/DeprecatedObject.cs b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/DeprecatedObject.cs index 08067c5cc07c..3e5a4c2ed04c 100644 --- a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/DeprecatedObject.cs +++ b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/DeprecatedObject.cs @@ -40,7 +40,7 @@ public DeprecatedObject(Option name = default) OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Used to track the state of Name diff --git a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/Dog.cs b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/Dog.cs index 605dc512434b..f6cb7298cf5f 100644 --- a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/Dog.cs +++ b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/Dog.cs @@ -41,7 +41,7 @@ public Dog(Option breed = default, Option color = default) : bas OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// The discriminator diff --git a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/Drawing.cs b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/Drawing.cs index a853b96144e2..a37514a314cc 100644 --- a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/Drawing.cs +++ b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/Drawing.cs @@ -46,7 +46,7 @@ public Drawing(Option mainShape = default, Option nullable OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Used to track the state of MainShape diff --git a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/EnumArrays.cs b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/EnumArrays.cs index b6716a58e539..7fb174dac22f 100644 --- a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/EnumArrays.cs +++ b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/EnumArrays.cs @@ -42,7 +42,7 @@ public EnumArrays(Option> arrayEnum = default, Op OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Defines ArrayEnum diff --git a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/EnumTest.cs b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/EnumTest.cs index 08e961298725..33ddf1643207 100644 --- a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/EnumTest.cs +++ b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/EnumTest.cs @@ -56,7 +56,7 @@ public EnumTest(EnumStringRequiredEnum enumStringRequired, Option /// Defines EnumStringRequired diff --git a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/EquilateralTriangle.cs b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/EquilateralTriangle.cs index d65c7740e5e8..e68cf480a05f 100644 --- a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/EquilateralTriangle.cs +++ b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/EquilateralTriangle.cs @@ -42,7 +42,7 @@ public EquilateralTriangle(string shapeType, string triangleType) OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Gets or Sets ShapeType diff --git a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/File.cs b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/File.cs index 092f10c09324..0519a20c9bfc 100644 --- a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/File.cs +++ b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/File.cs @@ -40,7 +40,7 @@ public File(Option sourceURI = default) OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Used to track the state of SourceURI diff --git a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/FileSchemaTestClass.cs b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/FileSchemaTestClass.cs index f9d9d9f7a7b8..1924423c7bc7 100644 --- a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/FileSchemaTestClass.cs +++ b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/FileSchemaTestClass.cs @@ -42,7 +42,7 @@ public FileSchemaTestClass(Option file = default, Option> files OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Used to track the state of File diff --git a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/Foo.cs b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/Foo.cs index 3eeca0aa2112..d3fb68454516 100644 --- a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/Foo.cs +++ b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/Foo.cs @@ -40,7 +40,7 @@ public Foo(Option bar = default) OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Used to track the state of Bar diff --git a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/FooGetDefaultResponse.cs b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/FooGetDefaultResponse.cs index c7d043666115..97979c9952d9 100644 --- a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/FooGetDefaultResponse.cs +++ b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/FooGetDefaultResponse.cs @@ -40,7 +40,7 @@ public FooGetDefaultResponse(Option @string = default) OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Used to track the state of String diff --git a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/FormatTest.cs b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/FormatTest.cs index 86d63c7ac5f6..460ee09eae25 100644 --- a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/FormatTest.cs +++ b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/FormatTest.cs @@ -86,7 +86,7 @@ public FormatTest(byte[] @byte, DateTime date, decimal number, string password, OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Gets or Sets Byte diff --git a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/Fruit.cs b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/Fruit.cs index cc8b4530f01c..39f5367f7a2b 100644 --- a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/Fruit.cs +++ b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/Fruit.cs @@ -53,7 +53,7 @@ public Fruit(Banana banana, Option color = default) OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Gets or Sets Apple diff --git a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/FruitReq.cs b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/FruitReq.cs index 1e72875d4d32..fad135111099 100644 --- a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/FruitReq.cs +++ b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/FruitReq.cs @@ -49,7 +49,7 @@ public FruitReq(BananaReq bananaReq) OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Gets or Sets AppleReq diff --git a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/GmFruit.cs b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/GmFruit.cs index 78cb87b61a31..b093b213ea63 100644 --- a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/GmFruit.cs +++ b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/GmFruit.cs @@ -43,7 +43,7 @@ public GmFruit(Option apple, Option banana, Option color OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Used to track the state of Apple diff --git a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/GrandparentAnimal.cs b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/GrandparentAnimal.cs index b23e4826fd6b..6bbb19b1789e 100644 --- a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/GrandparentAnimal.cs +++ b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/GrandparentAnimal.cs @@ -38,7 +38,7 @@ public GrandparentAnimal() OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// The discriminator diff --git a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/HasOnlyReadOnly.cs b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/HasOnlyReadOnly.cs index a4e67f73a8e5..45947ab3cd6a 100644 --- a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/HasOnlyReadOnly.cs +++ b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/HasOnlyReadOnly.cs @@ -42,7 +42,7 @@ internal HasOnlyReadOnly(Option bar = default, Option foo = defa OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Used to track the state of Bar diff --git a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/HealthCheckResult.cs b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/HealthCheckResult.cs index 16afc025fa03..5b841e42fc13 100644 --- a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/HealthCheckResult.cs +++ b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/HealthCheckResult.cs @@ -40,7 +40,7 @@ public HealthCheckResult(Option nullableMessage = default) OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Used to track the state of NullableMessage diff --git a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/IsoscelesTriangle.cs b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/IsoscelesTriangle.cs index cce859524111..651f261659c1 100644 --- a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/IsoscelesTriangle.cs +++ b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/IsoscelesTriangle.cs @@ -42,7 +42,7 @@ public IsoscelesTriangle(string shapeType, string triangleType) OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Gets or Sets ShapeType diff --git a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/List.cs b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/List.cs index 050d58f85c23..ee5738e61a90 100644 --- a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/List.cs +++ b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/List.cs @@ -40,7 +40,7 @@ public List(Option var123List = default) OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Used to track the state of Var123List diff --git a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/LiteralStringClass.cs b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/LiteralStringClass.cs index 522ba51e6cb3..0ab4393a312a 100644 --- a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/LiteralStringClass.cs +++ b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/LiteralStringClass.cs @@ -42,7 +42,7 @@ public LiteralStringClass(Option escapedLiteralString = default, Option< OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Used to track the state of EscapedLiteralString diff --git a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/Mammal.cs b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/Mammal.cs index 267ac8769d31..d9a8cde9cd81 100644 --- a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/Mammal.cs +++ b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/Mammal.cs @@ -59,7 +59,7 @@ public Mammal(Pig pig) OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Gets or Sets Whale diff --git a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/MapTest.cs b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/MapTest.cs index 97588d56888a..c20106d3c894 100644 --- a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/MapTest.cs +++ b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/MapTest.cs @@ -46,7 +46,7 @@ public MapTest(Option> directMap = default, Option /// Defines Inner diff --git a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/MixLog.cs b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/MixLog.cs index d18711f51031..23ded06af5f3 100644 --- a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/MixLog.cs +++ b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/MixLog.cs @@ -102,7 +102,7 @@ public MixLog(string description, DateTime formulaVersionDate, Guid id, DateTime OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Gets or Sets Description diff --git a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/MixedAnyOf.cs b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/MixedAnyOf.cs index c81de3d2f67d..26da905605af 100644 --- a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/MixedAnyOf.cs +++ b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/MixedAnyOf.cs @@ -40,7 +40,7 @@ public MixedAnyOf(Option content = default) OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Used to track the state of Content diff --git a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/MixedAnyOfContent.cs b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/MixedAnyOfContent.cs index 5de026753ef2..4dc98a482ac3 100644 --- a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/MixedAnyOfContent.cs +++ b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/MixedAnyOfContent.cs @@ -47,7 +47,7 @@ public MixedAnyOfContent(Option @string, Option @bool, Option /// Used to track the state of String diff --git a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/MixedOneOf.cs b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/MixedOneOf.cs index 32515bc04405..231aee38015f 100644 --- a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/MixedOneOf.cs +++ b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/MixedOneOf.cs @@ -40,7 +40,7 @@ public MixedOneOf(Option content = default) OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Used to track the state of Content diff --git a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/MixedOneOfContent.cs b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/MixedOneOfContent.cs index 4cb69dae28cd..bd9823fdcbc1 100644 --- a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/MixedOneOfContent.cs +++ b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/MixedOneOfContent.cs @@ -79,7 +79,7 @@ public MixedOneOfContent(MixedSubId mixedSubId) OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Gets or Sets String diff --git a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/MixedPropertiesAndAdditionalPropertiesClass.cs b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/MixedPropertiesAndAdditionalPropertiesClass.cs index 3cef3330300e..11749dd1fe0f 100644 --- a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/MixedPropertiesAndAdditionalPropertiesClass.cs +++ b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/MixedPropertiesAndAdditionalPropertiesClass.cs @@ -46,7 +46,7 @@ public MixedPropertiesAndAdditionalPropertiesClass(Option dateTime = OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Used to track the state of DateTime diff --git a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/MixedSubId.cs b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/MixedSubId.cs index 34198e6f437a..82f0e9116050 100644 --- a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/MixedSubId.cs +++ b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/MixedSubId.cs @@ -40,7 +40,7 @@ public MixedSubId(Option id = default) OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Used to track the state of Id diff --git a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/Model200Response.cs b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/Model200Response.cs index bf37307ad965..33d75857f84d 100644 --- a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/Model200Response.cs +++ b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/Model200Response.cs @@ -42,7 +42,7 @@ public Model200Response(Option @class = default, Option name = def OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Used to track the state of Class diff --git a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/ModelClient.cs b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/ModelClient.cs index 5d459e8b5eb1..f84fbb6a6186 100644 --- a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/ModelClient.cs +++ b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/ModelClient.cs @@ -40,7 +40,7 @@ public ModelClient(Option varClient = default) OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Used to track the state of VarClient diff --git a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/Name.cs b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/Name.cs index b322aaf568ce..814ee7510454 100644 --- a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/Name.cs +++ b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/Name.cs @@ -46,7 +46,7 @@ public Name(int varName, Option property = default, Option snakeCa OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Gets or Sets VarName diff --git a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/NotificationtestGetElementsV1ResponseMPayload.cs b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/NotificationtestGetElementsV1ResponseMPayload.cs index ea8abdda0d78..d6c1a4bf339b 100644 --- a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/NotificationtestGetElementsV1ResponseMPayload.cs +++ b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/NotificationtestGetElementsV1ResponseMPayload.cs @@ -42,7 +42,7 @@ public NotificationtestGetElementsV1ResponseMPayload(List /// Gets or Sets AObjVariableobject diff --git a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/NullableClass.cs b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/NullableClass.cs index 42533f9c7ebf..6e2518705255 100644 --- a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/NullableClass.cs +++ b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/NullableClass.cs @@ -62,7 +62,7 @@ public NullableClass(Option> arrayAndItemsNullableProp = default, O OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Used to track the state of ArrayAndItemsNullableProp diff --git a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/NullableGuidClass.cs b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/NullableGuidClass.cs index 286d13258dce..446d782de457 100644 --- a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/NullableGuidClass.cs +++ b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/NullableGuidClass.cs @@ -40,7 +40,7 @@ public NullableGuidClass(Option uuid = default) OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Used to track the state of Uuid diff --git a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/NullableShape.cs b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/NullableShape.cs index 9a93cb734e9c..995568e86c42 100644 --- a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/NullableShape.cs +++ b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/NullableShape.cs @@ -49,7 +49,7 @@ public NullableShape(Quadrilateral quadrilateral) OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Gets or Sets Triangle diff --git a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/NumberOnly.cs b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/NumberOnly.cs index 29f5a80e6462..bb0c7a57114a 100644 --- a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/NumberOnly.cs +++ b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/NumberOnly.cs @@ -40,7 +40,7 @@ public NumberOnly(Option justNumber = default) OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Used to track the state of JustNumber diff --git a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/ObjectWithDeprecatedFields.cs b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/ObjectWithDeprecatedFields.cs index 83f513bc63bb..0fa7f080b76c 100644 --- a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/ObjectWithDeprecatedFields.cs +++ b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/ObjectWithDeprecatedFields.cs @@ -46,7 +46,7 @@ public ObjectWithDeprecatedFields(Option> bars = default, Option /// Used to track the state of Bars diff --git a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/OneOfString.cs b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/OneOfString.cs index c89963f55a36..999f3ce9a2e5 100644 --- a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/OneOfString.cs +++ b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/OneOfString.cs @@ -39,7 +39,7 @@ internal OneOfString(string @string) OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Gets or Sets String diff --git a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/Order.cs b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/Order.cs index 580ef432ecf1..d510e57328de 100644 --- a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/Order.cs +++ b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/Order.cs @@ -50,7 +50,7 @@ public Order(Option complete = default, Option id = default, Optio OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Order Status diff --git a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/OuterComposite.cs b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/OuterComposite.cs index 92ec1939d1af..5c00052aa141 100644 --- a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/OuterComposite.cs +++ b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/OuterComposite.cs @@ -44,7 +44,7 @@ public OuterComposite(Option myBoolean = default, Option myNumb OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Used to track the state of MyBoolean diff --git a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/ParentPet.cs b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/ParentPet.cs index 83104e900d01..dd6f0777ee48 100644 --- a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/ParentPet.cs +++ b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/ParentPet.cs @@ -38,7 +38,7 @@ public ParentPet() : base() OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// The discriminator diff --git a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/Pet.cs b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/Pet.cs index 81d80e33de70..f56ba1be1e2c 100644 --- a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/Pet.cs +++ b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/Pet.cs @@ -50,7 +50,7 @@ public Pet(string name, List photoUrls, Option category = defa OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// pet status in the store diff --git a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/Pig.cs b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/Pig.cs index b6f300c94400..6cbb846229e6 100644 --- a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/Pig.cs +++ b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/Pig.cs @@ -49,7 +49,7 @@ public Pig(DanishPig danishPig) OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Gets or Sets BasquePig diff --git a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/PolymorphicProperty.cs b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/PolymorphicProperty.cs index ddea47edf40c..a0fdf9fa39c7 100644 --- a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/PolymorphicProperty.cs +++ b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/PolymorphicProperty.cs @@ -69,7 +69,7 @@ internal PolymorphicProperty(List list) OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Gets or Sets Bool diff --git a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/Quadrilateral.cs b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/Quadrilateral.cs index e8a2e2439975..a95ca8f058bf 100644 --- a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/Quadrilateral.cs +++ b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/Quadrilateral.cs @@ -49,7 +49,7 @@ public Quadrilateral(ComplexQuadrilateral complexQuadrilateral) OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Gets or Sets SimpleQuadrilateral diff --git a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/QuadrilateralInterface.cs b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/QuadrilateralInterface.cs index 519ed66393ca..08cade10a83f 100644 --- a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/QuadrilateralInterface.cs +++ b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/QuadrilateralInterface.cs @@ -40,7 +40,7 @@ public QuadrilateralInterface(string quadrilateralType) OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Gets or Sets QuadrilateralType diff --git a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/ReadOnlyFirst.cs b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/ReadOnlyFirst.cs index a7cd43316ac8..d39a761c6756 100644 --- a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/ReadOnlyFirst.cs +++ b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/ReadOnlyFirst.cs @@ -42,7 +42,7 @@ public ReadOnlyFirst(Option bar = default, Option baz = default) OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Used to track the state of Bar diff --git a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/RequiredClass.cs b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/RequiredClass.cs index 0990c0ab7a40..e9e94bdfae5d 100644 --- a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/RequiredClass.cs +++ b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/RequiredClass.cs @@ -126,7 +126,7 @@ public RequiredClass(DateTime requiredNotNullableDateProp, List required OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Defines RequiredNotnullableEnumInteger diff --git a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/Return.cs b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/Return.cs index 6a2c4c85eb4a..69091556b453 100644 --- a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/Return.cs +++ b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/Return.cs @@ -46,7 +46,7 @@ public Return(string @lock, string @abstract = default, Option varReturn = OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Gets or Sets Lock diff --git a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/RolesReportsHash.cs b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/RolesReportsHash.cs index 46625cb093a3..8d0cb0a73562 100644 --- a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/RolesReportsHash.cs +++ b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/RolesReportsHash.cs @@ -42,7 +42,7 @@ public RolesReportsHash(Option role = default, Option /// Used to track the state of Role diff --git a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/RolesReportsHashRole.cs b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/RolesReportsHashRole.cs index 29c8760c9722..7378b0edc04a 100644 --- a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/RolesReportsHashRole.cs +++ b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/RolesReportsHashRole.cs @@ -40,7 +40,7 @@ public RolesReportsHashRole(Option name = default) OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Used to track the state of Name diff --git a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/ScaleneTriangle.cs b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/ScaleneTriangle.cs index 5c960eb54744..ae482c9fd59c 100644 --- a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/ScaleneTriangle.cs +++ b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/ScaleneTriangle.cs @@ -42,7 +42,7 @@ public ScaleneTriangle(string shapeType, string triangleType) OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Gets or Sets ShapeType diff --git a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/Shape.cs b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/Shape.cs index c651ac7d2454..bf15bb26ed51 100644 --- a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/Shape.cs +++ b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/Shape.cs @@ -49,7 +49,7 @@ public Shape(Quadrilateral quadrilateral) OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Gets or Sets Triangle diff --git a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/ShapeInterface.cs b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/ShapeInterface.cs index 37db5df64908..192ca6aef087 100644 --- a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/ShapeInterface.cs +++ b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/ShapeInterface.cs @@ -40,7 +40,7 @@ public ShapeInterface(string shapeType) OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Gets or Sets ShapeType diff --git a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/ShapeOrNull.cs b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/ShapeOrNull.cs index 1f0b22030070..c532dcee99f3 100644 --- a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/ShapeOrNull.cs +++ b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/ShapeOrNull.cs @@ -49,7 +49,7 @@ public ShapeOrNull(Quadrilateral quadrilateral) OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Gets or Sets Triangle diff --git a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/SimpleQuadrilateral.cs b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/SimpleQuadrilateral.cs index ffa68d1e75de..0a8314e7ee3b 100644 --- a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/SimpleQuadrilateral.cs +++ b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/SimpleQuadrilateral.cs @@ -42,7 +42,7 @@ public SimpleQuadrilateral(string quadrilateralType, string shapeType) OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Gets or Sets QuadrilateralType diff --git a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/SpecialModelName.cs b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/SpecialModelName.cs index 7ec3c110c2a1..7ba549f145bb 100644 --- a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/SpecialModelName.cs +++ b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/SpecialModelName.cs @@ -42,7 +42,7 @@ public SpecialModelName(Option varSpecialModelName = default, Option /// Used to track the state of VarSpecialModelName diff --git a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/Tag.cs b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/Tag.cs index 4290e8270ff9..38aca81c755b 100644 --- a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/Tag.cs +++ b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/Tag.cs @@ -42,7 +42,7 @@ public Tag(Option id = default, Option name = default) OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Used to track the state of Id diff --git a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordList.cs b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordList.cs index 11d1cd5963c0..49258bcb159f 100644 --- a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordList.cs +++ b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordList.cs @@ -40,7 +40,7 @@ public TestCollectionEndingWithWordList(Option value = default) OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Used to track the state of Value diff --git a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordListObject.cs b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordListObject.cs index 04d04337aa4a..e9467b8f265f 100644 --- a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordListObject.cs +++ b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordListObject.cs @@ -40,7 +40,7 @@ public TestCollectionEndingWithWordListObject(Option /// Used to track the state of TestCollectionEndingWithWordList diff --git a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/TestInlineFreeformAdditionalPropertiesRequest.cs b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/TestInlineFreeformAdditionalPropertiesRequest.cs index 33f5183651a3..407afedd0da9 100644 --- a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/TestInlineFreeformAdditionalPropertiesRequest.cs +++ b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/TestInlineFreeformAdditionalPropertiesRequest.cs @@ -40,7 +40,7 @@ public TestInlineFreeformAdditionalPropertiesRequest(Option someProperty OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Used to track the state of SomeProperty diff --git a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/Triangle.cs b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/Triangle.cs index cf22051519ad..36cae8b499ba 100644 --- a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/Triangle.cs +++ b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/Triangle.cs @@ -59,7 +59,7 @@ public Triangle(ScaleneTriangle scaleneTriangle) OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Gets or Sets EquilateralTriangle diff --git a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/TriangleInterface.cs b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/TriangleInterface.cs index 0f13b0e77451..55f659bdd721 100644 --- a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/TriangleInterface.cs +++ b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/TriangleInterface.cs @@ -40,7 +40,7 @@ public TriangleInterface(string triangleType) OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Gets or Sets TriangleType diff --git a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/User.cs b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/User.cs index e89d58457324..1f6231bd7a9f 100644 --- a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/User.cs +++ b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/User.cs @@ -62,7 +62,7 @@ public User(Option anyTypeProp = default, Option anyTypePropNull OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Used to track the state of AnyTypeProp diff --git a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/Whale.cs b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/Whale.cs index 834e6957c675..8bf23ccec947 100644 --- a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/Whale.cs +++ b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/Whale.cs @@ -44,7 +44,7 @@ public Whale(string className, Option hasBaleen = default, Option OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Gets or Sets ClassName diff --git a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/Zebra.cs b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/Zebra.cs index bdf489815279..26f62a0157ab 100644 --- a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/Zebra.cs +++ b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/Zebra.cs @@ -42,7 +42,7 @@ public Zebra(string className, Option type = default) OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Defines Type diff --git a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/ZeroBasedEnumClass.cs b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/ZeroBasedEnumClass.cs index a6d408aeecc1..40e3d6d25f59 100644 --- a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/ZeroBasedEnumClass.cs +++ b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/ZeroBasedEnumClass.cs @@ -40,7 +40,7 @@ public ZeroBasedEnumClass(Option zeroBasedEnum = default) OnCreated(); } - partial void OnCreated(); + public virtual void OnCreated() { } /// /// Defines ZeroBasedEnum diff --git a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Client/ApiClient.cs b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Client/ApiClient.cs index 635dc63210d2..a9faa2856bd1 100644 --- a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Client/ApiClient.cs +++ b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Client/ApiClient.cs @@ -420,8 +420,8 @@ private HttpRequestMessage NewRequest( return request; } - partial void InterceptRequest(HttpRequestMessage req); - partial void InterceptResponse(HttpRequestMessage req, HttpResponseMessage response); + public virtual void InterceptRequest(HttpRequestMessage req) { } + public virtual void InterceptResponse(HttpRequestMessage req, HttpResponseMessage response) { } private async Task> ToApiResponse(HttpResponseMessage response, object responseData, Uri uri) { diff --git a/samples/client/petstore/csharp/restsharp/net4.7/MultipleFrameworks/src/Org.OpenAPITools/Client/ApiClient.cs b/samples/client/petstore/csharp/restsharp/net4.7/MultipleFrameworks/src/Org.OpenAPITools/Client/ApiClient.cs index 03ca8ae6772d..e672c617e1fe 100644 --- a/samples/client/petstore/csharp/restsharp/net4.7/MultipleFrameworks/src/Org.OpenAPITools/Client/ApiClient.cs +++ b/samples/client/petstore/csharp/restsharp/net4.7/MultipleFrameworks/src/Org.OpenAPITools/Client/ApiClient.cs @@ -192,14 +192,14 @@ public partial class ApiClient : ISynchronousClient, IAsynchronousClient /// Allows for extending request processing for generated code. /// /// The RestSharp request object - partial void InterceptRequest(RestRequest request); + public virtual void InterceptRequest(RestRequest request) { } /// /// Allows for extending response processing for generated code. /// /// The RestSharp request object /// The RestSharp response object - partial void InterceptResponse(RestRequest request, RestResponse response); + public virtual void InterceptResponse(RestRequest request, RestResponse response) { } /// /// Initializes a new instance of the , defaulting to the global configurations' base url. diff --git a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools/Client/ApiClient.cs b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools/Client/ApiClient.cs index 87b0c326b407..ac006b76c5bc 100644 --- a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools/Client/ApiClient.cs +++ b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools/Client/ApiClient.cs @@ -192,14 +192,14 @@ public partial class ApiClient : ISynchronousClient, IAsynchronousClient /// Allows for extending request processing for generated code. /// /// The RestSharp request object - partial void InterceptRequest(RestRequest request); + public virtual void InterceptRequest(RestRequest request) { } /// /// Allows for extending response processing for generated code. /// /// The RestSharp request object /// The RestSharp response object - partial void InterceptResponse(RestRequest request, RestResponse response); + public virtual void InterceptResponse(RestRequest request, RestResponse response) { } /// /// Initializes a new instance of the , defaulting to the global configurations' base url. diff --git a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools/Client/ApiClient.cs b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools/Client/ApiClient.cs index 87b0c326b407..ac006b76c5bc 100644 --- a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools/Client/ApiClient.cs +++ b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools/Client/ApiClient.cs @@ -192,14 +192,14 @@ public partial class ApiClient : ISynchronousClient, IAsynchronousClient /// Allows for extending request processing for generated code. /// /// The RestSharp request object - partial void InterceptRequest(RestRequest request); + public virtual void InterceptRequest(RestRequest request) { } /// /// Allows for extending response processing for generated code. /// /// The RestSharp request object /// The RestSharp response object - partial void InterceptResponse(RestRequest request, RestResponse response); + public virtual void InterceptResponse(RestRequest request, RestResponse response) { } /// /// Initializes a new instance of the , defaulting to the global configurations' base url. diff --git a/samples/client/petstore/csharp/restsharp/net6/ParameterMappings/src/Org.OpenAPITools/Client/ApiClient.cs b/samples/client/petstore/csharp/restsharp/net6/ParameterMappings/src/Org.OpenAPITools/Client/ApiClient.cs index 3d9a76334850..37ce0d6a4f82 100644 --- a/samples/client/petstore/csharp/restsharp/net6/ParameterMappings/src/Org.OpenAPITools/Client/ApiClient.cs +++ b/samples/client/petstore/csharp/restsharp/net6/ParameterMappings/src/Org.OpenAPITools/Client/ApiClient.cs @@ -190,14 +190,14 @@ public partial class ApiClient : ISynchronousClient, IAsynchronousClient /// Allows for extending request processing for generated code. /// /// The RestSharp request object - partial void InterceptRequest(RestRequest request); + public virtual void InterceptRequest(RestRequest request) { } /// /// Allows for extending response processing for generated code. /// /// The RestSharp request object /// The RestSharp response object - partial void InterceptResponse(RestRequest request, RestResponse response); + public virtual void InterceptResponse(RestRequest request, RestResponse response) { } /// /// Initializes a new instance of the , defaulting to the global configurations' base url. diff --git a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Client/ApiClient.cs b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Client/ApiClient.cs index 2dafc1eb4bfa..d87240c786a2 100644 --- a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Client/ApiClient.cs +++ b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Client/ApiClient.cs @@ -191,14 +191,14 @@ public partial class ApiClient : ISynchronousClient, IAsynchronousClient /// Allows for extending request processing for generated code. /// /// The RestSharp request object - partial void InterceptRequest(RestRequest request); + public virtual void InterceptRequest(RestRequest request) { } /// /// Allows for extending response processing for generated code. /// /// The RestSharp request object /// The RestSharp response object - partial void InterceptResponse(RestRequest request, RestResponse response); + public virtual void InterceptResponse(RestRequest request, RestResponse response) { } /// /// Initializes a new instance of the , defaulting to the global configurations' base url. diff --git a/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Client/ApiClient.cs b/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Client/ApiClient.cs index 2dafc1eb4bfa..d87240c786a2 100644 --- a/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Client/ApiClient.cs +++ b/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Client/ApiClient.cs @@ -191,14 +191,14 @@ public partial class ApiClient : ISynchronousClient, IAsynchronousClient /// Allows for extending request processing for generated code. /// /// The RestSharp request object - partial void InterceptRequest(RestRequest request); + public virtual void InterceptRequest(RestRequest request) { } /// /// Allows for extending response processing for generated code. /// /// The RestSharp request object /// The RestSharp response object - partial void InterceptResponse(RestRequest request, RestResponse response); + public virtual void InterceptResponse(RestRequest request, RestResponse response) { } /// /// Initializes a new instance of the , defaulting to the global configurations' base url. diff --git a/samples/client/petstore/csharp/restsharp/net7/UseDateTimeForDate/src/Org.OpenAPITools/Client/ApiClient.cs b/samples/client/petstore/csharp/restsharp/net7/UseDateTimeForDate/src/Org.OpenAPITools/Client/ApiClient.cs index 5b7eea89e746..4fd8a102e7d5 100644 --- a/samples/client/petstore/csharp/restsharp/net7/UseDateTimeForDate/src/Org.OpenAPITools/Client/ApiClient.cs +++ b/samples/client/petstore/csharp/restsharp/net7/UseDateTimeForDate/src/Org.OpenAPITools/Client/ApiClient.cs @@ -190,14 +190,14 @@ public partial class ApiClient : ISynchronousClient, IAsynchronousClient /// Allows for extending request processing for generated code. /// /// The RestSharp request object - partial void InterceptRequest(RestRequest request); + public virtual void InterceptRequest(RestRequest request) { } /// /// Allows for extending response processing for generated code. /// /// The RestSharp request object /// The RestSharp response object - partial void InterceptResponse(RestRequest request, RestResponse response); + public virtual void InterceptResponse(RestRequest request, RestResponse response) { } /// /// Initializes a new instance of the , defaulting to the global configurations' base url. diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Client/ApiClient.cs b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Client/ApiClient.cs index 87b0c326b407..ac006b76c5bc 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Client/ApiClient.cs +++ b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Client/ApiClient.cs @@ -192,14 +192,14 @@ public partial class ApiClient : ISynchronousClient, IAsynchronousClient /// Allows for extending request processing for generated code. /// /// The RestSharp request object - partial void InterceptRequest(RestRequest request); + public virtual void InterceptRequest(RestRequest request) { } /// /// Allows for extending response processing for generated code. /// /// The RestSharp request object /// The RestSharp response object - partial void InterceptResponse(RestRequest request, RestResponse response); + public virtual void InterceptResponse(RestRequest request, RestResponse response) { } /// /// Initializes a new instance of the , defaulting to the global configurations' base url. diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools/Client/ApiClient.cs b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools/Client/ApiClient.cs index 87b0c326b407..ac006b76c5bc 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools/Client/ApiClient.cs +++ b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools/Client/ApiClient.cs @@ -192,14 +192,14 @@ public partial class ApiClient : ISynchronousClient, IAsynchronousClient /// Allows for extending request processing for generated code. /// /// The RestSharp request object - partial void InterceptRequest(RestRequest request); + public virtual void InterceptRequest(RestRequest request) { } /// /// Allows for extending response processing for generated code. /// /// The RestSharp request object /// The RestSharp response object - partial void InterceptResponse(RestRequest request, RestResponse response); + public virtual void InterceptResponse(RestRequest request, RestResponse response) { } /// /// Initializes a new instance of the , defaulting to the global configurations' base url. diff --git a/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools/Client/ApiClient.cs b/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools/Client/ApiClient.cs index f6913f2f6b2d..41abe485edb6 100644 --- a/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools/Client/ApiClient.cs +++ b/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools/Client/ApiClient.cs @@ -348,8 +348,8 @@ private UnityWebRequest NewRequest( } - partial void InterceptRequest(UnityWebRequest req, string path, RequestOptions options, IReadableConfiguration configuration); - partial void InterceptResponse(UnityWebRequest req, string path, RequestOptions options, IReadableConfiguration configuration, ref object responseData); + public virtual void InterceptRequest(UnityWebRequest req, string path, RequestOptions options, IReadableConfiguration configuration) { } + public virtual void InterceptResponse(UnityWebRequest req, string path, RequestOptions options, IReadableConfiguration configuration, ref object responseData) { } private ApiResponse ToApiResponse(UnityWebRequest request, object responseData) {