3 instantiations of ObjectMethodExecutor
Microsoft.AspNetCore.Mvc.Core (3)
src\aspnetcore\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);
52 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)
388var objectMethodExecutor = _cacheEntry.ObjectMethodExecutor; 412var objectMethodExecutor = invoker._cacheEntry.ObjectMethodExecutor; 531ObjectMethodExecutor 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\aspnetcore\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\aspnetcore\src\Shared\ObjectMethodExecutor\ObjectMethodExecutorAwaitable.cs (1)
12/// Provides a common awaitable structure that <see cref="ObjectMethodExecutor.ExecuteAsync"/> can
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>();