From 3a2d7adc356b1381d42426dbe4bcfc22fe4a06ee Mon Sep 17 00:00:00 2001 From: Danny Gershman Date: Mon, 3 Jun 2013 19:02:09 -0400 Subject: [PATCH 1/2] code comment templating added --- src/main/resources/csharp/api.mustache | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/main/resources/csharp/api.mustache b/src/main/resources/csharp/api.mustache index b08081d81e9..36053337bf5 100644 --- a/src/main/resources/csharp/api.mustache +++ b/src/main/resources/csharp/api.mustache @@ -15,15 +15,24 @@ return apiInvoker; } + // Sets the endpoint base url for the services being accessed public void setBasePath(string basePath) { this.basePath = basePath; } + // Gets the endpoint base url for the services being accessed public String getBasePath() { return basePath; } {{#operation}} + + /// + /// {{summary}} {{notes}} + /// + {{#allParams}}/// {{description}} + {{#hasMore}} {{/hasMore}}{{/allParams}} + /// public {{#returnType}}{{{returnType}}} {{/returnType}}{{^returnType}}void {{/returnType}} {{nickname}} ({{#allParams}}{{{dataType}}} {{paramName}}{{#hasMore}}, {{/hasMore}}{{/allParams}}) { // create path and map variables var path = "{{path}}".Replace("{format}","json"){{#pathParams}}.Replace("{" + "{{paramName}}" + "}", apiInvoker.escapeString({{{paramName}}}.ToString())){{/pathParams}}; From d038ef47998509bb8024244ec1d0b66550a5b76d Mon Sep 17 00:00:00 2001 From: Danny Gershman Date: Tue, 4 Jun 2013 01:15:47 -0400 Subject: [PATCH 2/2] needed to update the compile file for documentation --- src/main/resources/csharp/compile.mustache | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/resources/csharp/compile.mustache b/src/main/resources/csharp/compile.mustache index b19235fde3c..be16fb1636e 100644 --- a/src/main/resources/csharp/compile.mustache +++ b/src/main/resources/csharp/compile.mustache @@ -1,2 +1,2 @@ -SET CSCPATH=C:\windows\microsoft.net\Framework\v4.0.30319 -%CSCPATH%\csc /reference:bin/Newtonsoft.Json.dll /target:library /out:bin/{{invokerPackage}}.dll /recurse:src\*.cs \ No newline at end of file +SET CSCPATH=%SYSTEMROOT%\Microsoft.NET\Framework\v4.0.30319 +%CSCPATH%\csc /reference:bin/Newtonsoft.Json.dll /target:library /out:bin/{{invokerPackage}}.dll /recurse:src\*.cs /doc:bin/{{invokerPackage}}.xml \ No newline at end of file