We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d917aae commit 79a5edeCopy full SHA for 79a5ede
1 file changed
src/DotNetCoreRpc.Client/HttpRequestInterceptor.cs
@@ -34,12 +34,18 @@ public void Intercept(IInvocation invocation)
34
return;
35
}
36
37
- if (methodReturnType.IsTask() || methodReturnType.IsValueTask())
+ if (methodReturnType.IsTask())
38
{
39
invocation.ReturnValue = _requestHandler.TaskValueTaskWithoutResultHandle(invocation.Method, invocation.Arguments);
40
41
42
43
+ if (methodReturnType.IsValueTask())
44
+ {
45
+ invocation.ReturnValue = new ValueTask(_requestHandler.TaskValueTaskWithoutResultHandle(invocation.Method, invocation.Arguments));
46
+ return;
47
+ }
48
+
49
if (methodReturnType.IsTaskWithResult())
50
51
invocation.ReturnValue = _requestHandler.GetTaskResultHandleFunc(methodReturnType).Invoke(invocation.Method, invocation.Arguments);
0 commit comments