2 writes to AsyncResultType
Microsoft.AspNetCore.Mvc.Core (2)
src\Shared\ObjectMethodExecutor\ObjectMethodExecutor.cs (2)
48
AsyncResultType
= isAwaitable ? coercedAwaitableInfo.AwaitableInfo.ResultType : null;
71
AsyncResultType
= isAwaitable ? resultType : null;
7 references to AsyncResultType
Microsoft.AspNetCore.Mvc.Core (7)
Infrastructure\ActionMethodExecutor.cs (6)
77
return ConvertToActionResult(mapper, result, executor.IsMethodAsync ? executor.
AsyncResultType
! : executor.MethodReturnType);
243
return executor.IsMethodAsync && executor.
AsyncResultType
== typeof(void);
319
return executor.IsMethodAsync && typeof(IActionResult).IsAssignableFrom(executor.
AsyncResultType
);
336
var actionResult = ConvertToActionResult(mapper, returnValue, executor.
AsyncResultType
!);
348
var actionResult = ConvertToActionResult(mapper, returnValue, executor.
AsyncResultType
!);
359
var type = executor.
AsyncResultType
?? executor.MethodReturnType;
src\Shared\ObjectMethodExecutor\ObjectMethodExecutor.cs (1)
80
_executorAsync = GetExecutorAsyncTrimAotCompatible(methodInfo,
AsyncResultType
!);