2 interfaces inheriting from IResultFilter
Microsoft.AspNetCore.Mvc.Abstractions (1)
Filters\IAlwaysRunResultFilter.cs (1)
21public interface IAlwaysRunResultFilter : IResultFilter
Microsoft.AspNetCore.Mvc.Core.Test (1)
MvcCoreLoggerExtensionsTest.cs (1)
491public interface IOrderedResultFilter : IResultFilter, IAsyncResultFilter, IOrderedFilter { }
7 implementations of IResultFilter
Microsoft.AspNetCore.Mvc.Core (4)
Filters\ActionFilterAttribute.cs (1)
15Attribute, IActionFilter, IAsyncActionFilter, IResultFilter, IAsyncResultFilter, IOrderedFilter
Filters\ResultFilterAttribute.cs (1)
12public abstract class ResultFilterAttribute : Attribute, IResultFilter, IAsyncResultFilter, IOrderedFilter
Formatters\FormatFilter.cs (1)
17public partial class FormatFilter : IFormatFilter, IResourceFilter, IResultFilter
ProducesAttribute.cs (1)
19public class ProducesAttribute : Attribute, IResultFilter, IOrderedFilter, IApiResponseMetadataProvider
Microsoft.AspNetCore.Mvc.Core.Test (1)
ApplicationModels\DefaultApplicationModelProviderTest.cs (1)
1793public class SomeFiltersController : IAsyncActionFilter, IResultFilter
Microsoft.AspNetCore.Mvc.ViewFeatures (1)
Filters\SaveTempDataFilter.cs (1)
12internal sealed class SaveTempDataFilter : IResourceFilter, IResultFilter
RazorPagesWebSite (1)
ModelAsFilter.cs (1)
10public class ModelAsFilter : PageModel, IResultFilter
114 references to IResultFilter
Microsoft.AspNetCore.Mvc.Abstractions (15)
Filters\IAlwaysRunResultFilter.cs (3)
11/// The <see cref="IAlwaysRunResultFilter"/> interface declares an <see cref="IResultFilter"/> implementation 15/// <see cref="IResultFilter"/> and <see cref="IAsyncResultFilter"/> instances are not executed in cases where 17/// <see cref="IResultFilter"/> and <see cref="IAsyncResultFilter"/> implementations
Filters\IAsyncAlwaysRunResultFilter.cs (2)
15/// <see cref="IResultFilter"/> and <see cref="IAsyncResultFilter"/> instances are not executed in cases where 17/// <see cref="IResultFilter"/> and <see cref="IAsyncResultFilter"/> implementations
Filters\IAsyncResultFilter.cs (4)
11/// <see cref="IResultFilter"/> and <see cref="IAsyncResultFilter"/> implementations are executed around the action 15/// <see cref="IResultFilter"/> and <see cref="IAsyncResultFilter"/> instances are not executed in cases where 17/// <see cref="IResultFilter"/>. <see cref="IResultFilter"/> and <see cref="IAsyncResultFilter"/> implementations
Filters\IResultFilter.cs (4)
11/// <see cref="IResultFilter"/> and <see cref="IAsyncResultFilter"/> implementations are executed around the action 15/// <see cref="IResultFilter"/> and <see cref="IAsyncResultFilter"/> instances are not executed in cases where 17/// <see cref="IResultFilter"/>. <see cref="IResultFilter"/> and <see cref="IAsyncResultFilter"/> implementations
Filters\ResultExecutedContext.cs (1)
9/// A context for result filters, specifically <see cref="IResultFilter.OnResultExecuted"/> calls.
Filters\ResultExecutingContext.cs (1)
7/// A context for result filters, specifically <see cref="IResultFilter.OnResultExecuting"/> and
Microsoft.AspNetCore.Mvc.Core (25)
ApplicationModels\DefaultApplicationModelProvider.cs (1)
197typeof(IResultFilter).GetTypeInfo().IsAssignableFrom(typeInfo))
Diagnostics\MvcDiagnostics.cs (4)
1142/// An <see cref="EventData"/> that occurs before <see cref="IResultFilter.OnResultExecuting(ResultExecutingContext)"/>. 1193/// An <see cref="EventData"/> that occurs after <see cref="IResultFilter.OnResultExecuting(ResultExecutingContext)"/>. 1244/// An <see cref="EventData"/> that occurs before <see cref="IResultFilter.OnResultExecuted(ResultExecutedContext)"/>. 1295/// An <see cref="EventData"/> that occurs after <see cref="IResultFilter.OnResultExecuted(ResultExecutedContext)"/>.
Filters\ControllerResultFilter.cs (2)
37else if (controller is IResultFilter resultFilter) 50IResultFilter resultFilter)
Infrastructure\ResourceInvoker.cs (9)
1094var lastTask = ResultNext<IResultFilter, IAsyncResultFilter>(ref next, ref scope, ref state, ref isCompleted); 1116await invoker.ResultNext<IResultFilter, IAsyncResultFilter>(ref next, ref scope, ref state, ref isCompleted); 1122where TFilter : class, IResultFilter 1234nameof(IResultFilter.OnResultExecuting), 1242nameof(IResultFilter.OnResultExecuting), 1284nameof(IResultFilter.OnResultExecuted), 1292nameof(IResultFilter.OnResultExecuted), 1347where TFilter : class, IResultFilter 1401where TFilter : class, IResultFilter
MvcCoreDiagnosticListenerExtensions.cs (8)
832IResultFilter filter) 845private static void BeforeOnResultExecutingImpl(DiagnosticListener diagnosticListener, ResultExecutingContext resultExecutingContext, IResultFilter filter) 862IResultFilter filter) 875private static void AfterOnResultExecutingImpl(DiagnosticListener diagnosticListener, ResultExecutingContext resultExecutingContext, IResultFilter filter) 892IResultFilter filter) 905private static void BeforeOnResultExecutedImpl(DiagnosticListener diagnosticListener, ResultExecutedContext resultExecutedContext, IResultFilter filter) 922IResultFilter filter) 935private static void AfterOnResultExecutedImpl(DiagnosticListener diagnosticListener, ResultExecutedContext resultExecutedContext, IResultFilter filter)
MvcCoreLoggerExtensions.cs (1)
76var resultFilters = filters.Where(f => f is IResultFilter || f is IAsyncResultFilter);
Microsoft.AspNetCore.Mvc.Core.Test (17)
Infrastructure\ControllerActionInvokerTest.cs (5)
344var resultFilter = new Mock<IResultFilter>(MockBehavior.Strict); 406var resultFilter1 = new Mock<IResultFilter>(MockBehavior.Strict); 409var resultFilter2 = new Mock<IResultFilter>(MockBehavior.Strict); 468var resultFilter = new Mock<IResultFilter>(MockBehavior.Strict); 668var resultFilter = new Mock<IResultFilter>(MockBehavior.Strict);
MvcCoreLoggerExtensionsTest.cs (12)
134var resultFilter = Mock.Of<IResultFilter>(); 179var resultFilter = Mock.Of<IResultFilter>(); 222var resultFilter = Mock.Of<IResultFilter>(); 271var resultFilter = Mock.Of<IResultFilter>(); 317var resultFilter = Mock.Of<IResultFilter>(); 363var resultFilter = Mock.Of<IResultFilter>();
Microsoft.AspNetCore.Mvc.Core.TestCommon (43)
CommonFilterTest.cs (12)
93mock.As<IResultFilter>() 97mock.As<IResultFilter>() 110mock.As<IResultFilter>() 113mock.As<IResultFilter>() 127mock.As<IResultFilter>() 135mock.As<IResultFilter>() 148mock.As<IResultFilter>() 151mock.As<IResultFilter>() 165mock.As<IResultFilter>() 173mock.As<IResultFilter>() 186mock.As<IResultFilter>() 189mock.As<IResultFilter>()
CommonResourceInvokerTest.cs (31)
212var resultFilter = new Mock<IResultFilter>(MockBehavior.Strict); 278var resultFilter = new Mock<IResultFilter>(MockBehavior.Strict); 347var resultFilter = new Mock<IResultFilter>(MockBehavior.Strict); 415var resultFilter = new Mock<IResultFilter>(MockBehavior.Strict); 458var resultFilter = new Mock<IResultFilter>(MockBehavior.Strict); 507var resultFilter = new Mock<IResultFilter>(MockBehavior.Strict); 541var resultFilter = new Mock<IResultFilter>(MockBehavior.Strict); 561var resultFilter = new Mock<IResultFilter>(); 712var resultFilter = new Mock<IResultFilter>(MockBehavior.Strict); 748var resultFilter = new Mock<IResultFilter>(MockBehavior.Strict); 764var filter = new Mock<IResultFilter>(MockBehavior.Strict); 805var filter1 = new Mock<IResultFilter>(MockBehavior.Strict); 812var filter2 = new Mock<IResultFilter>(MockBehavior.Strict); 822var filter3 = new Mock<IResultFilter>(MockBehavior.Strict); 845var filter1 = new Mock<IResultFilter>(MockBehavior.Strict); 863var filter3 = new Mock<IResultFilter>(MockBehavior.Strict); 888var filter1 = new Mock<IResultFilter>(MockBehavior.Strict); 905var filter3 = new Mock<IResultFilter>(MockBehavior.Strict); 964var filter = new Mock<IResultFilter>(MockBehavior.Strict); 997var filter = new Mock<IResultFilter>(MockBehavior.Strict); 1079var resultFilter1 = new Mock<IResultFilter>(MockBehavior.Strict); 1093var resultFilter2 = new Mock<IResultFilter>(MockBehavior.Strict); 1099var resultFilter3 = new Mock<IResultFilter>(MockBehavior.Strict); 1135var resultFilter2 = new Mock<IResultFilter>(MockBehavior.Strict); 1141var resultFilter3 = new Mock<IResultFilter>(MockBehavior.Strict); 1291var resultFilter = new Mock<IResultFilter>(MockBehavior.Loose); 1358var resultFilter = new Mock<IResultFilter>(MockBehavior.Loose); 1795var resultFilter1 = new Mock<IResultFilter>(MockBehavior.Strict); 1895var resultFilter1 = new Mock<IResultFilter>(MockBehavior.Strict); 1992var resultFilter1 = new Mock<IResultFilter>(MockBehavior.Strict); 2034var resultFilter1 = new Mock<IResultFilter>(MockBehavior.Strict);
Microsoft.AspNetCore.Mvc.RazorPages (3)
ApplicationModels\DefaultPageApplicationModelProvider.cs (1)
171typeof(IResultFilter).IsAssignableFrom(pageModel.HandlerType))
Filters\PageHandlerResultFIlter.cs (2)
32else if (handler is IResultFilter resultFilter) 45IResultFilter resultFilter)
Microsoft.AspNetCore.Mvc.RazorPages.Test (11)
Filters\PageHandlerResultFilterTest.cs (2)
63var modelAsFilter = model.As<IResultFilter>(); 104var modelAsFilter = model.As<IResultFilter>();
Infrastructure\PageActionInvokerTest.cs (9)
175var resultFilter = new Mock<IResultFilter>(MockBehavior.Strict); 231var resultFilter = new Mock<IResultFilter>(MockBehavior.Strict); 288var resultFilter = new Mock<IResultFilter>(MockBehavior.Strict); 730var filter = new Mock<IResultFilter>(); 858var resultFilter = new Mock<IResultFilter>(MockBehavior.Strict); 923var resultFilter1 = new Mock<IResultFilter>(MockBehavior.Strict); 926var resultFilter2 = new Mock<IResultFilter>(MockBehavior.Strict); 988var resultFilter = new Mock<IResultFilter>(MockBehavior.Strict); 1196var resultFilter = new Mock<IResultFilter>(MockBehavior.Strict);