forked from loafle/openapi-generator-original
[csharp] Refactor Configuration usage (#5740)
* [csharp] refactor ApiClient and Configuration usage * # This is a combination of 2 commits. # The first commit's message is: [csharp] refactor ApiClient and Configuration usage [csharp] Regenerate sample # This is the 2nd commit message: [csharp] Simplify setting apikey/prefix/headers * # This is a combination of 2 commits. # The first commit's message is: [csharp] refactor ApiClient and Configuration usage * Simplify setting apikey/prefix/headers * Regenerate sample # This is the 2nd commit message: [csharp] Pass-through configuration timeout to client * [csharp] refactor ApiClient and Configuration usage * Simplify setting apikey/prefix/headers * Regenerate sample * [csharp] Regenerate all client samples * [csharp] regenerate .net standard/core samples * [csharp] Fix Timeout diff between netstandard and non-netstandard * [csharp] Resolve additional netStandard issues after merge * [csharp] Update doc for Configuration usage
This commit is contained in:
@@ -312,6 +312,7 @@ public class CSharpClientCodegen extends AbstractCSharpCodegen {
|
||||
clientPackageDir, "ApiResponse.cs"));
|
||||
supportingFiles.add(new SupportingFile("ExceptionFactory.mustache",
|
||||
clientPackageDir, "ExceptionFactory.cs"));
|
||||
|
||||
if(Boolean.FALSE.equals(this.netStandard) && Boolean.FALSE.equals(this.netCoreProjectFileFlag)) {
|
||||
supportingFiles.add(new SupportingFile("compile.mustache", "", "build.bat"));
|
||||
supportingFiles.add(new SupportingFile("compile-mono.sh.mustache", "", "build.sh"));
|
||||
@@ -324,6 +325,11 @@ public class CSharpClientCodegen extends AbstractCSharpCodegen {
|
||||
supportingFiles.add(new SupportingFile("project.json.mustache", packageFolder + File.separator, "project.json"));
|
||||
}
|
||||
|
||||
supportingFiles.add(new SupportingFile("IReadableConfiguration.mustache",
|
||||
clientPackageDir, "IReadableConfiguration.cs"));
|
||||
supportingFiles.add(new SupportingFile("GlobalConfiguration.mustache",
|
||||
clientPackageDir, "GlobalConfiguration.cs"));
|
||||
|
||||
// Only write out test related files if excludeTests is unset or explicitly set to false (see start of this method)
|
||||
if(Boolean.FALSE.equals(excludeTests)) {
|
||||
// shell script to run the nunit test
|
||||
|
||||
Reference in New Issue
Block a user