You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@thrift.apache.org by ro...@apache.org on 2012/01/20 20:42:23 UTC

svn commit: r1234095 - /thrift/trunk/compiler/cpp/src/generate/t_csharp_generator.cc

Author: roger
Date: Fri Jan 20 19:42:23 2012
New Revision: 1234095

URL: http://svn.apache.org/viewvc?rev=1234095&view=rev
Log:
THRIFT-1489 Add support for WCF bindings (optionally) to C# compiler, allowing web service usage of Thrift generated code
Patch: Kieran Benton
fix: add missing area of XML documentation generation

Modified:
    thrift/trunk/compiler/cpp/src/generate/t_csharp_generator.cc

Modified: thrift/trunk/compiler/cpp/src/generate/t_csharp_generator.cc
URL: http://svn.apache.org/viewvc/thrift/trunk/compiler/cpp/src/generate/t_csharp_generator.cc?rev=1234095&r1=1234094&r2=1234095&view=diff
==============================================================================
--- thrift/trunk/compiler/cpp/src/generate/t_csharp_generator.cc (original)
+++ thrift/trunk/compiler/cpp/src/generate/t_csharp_generator.cc Fri Jan 20 19:42:23 2012
@@ -914,6 +914,8 @@ void t_csharp_generator::generate_servic
     extends_client = extends + ".Client, ";
   }
 
+  generate_csharp_doc(f_service_, tservice);
+
   indent(f_service_) <<
     "public class Client : " << extends_client << "Iface {" << endl;
   indent_up();
@@ -964,6 +966,7 @@ void t_csharp_generator::generate_servic
     string funname = (*f_iter)->get_name();
 
     indent(f_service_) << endl;
+	
     indent(f_service_) << "#if SILVERLIGHT" << endl;
 	// Begin_
     indent(f_service_) <<
@@ -1053,6 +1056,7 @@ void t_csharp_generator::generate_servic
     indent(f_service_) << "#endif" << endl << endl;
 
     // "Normal" Synchronous invoke
+    generate_csharp_doc(f_service_, *f_iter);
     indent(f_service_) <<
       "public " << function_signature(*f_iter) << endl;
     scope_up(f_service_);