1 write to MethodReturnType
Microsoft.AspNetCore.Mvc.Core (1)
src\Shared\ObjectMethodExecutor\ObjectMethodExecutor.cs (1)
38MethodReturnType = methodInfo.ReturnType;
9 references to MethodReturnType
Microsoft.AspNetCore.Mvc.Core (9)
Infrastructure\ActionMethodExecutor.cs (8)
77return ConvertToActionResult(mapper, result, executor.IsMethodAsync ? executor.AsyncResultType! : executor.MethodReturnType); 118=> !executor.IsMethodAsync && executor.MethodReturnType == typeof(void); 151=> !executor.IsMethodAsync && typeof(IActionResult).IsAssignableFrom(executor.MethodReturnType); 167var actionResult = ConvertToActionResult(mapper, returnValue, executor.MethodReturnType); 180var actionResult = ConvertToActionResult(mapper, returnValue, executor.MethodReturnType); 212protected override bool CanExecute(ObjectMethodExecutor executor) => executor.MethodReturnType == typeof(Task); 282=> typeof(Task<IActionResult>).IsAssignableFrom(executor.MethodReturnType); 359var type = executor.AsyncResultType ?? executor.MethodReturnType;
src\Shared\ObjectMethodExecutor\ObjectMethodExecutor.cs (1)
40var isAwaitable = CoercedAwaitableInfo.IsTypeAwaitable(MethodReturnType, out var coercedAwaitableInfo);