We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3b6ffa4 commit bbe4881Copy full SHA for bbe4881
src/main/resources/csharp/api.mustache
@@ -8,18 +8,23 @@
8
namespace {{package}} {
9
{{#operations}}
10
public class {{classname}} {
11
- string basePath = "{{basePath}}";
+ string basePath;
12
private readonly ApiInvoker apiInvoker = ApiInvoker.GetInstance();
13
14
+ public {{classname}}(String basePath = "{{basePath}}")
15
+ {
16
+ this.basePath = basePath;
17
+ }
18
+
19
public ApiInvoker getInvoker() {
20
return apiInvoker;
21
}
-
22
23
// Sets the endpoint base url for the services being accessed
24
public void setBasePath(string basePath) {
25
this.basePath = basePath;
26
27
28
// Gets the endpoint base url for the services being accessed
29
public String getBasePath() {
30
return basePath;
0 commit comments