3 instantiations of ObjectMethodExecutor
Microsoft.AspNetCore.Mvc.Core (3)
src\Shared\ObjectMethodExecutor\ObjectMethodExecutor.cs (3)
107return new ObjectMethodExecutor(methodInfo, targetTypeInfo, null); 116return new ObjectMethodExecutor(methodInfo, targetTypeInfo, parameterDefaultValues); 129return new ObjectMethodExecutor(methodInfo, targetTypeInfo, isTrimAotCompatible: true);
79 references to ObjectMethodExecutor
Microsoft.AspNetCore.Mvc.Core (43)
Infrastructure\ActionMethodExecutor.cs (30)
35ObjectMethodExecutor executor, 39protected abstract bool CanExecute(ObjectMethodExecutor executor); 43public static ActionMethodExecutor GetExecutor(ObjectMethodExecutor executor) 71ObjectMethodExecutor executor, 86protected override bool CanExecute(ObjectMethodExecutor executor) 99ObjectMethodExecutor executor, 109var executor = invocationContext.Executor; 117protected override bool CanExecute(ObjectMethodExecutor executor) 128ObjectMethodExecutor executor, 140var executor = invocationContext.Executor; 150protected override bool CanExecute(ObjectMethodExecutor executor) 161ObjectMethodExecutor executor, 173var executor = invocationContext.Executor; 185protected override bool CanExecute(ObjectMethodExecutor executor) => !executor.IsMethodAsync; 194ObjectMethodExecutor executor, 204var executor = invocationContext.Executor; 212protected override bool CanExecute(ObjectMethodExecutor executor) => executor.MethodReturnType == typeof(Task); 222ObjectMethodExecutor executor, 232var executor = invocationContext.Executor; 240protected override bool CanExecute(ObjectMethodExecutor executor) 253ObjectMethodExecutor executor, 268var executor = invocationContext.Executor; 281protected override bool CanExecute(ObjectMethodExecutor executor) 292ObjectMethodExecutor executor, 305var executor = invocationContext.Executor; 316protected override bool CanExecute(ObjectMethodExecutor executor) 330ObjectMethodExecutor executor, 342var executor = invocationContext.Executor; 352protected override bool CanExecute(ObjectMethodExecutor executor) => true; 355private static void EnsureActionResultNotNull(ObjectMethodExecutor executor, IActionResult actionResult)
Infrastructure\ControllerActionInvoker.cs (3)
386var objectMethodExecutor = _cacheEntry.ObjectMethodExecutor; 410var objectMethodExecutor = invoker._cacheEntry.ObjectMethodExecutor; 529ObjectMethodExecutor actionMethodExecutor)
Infrastructure\ControllerActionInvokerCache.cs (2)
57var objectMethodExecutor = ObjectMethodExecutor.Create(
Infrastructure\ControllerActionInvokerCacheEntry.cs (2)
17ObjectMethodExecutor objectMethodExecutor, 38internal ObjectMethodExecutor ObjectMethodExecutor { get; }
Infrastructure\ControllerEndpointFilterInvocationContext.cs (2)
17ObjectMethodExecutor executor, 36internal ObjectMethodExecutor Executor { get; }
src\Shared\ObjectMethodExecutor\ObjectMethodExecutor.cs (3)
105public static ObjectMethodExecutor Create(MethodInfo methodInfo, TypeInfo targetTypeInfo) 112public static ObjectMethodExecutor Create(MethodInfo methodInfo, TypeInfo targetTypeInfo, object?[] parameterDefaultValues) 127public static ObjectMethodExecutor CreateTrimAotCompatible(MethodInfo methodInfo, TypeInfo targetTypeInfo)
src\Shared\ObjectMethodExecutor\ObjectMethodExecutorAwaitable.cs (1)
12/// Provides a common awaitable structure that <see cref="ObjectMethodExecutor.ExecuteAsync"/> can
Microsoft.AspNetCore.Mvc.Core.Test (27)
Filters\MiddlewareFilterTest.cs (3)
420private static ObjectMethodExecutor CreateExecutor(ControllerActionDescriptor actionDescriptor) 422return ObjectMethodExecutor.Create(actionDescriptor.MethodInfo, actionDescriptor.ControllerTypeInfo); 443var objectMethodExecutor = CreateExecutor(actionDescriptor);
Infrastructure\ActionMethodExecutorTest.cs (18)
20var objectMethodExecutor = GetExecutor(nameof(TestController.VoidAction)); 46var objectMethodExecutor = GetExecutor(nameof(TestController.ReturnIActionResult)); 72var objectMethodExecutor = GetExecutor(nameof(TestController.ReturnsIActionResultSubType)); 97var objectMethodExecutor = GetExecutor(nameof(TestController.ReturnsActionResultOfT)); 126var objectMethodExecutor = GetExecutor(nameof(TestController.ReturnsModelAsModel)); 155var objectMethodExecutor = GetExecutor(nameof(TestController.ReturnModelAsObject)); 184var objectMethodExecutor = GetExecutor(nameof(TestController.ReturnsIActionResultSubType)); 209var objectMethodExecutor = GetExecutor(nameof(TestController.ReturnsTask)); 235var objectMethodExecutor = GetExecutor(nameof(TestController.ReturnsAwaitable)); 261var objectMethodExecutor = GetExecutor(nameof(TestController.ReturnIActionResultAsync)); 286var objectMethodExecutor = GetExecutor(nameof(TestController.ReturnActionResultAsync)); 312var objectMethodExecutor = GetExecutor(nameof(TestController.ReturnsModelAsModelAsync)); 341var objectMethodExecutor = GetExecutor(nameof(TestController.ReturnsModelAsObjectAsync)); 370var objectMethodExecutor = GetExecutor(nameof(TestController.ReturnIActionResultAsObjectAsync)); 395var objectMethodExecutor = GetExecutor(nameof(TestController.ReturnActionResultOFTAsync)); 424var objectMethodExecutor = GetExecutor(nameof(TestController.ReturnsCustomConvertibleFromIActionResult)); 450private static ObjectMethodExecutor GetExecutor(string methodName) 455return ObjectMethodExecutor.Create(methodInfo, type.GetTypeInfo());
Infrastructure\ControllerActionInvokerTest.cs (6)
1416var objectMethodExecutor = ObjectMethodExecutor.Create( 1739var objectMethodExecutor = ObjectMethodExecutor.Create( 1966private static ObjectMethodExecutor CreateExecutor(ControllerActionDescriptor actionDescriptor) 1968return ObjectMethodExecutor.Create(
Microsoft.AspNetCore.Mvc.ViewFeatures (9)
ViewComponents\DefaultViewComponentInvoker.cs (4)
55var executor = _viewComponentInvokerCache.GetViewComponentMethodExecutor(context); 91private async Task<IViewComponentResult> InvokeAsyncCore(ObjectMethodExecutor executor, object component, ViewComponentContext context) 148private IViewComponentResult InvokeSyncCore(ObjectMethodExecutor executor, object component, ViewComponentContext context) 200ObjectMethodExecutor objectMethodExecutor)
ViewComponents\ViewComponentInvokerCache.cs (5)
39internal ObjectMethodExecutor GetViewComponentMethodExecutor(ViewComponentContext viewComponentContext) 44if (cache.Entries.TryGetValue(viewComponentDescriptor, out var executor)) 60executor = ObjectMethodExecutor.Create( 76public ConcurrentDictionary<ViewComponentDescriptor, ObjectMethodExecutor> Entries { get; } = 77new ConcurrentDictionary<ViewComponentDescriptor, ObjectMethodExecutor>();