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