1 interface inheriting from IAsyncActionFilter
Microsoft.AspNetCore.Mvc.Core.Test (1)
MvcCoreLoggerExtensionsTest.cs (1)
487public interface IOrderedActionFilter : IActionFilter, IAsyncActionFilter, IOrderedFilter { }
4 implementations of IAsyncActionFilter
Microsoft.AspNetCore.Mvc.Core (2)
Filters\ActionFilterAttribute.cs (1)
15Attribute, IActionFilter, IAsyncActionFilter, IResultFilter, IAsyncResultFilter, IOrderedFilter
Filters\ControllerActionFilter.cs (1)
11internal sealed class ControllerActionFilter : IAsyncActionFilter, IOrderedFilter
Microsoft.AspNetCore.Mvc.Core.Test (1)
ApplicationModels\DefaultApplicationModelProviderTest.cs (1)
1793public class SomeFiltersController : IAsyncActionFilter, IResultFilter
Microsoft.AspNetCore.Mvc.ViewFeatures (1)
Controller.cs (1)
17public abstract class Controller : ControllerBase, IActionFilter, IAsyncActionFilter, IDisposable
41 references to IAsyncActionFilter
Microsoft.AspNetCore.Mvc.Abstractions (3)
Filters\ActionExecutingContext.cs (1)
10/// <see cref="IAsyncActionFilter.OnActionExecutionAsync"/> calls.
Filters\IOrderedFilter.cs (2)
20/// Asynchronous filters, such as <see cref="IAsyncActionFilter"/>, surround the execution of subsequent 22/// value will have its filter method, such as <see cref="IAsyncActionFilter.OnActionExecutionAsync"/>,
Microsoft.AspNetCore.Mvc.Core (15)
ApplicationModels\DefaultApplicationModelProvider.cs (1)
191if (typeof(IAsyncActionFilter).GetTypeInfo().IsAssignableFrom(typeInfo) ||
Filters\ControllerActionFilter.cs (1)
33if (controller is IAsyncActionFilter asyncActionFilter)
Infrastructure\ControllerActionInvoker.cs (8)
87var current = _cursor.GetNextFilter<IActionFilter, IAsyncActionFilter>(); 119var filter = (IAsyncActionFilter)state; 125nameof(IAsyncActionFilter.OnActionExecutionAsync), 143var filter = (IAsyncActionFilter)state; 163nameof(IAsyncActionFilter.OnActionExecutionAsync), 369typeof(IAsyncActionFilter).Name,
MvcCoreDiagnosticListenerExtensions.cs (4)
499IAsyncActionFilter filter) 512private static void BeforeOnActionExecutionImpl(DiagnosticListener diagnosticListener, ActionExecutingContext actionExecutingContext, IAsyncActionFilter filter) 529IAsyncActionFilter filter) 542private static void AfterOnActionExecutionImpl(DiagnosticListener diagnosticListener, ActionExecutedContext actionExecutedContext, IAsyncActionFilter filter)
MvcCoreLoggerExtensions.cs (1)
54var actionFilters = filters.Where(f => f is IActionFilter || f is IAsyncActionFilter);
Microsoft.AspNetCore.Mvc.Core.Test (19)
Infrastructure\ControllerActionInvokerTest.cs (7)
294var filter = new Mock<IAsyncActionFilter>(MockBehavior.Strict); 393var actionFilter2 = new Mock<IAsyncActionFilter>(MockBehavior.Strict); 456var actionFilter2 = new Mock<IAsyncActionFilter>(MockBehavior.Strict); 502var actionFilter = new Mock<IAsyncActionFilter>(MockBehavior.Strict); 608var filter1 = new Mock<IAsyncActionFilter>(MockBehavior.Strict); 818var actionFilter1 = new Mock<IAsyncActionFilter>(MockBehavior.Strict); 826var actionFilter2 = new Mock<IAsyncActionFilter>(MockBehavior.Strict);
MvcCoreLoggerExtensionsTest.cs (12)
131var asyncActionFilter = Mock.Of<IAsyncActionFilter>(); 176var asyncActionFilter = Mock.Of<IAsyncActionFilter>(); 219var asyncActionFilter = Mock.Of<IAsyncActionFilter>(); 265var asyncActionFilter = Mock.Of<IAsyncActionFilter>(); 311var asyncActionFilter = Mock.Of<IAsyncActionFilter>(); 357var asyncActionFilter = Mock.Of<IAsyncActionFilter>();
Microsoft.AspNetCore.Mvc.Core.TestCommon (4)
CommonFilterTest.cs (4)
18mock.As<IAsyncActionFilter>() 36await mock.As<IAsyncActionFilter>().Object.OnActionExecutionAsync(context, next); 52mock.As<IAsyncActionFilter>() 74await mock.As<IAsyncActionFilter>().Object.OnActionExecutionAsync(context, next);