1 interface inheriting from IActionFilter
Microsoft.AspNetCore.Mvc.Core.Test (1)
MvcCoreLoggerExtensionsTest.cs (1)
487public interface IOrderedActionFilter : IActionFilter, IAsyncActionFilter, IOrderedFilter { }
11 implementations of IActionFilter
BasicWebSite (2)
Filters\ServiceActionFilter.cs (1)
8public class ServiceActionFilter : IActionFilter
RequestScopedFilter.cs (1)
9public class RequestScopedFilter : IActionFilter
Microsoft.AspNetCore.Mvc.Core (5)
Filters\ActionFilterAttribute.cs (1)
15Attribute, IActionFilter, IAsyncActionFilter, IResultFilter, IAsyncResultFilter, IOrderedFilter
Filters\OutputCacheFilter.cs (1)
13internal partial class OutputCacheFilter : IActionFilter
Filters\ResponseCacheFilter.cs (1)
11internal sealed partial class ResponseCacheFilter : IActionFilter, IResponseCacheFilter
Infrastructure\ModelStateInvalidFilter.cs (1)
17public partial class ModelStateInvalidFilter : IActionFilter, IOrderedFilter
ModelBinding\UnsupportedContentTypeFilter.cs (1)
16public class UnsupportedContentTypeFilter : IActionFilter, IOrderedFilter
Microsoft.AspNetCore.Mvc.Core.Test (1)
ApplicationModels\DefaultApplicationModelProviderTest.cs (1)
1742private class StoreController : Controller, IActionFilter
Microsoft.AspNetCore.Mvc.ViewFeatures (3)
Controller.cs (1)
17public abstract class Controller : ControllerBase, IActionFilter, IAsyncActionFilter, IDisposable
Filters\ControllerSaveTempDataPropertyFilter.cs (1)
8internal sealed class ControllerSaveTempDataPropertyFilter : SaveTempDataPropertyFilterBase, IActionFilter
Filters\ControllerViewDataAttributeFilter.cs (1)
8internal sealed class ControllerViewDataAttributeFilter : IActionFilter, IViewDataValuesProviderFeature
93 references to IActionFilter
Microsoft.AspNetCore.Mvc.Abstractions (5)
Filters\ActionExecutedContext.cs (1)
9/// A context for action filters, specifically <see cref="IActionFilter.OnActionExecuted"/> calls.
Filters\ActionExecutingContext.cs (1)
9/// A context for action filters, specifically <see cref="IActionFilter.OnActionExecuting"/> and
Filters\IOrderedFilter.cs (3)
26/// Synchronous filters, such as <see cref="IActionFilter"/>, have a before-method, such as 27/// <see cref="IActionFilter.OnActionExecuting"/>, and an after-method, such as 28/// <see cref="IActionFilter.OnActionExecuted"/>. A synchronous filter with a lower numeric <see cref="Order"/>
Microsoft.AspNetCore.Mvc.Core (30)
ApplicationModels\DefaultApplicationModelProvider.cs (1)
192typeof(IActionFilter).GetTypeInfo().IsAssignableFrom(typeInfo))
Diagnostics\MvcDiagnostics.cs (6)
624/// An <see cref="EventData"/> that occurs before <see cref="IActionFilter"/> execution. 675/// An <see cref="EventData"/> that occurs after <see cref="IActionFilter"/> execution. 726/// An <see cref="EventData"/> that occurs before <see cref="IActionFilter.OnActionExecuting(ActionExecutingContext)"/>. 777/// An <see cref="EventData"/> that occurs after <see cref="IActionFilter.OnActionExecuting(ActionExecutingContext)"/>. 828/// An <see cref="EventData"/> that occurs before <see cref="IActionFilter.OnActionExecuted(ActionExecutedContext)"/>. 879/// An <see cref="EventData"/> that occurs after <see cref="IActionFilter.OnActionExecuted(ActionExecutedContext)"/>.
Filters\ControllerActionFilter.cs (2)
37else if (controller is IActionFilter actionFilter) 50IActionFilter actionFilter)
Filters\OutputCacheFilter.cs (1)
11/// An <see cref="IActionFilter"/> which sets the appropriate headers related to output caching.
Filters\ResponseCacheFilter.cs (1)
9/// An <see cref="IActionFilter"/> which sets the appropriate headers related to response caching.
Infrastructure\ControllerActionInvoker.cs (9)
87var current = _cursor.GetNextFilter<IActionFilter, IAsyncActionFilter>(); 174var filter = (IActionFilter)state; 180nameof(IActionFilter.OnActionExecuting), 188nameof(IActionFilter.OnActionExecuting), 224var filter = (IActionFilter)state; 230nameof(IActionFilter.OnActionExecuted), 238nameof(IActionFilter.OnActionExecuted),
Infrastructure\ModelStateInvalidFilter.cs (1)
13/// A <see cref="IActionFilter"/> that responds to invalid <see cref="ActionContext.ModelState"/>. This filter is
MvcCoreDiagnosticListenerExtensions.cs (8)
559IActionFilter filter) 572private static void BeforeOnActionExecutingImpl(DiagnosticListener diagnosticListener, ActionExecutingContext actionExecutingContext, IActionFilter filter) 589IActionFilter filter) 602private static void AfterOnActionExecutingImpl(DiagnosticListener diagnosticListener, ActionExecutingContext actionExecutingContext, IActionFilter filter) 619IActionFilter filter) 632private static void BeforeOnActionExecutedImpl(DiagnosticListener diagnosticListener, ActionExecutedContext actionExecutedContext, IActionFilter filter) 649IActionFilter filter) 662private static void AfterOnActionExecutedImpl(DiagnosticListener diagnosticListener, ActionExecutedContext actionExecutedContext, IActionFilter filter)
MvcCoreLoggerExtensions.cs (1)
54var actionFilters = filters.Where(f => f is IActionFilter || f is IAsyncActionFilter);
Microsoft.AspNetCore.Mvc.Core.Test (51)
Infrastructure\ControllerActionInvokerTest.cs (39)
269var filter = new Mock<IActionFilter>(MockBehavior.Strict); 329var actionFilter1 = new Mock<IActionFilter>(MockBehavior.Strict); 336var actionFilter2 = new Mock<IActionFilter>(MockBehavior.Strict); 342var actionFilter3 = new Mock<IActionFilter>(MockBehavior.Strict); 386var actionFilter1 = new Mock<IActionFilter>(MockBehavior.Strict); 404var actionFilter3 = new Mock<IActionFilter>(MockBehavior.Strict); 449var actionFilter1 = new Mock<IActionFilter>(MockBehavior.Strict); 466var actionFilter3 = new Mock<IActionFilter>(MockBehavior.Strict); 531var filter = new Mock<IActionFilter>(MockBehavior.Strict); 565var filter1 = new Mock<IActionFilter>(MockBehavior.Strict); 579var filter2 = new Mock<IActionFilter>(MockBehavior.Strict); 621var filter2 = new Mock<IActionFilter>(MockBehavior.Strict); 654var actionFilter = new Mock<IActionFilter>(MockBehavior.Strict); 705var actionFilter = new Mock<IActionFilter>(MockBehavior.Strict); 743var actionFilter = new Mock<IActionFilter>(MockBehavior.Strict); 861var filter = new Mock<IActionFilter>(MockBehavior.Strict); 886var filter = new Mock<IActionFilter>(MockBehavior.Strict); 912var filter = new Mock<IActionFilter>(MockBehavior.Strict); 935var filter = new Mock<IActionFilter>(MockBehavior.Strict); 958var filter = new Mock<IActionFilter>(MockBehavior.Strict); 981var filter = new Mock<IActionFilter>(MockBehavior.Strict); 1005var filter = new Mock<IActionFilter>(MockBehavior.Strict); 1028var filter = new Mock<IActionFilter>(MockBehavior.Strict); 1055var filter = new Mock<IActionFilter>(MockBehavior.Strict); 1081var filter = new Mock<IActionFilter>(MockBehavior.Strict); 1108var filter = new Mock<IActionFilter>(MockBehavior.Strict); 1137var filter = new Mock<IActionFilter>(MockBehavior.Strict); 1165var filter = new Mock<IActionFilter>(MockBehavior.Strict); 1195var filter = new Mock<IActionFilter>(MockBehavior.Strict); 1218var filter = new Mock<IActionFilter>(MockBehavior.Strict); 1244var filter = new Mock<IActionFilter>(MockBehavior.Strict); 1274var filter = new Mock<IActionFilter>(MockBehavior.Strict); 1304var filter = new Mock<IActionFilter>(MockBehavior.Strict); 1333var filter = new Mock<IActionFilter>(MockBehavior.Strict); 1361var filter = new Mock<IActionFilter>(MockBehavior.Strict); 1456var filter = new Mock<IActionFilter>(MockBehavior.Strict); 1481var filter = new Mock<IActionFilter>(MockBehavior.Strict); 1505var filter = new Mock<IActionFilter>(MockBehavior.Strict); 1529var filter = new Mock<IActionFilter>(MockBehavior.Strict);
MvcCoreLoggerExtensionsTest.cs (12)
130var actionFilter = Mock.Of<IActionFilter>(); 175var actionFilter = Mock.Of<IActionFilter>(); 218var actionFilter = Mock.Of<IActionFilter>(); 264var actionFilter = Mock.Of<IActionFilter>(); 310var actionFilter = Mock.Of<IActionFilter>(); 356var actionFilter = Mock.Of<IActionFilter>();
Microsoft.AspNetCore.Mvc.Core.TestCommon (7)
CommonFilterTest.cs (7)
24mock.As<IActionFilter>() 28mock.As<IActionFilter>() 41mock.As<IActionFilter>() 44mock.As<IActionFilter>() 58mock.As<IActionFilter>() 66mock.As<IActionFilter>() 79mock.As<IActionFilter>()