2 interfaces inheriting from IAsyncResultFilter
Microsoft.AspNetCore.Mvc.Abstractions (1)
Filters\IAsyncAlwaysRunResultFilter.cs (1)
21
public interface IAsyncAlwaysRunResultFilter :
IAsyncResultFilter
Microsoft.AspNetCore.Mvc.Core.Test (1)
MvcCoreLoggerExtensionsTest.cs (1)
491
public interface IOrderedResultFilter : IResultFilter,
IAsyncResultFilter
, IOrderedFilter { }
4 implementations of IAsyncResultFilter
Microsoft.AspNetCore.Mvc.Core (3)
Filters\ActionFilterAttribute.cs (1)
15
Attribute, IActionFilter, IAsyncActionFilter, IResultFilter,
IAsyncResultFilter
, IOrderedFilter
Filters\ControllerResultFilter.cs (1)
11
internal sealed class ControllerResultFilter :
IAsyncResultFilter
, IOrderedFilter
Filters\ResultFilterAttribute.cs (1)
12
public abstract class ResultFilterAttribute : Attribute, IResultFilter,
IAsyncResultFilter
, IOrderedFilter
Microsoft.AspNetCore.Mvc.RazorPages (1)
Filters\PageHandlerResultFIlter.cs (1)
8
internal sealed class PageHandlerResultFilter :
IAsyncResultFilter
, IOrderedFilter
62 references to IAsyncResultFilter
Microsoft.AspNetCore.Mvc.Abstractions (12)
Filters\IAlwaysRunResultFilter.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\IAsyncAlwaysRunResultFilter.cs (3)
11
/// The <see cref="IAsyncAlwaysRunResultFilter"/> interface declares an <see cref="
IAsyncResultFilter
"/> 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\IAsyncResultFilter.cs (3)
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 (3)
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\ResultExecutingContext.cs (1)
8
/// <see cref="
IAsyncResultFilter
.OnResultExecutionAsync"/> calls.
Microsoft.AspNetCore.Mvc.Core (15)
ApplicationModels\DefaultApplicationModelProvider.cs (1)
196
if (typeof(
IAsyncResultFilter
).GetTypeInfo().IsAssignableFrom(typeInfo) ||
Filters\ControllerResultFilter.cs (1)
33
if (controller is
IAsyncResultFilter
asyncResultFilter)
Infrastructure\ResourceInvoker.cs (8)
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);
1123
where TFilterAsync : class,
IAsyncResultFilter
1177
nameof(
IAsyncResultFilter
.OnResultExecutionAsync),
1217
nameof(
IAsyncResultFilter
.OnResultExecutionAsync),
1348
where TFilterAsync : class,
IAsyncResultFilter
1402
where TFilterAsync : class,
IAsyncResultFilter
1432
typeof(
IAsyncResultFilter
).Name,
MvcCoreDiagnosticListenerExtensions.cs (4)
772
IAsyncResultFilter
filter)
785
private static void BeforeOnResultExecutionImpl(DiagnosticListener diagnosticListener, ResultExecutingContext resultExecutingContext,
IAsyncResultFilter
filter)
802
IAsyncResultFilter
filter)
815
private static void AfterOnResultExecutionImpl(DiagnosticListener diagnosticListener, ResultExecutedContext resultExecutedContext,
IAsyncResultFilter
filter)
MvcCoreLoggerExtensions.cs (1)
76
var resultFilters = filters.Where(f => f is IResultFilter || f is
IAsyncResultFilter
);
Microsoft.AspNetCore.Mvc.Core.Test (12)
MvcCoreLoggerExtensionsTest.cs (12)
135
var
asyncResultFilter = Mock.Of<
IAsyncResultFilter
>();
180
var
asyncResultFilter = Mock.Of<
IAsyncResultFilter
>();
223
var
asyncResultFilter = Mock.Of<
IAsyncResultFilter
>();
272
var
asyncResultFilter = Mock.Of<
IAsyncResultFilter
>();
318
var
asyncResultFilter = Mock.Of<
IAsyncResultFilter
>();
364
var
asyncResultFilter = Mock.Of<
IAsyncResultFilter
>();
Microsoft.AspNetCore.Mvc.Core.TestCommon (19)
CommonFilterTest.cs (6)
87
mock.As<
IAsyncResultFilter
>()
105
await mock.As<
IAsyncResultFilter
>().Object.OnResultExecutionAsync(context, next);
121
mock.As<
IAsyncResultFilter
>()
143
await mock.As<
IAsyncResultFilter
>().Object.OnResultExecutionAsync(context, next);
159
mock.As<
IAsyncResultFilter
>()
181
await mock.As<
IAsyncResultFilter
>().Object.OnResultExecutionAsync(context, next);
CommonResourceInvokerTest.cs (13)
782
var filter = new Mock<
IAsyncResultFilter
>(MockBehavior.Strict);
852
var filter2 = new Mock<
IAsyncResultFilter
>(MockBehavior.Strict);
895
var filter2 = new Mock<
IAsyncResultFilter
>(MockBehavior.Strict);
928
var filter = new Mock<
IAsyncResultFilter
>(MockBehavior.Strict);
1042
var filter = new Mock<
IAsyncResultFilter
>(MockBehavior.Strict);
1122
var resultFilter1 = new Mock<
IAsyncResultFilter
>(MockBehavior.Strict);
1550
var resultFilter = new Mock<
IAsyncResultFilter
>(MockBehavior.Strict);
1598
var resultFilter = new Mock<
IAsyncResultFilter
>(MockBehavior.Strict);
1648
var resultFilter = new Mock<
IAsyncResultFilter
>(MockBehavior.Strict);
1799
var resultFilter2 = new Mock<
IAsyncResultFilter
>(MockBehavior.Strict);
1899
var resultFilter2 = new Mock<
IAsyncResultFilter
>(MockBehavior.Strict);
1996
var resultFilter2 = new Mock<
IAsyncResultFilter
>(MockBehavior.Strict);
2050
var resultFilter3 = new Mock<
IAsyncResultFilter
>(MockBehavior.Strict);
Microsoft.AspNetCore.Mvc.RazorPages (2)
ApplicationModels\DefaultPageApplicationModelProvider.cs (1)
170
if (typeof(
IAsyncResultFilter
).IsAssignableFrom(pageModel.HandlerType) ||
Filters\PageHandlerResultFIlter.cs (1)
28
if (handler is
IAsyncResultFilter
asyncResultFilter)
Microsoft.AspNetCore.Mvc.RazorPages.Test (2)
Filters\PageHandlerResultFilterTest.cs (1)
25
var modelAsFilter = model.As<
IAsyncResultFilter
>();
Infrastructure\PageActionInvokerTest.cs (1)
695
var filter = new Mock<
IAsyncResultFilter
>(MockBehavior.Strict);