Skip to content
Snippets Groups Projects
Commit bfcd6b62 authored by Jan Tattermusch's avatar Jan Tattermusch
Browse files

generate comments for C# client constructors

parent f41ebc39
No related branches found
No related tags found
No related merge requests found
...@@ -333,10 +333,16 @@ void GenerateClientStub(Printer* out, const ServiceDescriptor *service) { ...@@ -333,10 +333,16 @@ void GenerateClientStub(Printer* out, const ServiceDescriptor *service) {
out->Indent(); out->Indent();
// constructors // constructors
out->Print("/// <summary>Creates a new client for $servicename$</summary>\n"
"/// <param name=\"channel\">The channel to use to make remote calls.</param>\n",
"servicename", GetServiceClassName(service));
out->Print("public $name$(Channel channel) : base(channel)\n", out->Print("public $name$(Channel channel) : base(channel)\n",
"name", GetClientClassName(service)); "name", GetClientClassName(service));
out->Print("{\n"); out->Print("{\n");
out->Print("}\n"); out->Print("}\n");
out->Print("/// <summary>Creates a new client for $servicename$ that uses a custom <c>CallInvoker</c>.</summary>\n"
"/// <param name=\"callInvoker\">The callInvoker to use to make remote calls.</param>\n",
"servicename", GetServiceClassName(service));
out->Print("public $name$(CallInvoker callInvoker) : base(callInvoker)\n", out->Print("public $name$(CallInvoker callInvoker) : base(callInvoker)\n",
"name", GetClientClassName(service)); "name", GetClientClassName(service));
out->Print("{\n"); out->Print("{\n");
...@@ -347,8 +353,8 @@ void GenerateClientStub(Printer* out, const ServiceDescriptor *service) { ...@@ -347,8 +353,8 @@ void GenerateClientStub(Printer* out, const ServiceDescriptor *service) {
"name", GetClientClassName(service)); "name", GetClientClassName(service));
out->Print("{\n"); out->Print("{\n");
out->Print("}\n"); out->Print("}\n");
out->Print("///<summary>Protected constructor to allow creation of configured" out->Print("/// <summary>Protected constructor to allow creation of configured clients.</summary>\n"
" clients.</summary>\n"); "/// <param name=\"configuration\">The client configuration.</param>\n");
out->Print("protected $name$(ClientBaseConfiguration configuration)" out->Print("protected $name$(ClientBaseConfiguration configuration)"
" : base(configuration)\n", " : base(configuration)\n",
"name", GetClientClassName(service)); "name", GetClientClassName(service));
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment