2 interfaces inheriting from IResourceFilter
Microsoft.AspNetCore.Mvc.Core.Test (2)
ConsumesAttributeTests.cs (1)
429
internal interface ITestActionConsumeConstraint : IConsumesActionConstraint,
IResourceFilter
MvcCoreLoggerExtensionsTest.cs (1)
485
public interface IOrderedResourceFilter :
IResourceFilter
, IAsyncResourceFilter, IOrderedFilter { }
7 implementations of IResourceFilter
ApiExplorerWebSite (1)
ApiExplorerDataFilter.cs (1)
17
public class ApiExplorerDataFilter :
IResourceFilter
BasicWebSite (1)
Filters\TraceResourceFilter.cs (1)
8
public class TraceResourceFilter :
IResourceFilter
Microsoft.AspNetCore.Mvc.Core (2)
ConsumesAttribute.cs (1)
23
IResourceFilter
,
Formatters\FormatFilter.cs (1)
17
public partial class FormatFilter : IFormatFilter,
IResourceFilter
, IResultFilter
Microsoft.AspNetCore.Mvc.ViewFeatures (2)
Filters\SaveTempDataFilter.cs (1)
12
internal sealed class SaveTempDataFilter :
IResourceFilter
, IResultFilter
SkipStatusCodePagesAttribute.cs (1)
14
public class SkipStatusCodePagesAttribute : Attribute,
IResourceFilter
, ISkipStatusCodePagesMetadata
RazorPagesWebSite (1)
Pages\Filters\TestPageModelFilter.cs (1)
8
public 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)
435
var current = _cursor.GetNextFilter<
IResourceFilter
, IAsyncResourceFilter>();
533
var
filter = (
IResourceFilter
)state;
539
nameof(
IResourceFilter
.OnResourceExecuting),
547
nameof(
IResourceFilter
.OnResourceExecuting),
577
var
filter = (
IResourceFilter
)state;
583
nameof(
IResourceFilter
.OnResourceExecuted),
591
nameof(
IResourceFilter
.OnResourceExecuted),
MvcCoreDiagnosticListenerExtensions.cs (8)
259
IResourceFilter
filter)
272
private static void BeforeOnResourceExecutingImpl(DiagnosticListener diagnosticListener, ResourceExecutingContext resourceExecutingContext,
IResourceFilter
filter)
289
IResourceFilter
filter)
302
private static void AfterOnResourceExecutingImpl(DiagnosticListener diagnosticListener, ResourceExecutingContext resourceExecutingContext,
IResourceFilter
filter)
319
IResourceFilter
filter)
332
private static void BeforeOnResourceExecutedImpl(DiagnosticListener diagnosticListener, ResourceExecutedContext resourceExecutedContext,
IResourceFilter
filter)
349
IResourceFilter
filter)
362
private static void AfterOnResourceExecutedImpl(DiagnosticListener diagnosticListener, ResourceExecutedContext resourceExecutedContext,
IResourceFilter
filter)
MvcCoreLoggerExtensions.cs (1)
43
var resourceFilters = filters.Where(f => f is
IResourceFilter
|| f is IAsyncResourceFilter);
Microsoft.AspNetCore.Mvc.Core.Test (14)
Infrastructure\ControllerActionInvokerTest.cs (2)
203
var resourceFilter = new Mock<
IResourceFilter
>();
232
var resourceFilter = new Mock<
IResourceFilter
>();
MvcCoreLoggerExtensionsTest.cs (12)
136
var
resourceFilter = Mock.Of<
IResourceFilter
>();
181
var
resourceFilter = Mock.Of<
IResourceFilter
>();
224
var
resourceFilter = Mock.Of<
IResourceFilter
>();
273
var
resourceFilter = Mock.Of<
IResourceFilter
>();
319
var
resourceFilter = Mock.Of<
IResourceFilter
>();
365
var
resourceFilter = Mock.Of<
IResourceFilter
>();
Microsoft.AspNetCore.Mvc.Core.TestCommon (7)
CommonResourceInvokerTest.cs (7)
711
var resourceFilter = new Mock<
IResourceFilter
>(MockBehavior.Strict);
1186
var resourceFilter = new Mock<
IResourceFilter
>(MockBehavior.Strict);
1462
var resourceFilter2 = new Mock<
IResourceFilter
>(MockBehavior.Strict);
1498
var resourceFilter2 = new Mock<
IResourceFilter
>(MockBehavior.Loose);
1639
var resourceFilter2 = new Mock<
IResourceFilter
>(MockBehavior.Strict);
1877
var resourceFilter = new Mock<
IResourceFilter
>(MockBehavior.Strict);
1906
var resourceFilter = new Mock<
IResourceFilter
>(MockBehavior.Strict);
Microsoft.AspNetCore.Mvc.RazorPages.Test (3)
Infrastructure\PageActionInvokerTest.cs (3)
89
var resourceFilter = new Mock<
IResourceFilter
>();
120
var resourceFilter = new Mock<
IResourceFilter
>();
661
var filter = new Mock<
IResourceFilter
>(MockBehavior.Strict);