CSharp: Add optional api constructor argument to set the basePath

This commit is contained in:
Timothy Lusk 2014-07-15 15:36:13 -04:00
parent 3b6ffa4a1f
commit bbe48814b4

View File

@ -8,9 +8,14 @@
namespace {{package}} {
{{#operations}}
public class {{classname}} {
string basePath = "{{basePath}}";
string basePath;
private readonly ApiInvoker apiInvoker = ApiInvoker.GetInstance();
public {{classname}}(String basePath = "{{basePath}}")
{
this.basePath = basePath;
}
public ApiInvoker getInvoker() {
return apiInvoker;
}