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