[csharp] Add interface for API config aspects

This allows developers to gain access to each API's
Configuration and  GetBasePath without need for reflection.
This commit is contained in:
Jim Schubert
2016-05-12 22:06:30 -04:00
parent 726228a27d
commit 993a21ed5f
3 changed files with 29 additions and 1 deletions

View File

@@ -218,6 +218,8 @@ public class CSharpClientCodegen extends AbstractCSharpCodegen {
binRelativePath += "vendor";
additionalProperties.put("binRelativePath", binRelativePath);
supportingFiles.add(new SupportingFile("IApiAccessor.mustache",
clientPackageDir, "IApiAccessor.cs"));
supportingFiles.add(new SupportingFile("Configuration.mustache",
clientPackageDir, "Configuration.cs"));
supportingFiles.add(new SupportingFile("ApiClient.mustache",