2 interfaces inheriting from IResourceFilter
Microsoft.AspNetCore.Mvc.Core.Test (2)
ConsumesAttributeTests.cs (1)
429internal interface ITestActionConsumeConstraint : IConsumesActionConstraint, IResourceFilter
MvcCoreLoggerExtensionsTest.cs (1)
485public interface IOrderedResourceFilter : IResourceFilter, IAsyncResourceFilter, IOrderedFilter { }
7 implementations of IResourceFilter
ApiExplorerWebSite (1)
ApiExplorerDataFilter.cs (1)
17public class ApiExplorerDataFilter : IResourceFilter
BasicWebSite (1)
Filters\TraceResourceFilter.cs (1)
8public class TraceResourceFilter : IResourceFilter
Microsoft.AspNetCore.Mvc.Core (2)
ConsumesAttribute.cs (1)
23IResourceFilter,
Formatters\FormatFilter.cs (1)
17public partial class FormatFilter : IFormatFilter, IResourceFilter, IResultFilter
Microsoft.AspNetCore.Mvc.ViewFeatures (2)
Filters\SaveTempDataFilter.cs (1)
12internal sealed class SaveTempDataFilter : IResourceFilter, IResultFilter
SkipStatusCodePagesAttribute.cs (1)
14public class SkipStatusCodePagesAttribute : Attribute, IResourceFilter, ISkipStatusCodePagesMetadata
RazorPagesWebSite (1)
Pages\Filters\TestPageModelFilter.cs (1)
8public class TestPageModelFilter : Attribute, IResourceFilter
51 references to IResourceFilter
Microsoft.AspNetCore.Mvc.Abstractions (2)
Filters\ResourceExecutedContext.cs (1)
9/// A context for resource filters, specifically <see cref="IResourceFilter.OnResourceExecuted"/> calls.
Filters\ResourceExecutingContext.cs (1)
9/// A context for resource filters, specifically <see cref="IResourceFilter.OnResourceExecuting"/> and
Microsoft.AspNetCore.Mvc.Core (25)
Diagnostics\MvcDiagnostics.cs (6)
216/// An <see cref="EventData"/> that occurs before <see cref="IResourceFilter"/> execution. 267/// An <see cref="EventData"/> that occurs after <see cref="IResourceFilter"/> execution. 318/// An <see cref="EventData"/> that occurs before <see cref="IResourceFilter.OnResourceExecuting(ResourceExecutingContext)"/>. 369/// An <see cref="EventData"/> that occurs after <see cref="IResourceFilter.OnResourceExecuting(ResourceExecutingContext)"/>. 420/// An <see cref="EventData"/> that occurs before <see cref="IResourceFilter.OnResourceExecuted(ResourceExecutedContext)"/>. 471/// An <see cref="EventData"/> that occurs after <see cref="IResourceFilter.OnResourceExecuted(ResourceExecutedContext)"/>.
Formatters\FormatFilter.cs (1)
56/// As a <see cref="IResourceFilter"/>, this filter looks at the request and rejects it before going ahead if
Infrastructure\ResourceInvoker.cs (9)
435var current = _cursor.GetNextFilter<IResourceFilter, IAsyncResourceFilter>(); 533var filter = (IResourceFilter)state; 539nameof(IResourceFilter.OnResourceExecuting), 547nameof(IResourceFilter.OnResourceExecuting), 577var filter = (IResourceFilter)state; 583nameof(IResourceFilter.OnResourceExecuted), 591nameof(IResourceFilter.OnResourceExecuted),
MvcCoreDiagnosticListenerExtensions.cs (8)
259IResourceFilter filter) 272private static void BeforeOnResourceExecutingImpl(DiagnosticListener diagnosticListener, ResourceExecutingContext resourceExecutingContext, IResourceFilter filter) 289IResourceFilter filter) 302private static void AfterOnResourceExecutingImpl(DiagnosticListener diagnosticListener, ResourceExecutingContext resourceExecutingContext, IResourceFilter filter) 319IResourceFilter filter) 332private static void BeforeOnResourceExecutedImpl(DiagnosticListener diagnosticListener, ResourceExecutedContext resourceExecutedContext, IResourceFilter filter) 349IResourceFilter filter) 362private static void AfterOnResourceExecutedImpl(DiagnosticListener diagnosticListener, ResourceExecutedContext resourceExecutedContext, IResourceFilter filter)
MvcCoreLoggerExtensions.cs (1)
43var resourceFilters = filters.Where(f => f is IResourceFilter || f is IAsyncResourceFilter);
Microsoft.AspNetCore.Mvc.Core.Test (14)
Infrastructure\ControllerActionInvokerTest.cs (2)
203var resourceFilter = new Mock<IResourceFilter>(); 232var resourceFilter = new Mock<IResourceFilter>();
MvcCoreLoggerExtensionsTest.cs (12)
136var resourceFilter = Mock.Of<IResourceFilter>(); 181var resourceFilter = Mock.Of<IResourceFilter>(); 224var resourceFilter = Mock.Of<IResourceFilter>(); 273var resourceFilter = Mock.Of<IResourceFilter>(); 319var resourceFilter = Mock.Of<IResourceFilter>(); 365var resourceFilter = Mock.Of<IResourceFilter>();
Microsoft.AspNetCore.Mvc.Core.TestCommon (7)
CommonResourceInvokerTest.cs (7)
711var resourceFilter = new Mock<IResourceFilter>(MockBehavior.Strict); 1186var resourceFilter = new Mock<IResourceFilter>(MockBehavior.Strict); 1462var resourceFilter2 = new Mock<IResourceFilter>(MockBehavior.Strict); 1498var resourceFilter2 = new Mock<IResourceFilter>(MockBehavior.Loose); 1639var resourceFilter2 = new Mock<IResourceFilter>(MockBehavior.Strict); 1877var resourceFilter = new Mock<IResourceFilter>(MockBehavior.Strict); 1906var resourceFilter = new Mock<IResourceFilter>(MockBehavior.Strict);
Microsoft.AspNetCore.Mvc.RazorPages.Test (3)
Infrastructure\PageActionInvokerTest.cs (3)
89var resourceFilter = new Mock<IResourceFilter>(); 120var resourceFilter = new Mock<IResourceFilter>(); 661var filter = new Mock<IResourceFilter>(MockBehavior.Strict);