33 writes to ActionDescriptor
Microsoft.AspNetCore.Mvc.Abstractions (1)
ActionContext.cs (1)
74ActionDescriptor = actionDescriptor;
Microsoft.AspNetCore.Mvc.Core (1)
ControllerContext.cs (1)
66set { base.ActionDescriptor = value; }
Microsoft.AspNetCore.Mvc.Core.Test (9)
Infrastructure\ControllerActionInvokerProviderTest.cs (1)
29ActionDescriptor = GetControllerActionDescriptor(),
ModelBinding\UnsupportedContentTypeFilterTest.cs (4)
22ActionDescriptor = new ActionDescriptor() 55ActionDescriptor = new ActionDescriptor() 81ActionDescriptor = new ActionDescriptor() 105ActionDescriptor = new ActionDescriptor()
RedirectToPageResultTest.cs (1)
88ActionDescriptor = new ActionDescriptor(),
Routing\UrlHelperExtensionsTest.cs (3)
263ActionDescriptor = new ActionDescriptor 497ActionDescriptor = new ActionDescriptor 868ActionDescriptor = new ActionDescriptor
Microsoft.AspNetCore.Mvc.Razor.Test (5)
RazorViewEngineTest.cs (5)
1616ActionDescriptor = actionDescriptor, 1640ActionDescriptor = actionDescriptor, 1663ActionDescriptor = actionDescriptor, 1686ActionDescriptor = actionDescriptor, 1713ActionDescriptor = actionDescriptor,
Microsoft.AspNetCore.Mvc.RazorPages (2)
Infrastructure\PageActionInvokerCache.cs (1)
54actionContext.ActionDescriptor = compiledPageActionDescriptor;
PageContext.cs (1)
69base.ActionDescriptor = value;
Microsoft.AspNetCore.Mvc.RazorPages.Test (11)
Infrastructure\PageActionInvokerProviderTest.cs (9)
55ActionDescriptor = descriptor, 117ActionDescriptor = descriptor, 183ActionDescriptor = descriptor, 215ActionDescriptor = descriptor, 231ActionDescriptor = descriptor, 261ActionDescriptor = descriptor, 295ActionDescriptor = descriptor, 332ActionDescriptor = descriptor, 349ActionDescriptor = descriptor2,
Infrastructure\PageViewLocationExpanderTest.cs (2)
52context.ActionContext.ActionDescriptor = new ControllerActionDescriptor(); 205ActionDescriptor = new PageActionDescriptor(),
Microsoft.AspNetCore.Mvc.ViewFeatures.Test (4)
Filters\ControllerSaveTempDataPropertyFilterTest.cs (4)
43ActionDescriptor = new ActionDescriptor(), 89ActionDescriptor = new ActionDescriptor(), 132ActionDescriptor = new ActionDescriptor(), 171ActionDescriptor = new ActionDescriptor(),
87 references to ActionDescriptor
ApiExplorerWebSite (2)
ApiExplorerDataFilter.cs (2)
28if (context.ActionDescriptor is ControllerActionDescriptor controllerActionDescriptor && 39if (context.ActionDescriptor == description.ActionDescriptor)
BasicWebSite (4)
src\Mvc\test\WebSites\Common\TestResponseGenerator.cs (3)
38var attributeRoutingInfo = _actionContext.ActionDescriptor.AttributeRouteInfo; 47action = ((ControllerActionDescriptor)_actionContext.ActionDescriptor).ActionName, 48controller = ((ControllerActionDescriptor)_actionContext.ActionDescriptor).ControllerName,
ValueProviders\CustomValueProviderFactory.cs (1)
21{ "customValueProviderDisplayName", context => context.ActionContext.ActionDescriptor.DisplayName },
FormatterWebSite (2)
ValidateBodyParameterAttribute.cs (2)
17var bodyParameter = context.ActionDescriptor 30ActionName = ((ControllerActionDescriptor)context.ActionDescriptor).ActionName,
GenericHostWebSite (3)
src\Mvc\test\WebSites\Common\TestResponseGenerator.cs (3)
38var attributeRoutingInfo = _actionContext.ActionDescriptor.AttributeRouteInfo; 47action = ((ControllerActionDescriptor)_actionContext.ActionDescriptor).ActionName, 48controller = ((ControllerActionDescriptor)_actionContext.ActionDescriptor).ControllerName,
Identity.ExternalClaims (1)
Pages\Account\Manage\ManageNavPages.cs (1)
33?? System.IO.Path.GetFileNameWithoutExtension(viewContext.ActionDescriptor.DisplayName);
Microsoft.AspNetCore.Identity.UI (4)
Areas\Identity\Pages\V4\Account\Manage\ManageNavPages.cs (2)
117?? Path.GetFileNameWithoutExtension(viewContext.ActionDescriptor.DisplayName); 176?? Path.GetFileNameWithoutExtension(viewContext.ActionDescriptor.DisplayName);
Areas\Identity\Pages\V5\Account\Manage\ManageNavPages.cs (2)
117?? Path.GetFileNameWithoutExtension(viewContext.ActionDescriptor.DisplayName); 176?? Path.GetFileNameWithoutExtension(viewContext.ActionDescriptor.DisplayName);
Microsoft.AspNetCore.Mvc.Abstractions (1)
ActionContext.cs (1)
35actionContext.ActionDescriptor,
Microsoft.AspNetCore.Mvc.Core (40)
ConsumesAttribute.cs (1)
112if (IsApplicable(context.ActionDescriptor))
ControllerContext.cs (2)
38if (context.ActionDescriptor is not ControllerActionDescriptor) 65get { return (ControllerActionDescriptor)base.ActionDescriptor; }
Filters\DefaultFilterProvider.cs (1)
18if (context.ActionContext.ActionDescriptor.FilterDescriptors != null)
Filters\FilterFactory.cs (2)
17var actionDescriptor = actionContext.ActionDescriptor; 70if (actionContext.ActionDescriptor.CachedReusableFilters is { } cached)
Infrastructure\ControllerActionInvokerProvider.cs (1)
64if (context.ActionContext.ActionDescriptor is ControllerActionDescriptor)
Infrastructure\ResourceInvoker.cs (6)
65var scope = _logger.ActionScope(_actionContext.ActionDescriptor); 105actionContext.ActionDescriptor, 109var actionScope = logger.ActionScope(actionContext.ActionDescriptor); 111Log.ExecutingAction(logger, actionContext.ActionDescriptor); 129Log.ExecutedAction(logger, actionContext.ActionDescriptor, stopwatch.GetElapsedTime()); 135actionContext.ActionDescriptor,
MvcCoreDiagnosticListenerExtensions.cs (26)
99authorizationContext.ActionDescriptor, 129authorizationContext.ActionDescriptor, 159authorizationContext.ActionDescriptor, 189authorizationContext.ActionDescriptor, 219resourceExecutingContext.ActionDescriptor, 249resourceExecutedContext.ActionDescriptor, 279resourceExecutingContext.ActionDescriptor, 309resourceExecutingContext.ActionDescriptor, 339resourceExecutedContext.ActionDescriptor, 369resourceExecutedContext.ActionDescriptor, 399exceptionContext.ActionDescriptor, 429exceptionContext.ActionDescriptor, 459exceptionContext.ActionDescriptor, 489exceptionContext.ActionDescriptor, 519actionExecutingContext.ActionDescriptor, 549actionExecutedContext.ActionDescriptor, 579actionExecutingContext.ActionDescriptor, 609actionExecutingContext.ActionDescriptor, 639actionExecutedContext.ActionDescriptor, 669actionExecutedContext.ActionDescriptor, 792resultExecutingContext.ActionDescriptor, 822resultExecutedContext.ActionDescriptor, 852resultExecutingContext.ActionDescriptor, 882resultExecutingContext.ActionDescriptor, 912resultExecutedContext.ActionDescriptor, 942resultExecutedContext.ActionDescriptor,
Routing\NormalizedRouteValue.cs (1)
32var actionDescriptor = context.ActionDescriptor;
Microsoft.AspNetCore.Mvc.Core.Test (5)
Filters\FilterFactoryTest.cs (3)
155var filterDescriptors = actionContext.ActionDescriptor.FilterDescriptors; 186var filterDescriptors = actionContext.ActionDescriptor.FilterDescriptors; 228var filterDescriptors = actionContext.ActionDescriptor.FilterDescriptors;
Filters\FilterProviderTest.cs (1)
142actionContext.ActionDescriptor.FilterDescriptors = new List<FilterDescriptor>(
Filters\MiddlewareFilterTest.cs (1)
404CreateCacheEntry((ControllerActionDescriptor)actionContext.ActionDescriptor, controllerFactory),
Microsoft.AspNetCore.Mvc.Razor (3)
MvcRazorDiagnosticListenerExtensions.cs (2)
36viewContext.ActionDescriptor, 66viewContext.ActionDescriptor,
RazorViewEngine.cs (1)
224if (actionContext.ActionDescriptor.RouteValues.ContainsKey(PageKey))
Microsoft.AspNetCore.Mvc.Razor.Test (1)
RazorViewEngineTest.cs (1)
1893context.ActionDescriptor.RouteValues["page"] = "MyPage";
Microsoft.AspNetCore.Mvc.RazorPages (6)
Filters\PageHandlerExecutedContext.cs (1)
44(CompiledPageActionDescriptor)base.ActionDescriptor;
Filters\PageHandlerExecutingContext.cs (1)
44(CompiledPageActionDescriptor)base.ActionDescriptor;
Filters\PageHandlerSelectedContext.cs (1)
37(CompiledPageActionDescriptor)base.ActionDescriptor;
Infrastructure\PageActionInvokerCache.cs (1)
43var actionDescriptor = (PageActionDescriptor)actionContext.ActionDescriptor;
Infrastructure\PageActionInvokerProvider.cs (1)
67if (actionContext.ActionDescriptor is not PageActionDescriptor page)
Infrastructure\PageViewLocationExpander.cs (1)
16if ((context.ActionContext.ActionDescriptor is PageActionDescriptor) && !string.IsNullOrEmpty(context.PageName))
Microsoft.AspNetCore.Mvc.ViewFeatures (6)
MvcViewFeaturesDiagnosticListenerExtensions.cs (4)
33context.ViewContext.ActionDescriptor, 60context.ViewContext.ActionDescriptor, 87context.ViewContext.ActionDescriptor, 113context.ViewContext.ActionDescriptor,
PartialViewResultExecutor.cs (1)
173var actionDescriptor = context.ActionDescriptor;
ViewResultExecutor.cs (1)
173var actionDescriptor = context.ActionDescriptor;
Microsoft.AspNetCore.Mvc.ViewFeatures.Test (2)
Rendering\ViewContextTests.cs (2)
64Assert.Same(originalContext.ActionDescriptor, context.ActionDescriptor);
Mvc.RoutingWebSite (4)
Controllers\RouteDataController.cs (1)
32context.RouteData.DataTokens.Add("actionName", ((ControllerActionDescriptor)context.ActionDescriptor).ActionName);
src\Mvc\test\WebSites\Common\TestResponseGenerator.cs (3)
38var attributeRoutingInfo = _actionContext.ActionDescriptor.AttributeRouteInfo; 47action = ((ControllerActionDescriptor)_actionContext.ActionDescriptor).ActionName, 48controller = ((ControllerActionDescriptor)_actionContext.ActionDescriptor).ControllerName,
VersioningWebSite (3)
src\Mvc\test\WebSites\Common\TestResponseGenerator.cs (3)
38var attributeRoutingInfo = _actionContext.ActionDescriptor.AttributeRouteInfo; 47action = ((ControllerActionDescriptor)_actionContext.ActionDescriptor).ActionName, 48controller = ((ControllerActionDescriptor)_actionContext.ActionDescriptor).ControllerName,