-
Notifications
You must be signed in to change notification settings - Fork 90
Open
Labels
Description
When an action in the REST service returns void ([ResponseType(typeof(void))] on the action), the C# T4 template CSharpProxyTemplate.tt generates the line:
return result.Content.ReadAsAsync<void>().Result;
...in the generated proxy C# source. Obviously, that doesn't compile!
Essentially the T4 template variable "concreteReturnType" needs to be checked for void and a) the method return type and b) the return statement modified. I haven't inspected the entire template.
Chris Bordeman