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