Fully qualify System.Threading.Tasks.Task

pull/6489/head
Kirill Katsnelson 9 years ago committed by Jan Tattermusch
parent 7135ba96f8
commit 0ddf46f10e
  1. 4
      src/compiler/csharp_generator.cc

@ -214,10 +214,10 @@ std::string GetMethodReturnTypeServer(const MethodDescriptor *method) {
switch (GetMethodType(method)) {
case METHODTYPE_NO_STREAMING:
case METHODTYPE_CLIENT_STREAMING:
return "Task<" + GetClassName(method->output_type()) + ">";
return "global::System.Threading.Tasks.Task<" + GetClassName(method->output_type()) + ">";
case METHODTYPE_SERVER_STREAMING:
case METHODTYPE_BIDI_STREAMING:
return "Task";
return "global::System.Threading.Tasks.Task";
}
GOOGLE_LOG(FATAL)<< "Can't get here.";
return "";

Loading…
Cancel
Save