3 implementations of OnResourceExecutionAsync
Microsoft.AspNetCore.Mvc.Core (1)
Filters\MiddlewareFilter.cs (1)
22
public Task
OnResourceExecutionAsync
(ResourceExecutingContext context, ResourceExecutionDelegate next)
Microsoft.AspNetCore.Mvc.Core.Test (2)
ApplicationModels\DefaultApplicationModelProviderTest.cs (1)
1872
public Task
OnResourceExecutionAsync
(ResourceExecutingContext context, ResourceExecutionDelegate next)
Filters\MiddlewareFilterTest.cs (1)
477
public async Task
OnResourceExecutionAsync
(ResourceExecutingContext context, ResourceExecutionDelegate next)
50 references to OnResourceExecutionAsync
Microsoft.AspNetCore.Mvc.Abstractions (1)
Filters\ResourceExecutingContext.cs (1)
10
/// <see cref="IAsyncResourceFilter.
OnResourceExecutionAsync
"/> calls.
Microsoft.AspNetCore.Mvc.Core (1)
Infrastructure\ResourceInvoker.cs (1)
483
var task = filter.
OnResourceExecutionAsync
(resourceExecutingContext, InvokeNextResourceFilterAwaitedAsync);
Microsoft.AspNetCore.Mvc.Core.Test (11)
Infrastructure\ControllerActionInvokerTest.cs (11)
118
.Setup(f => f.
OnResourceExecutionAsync
(It.IsAny<ResourceExecutingContext>(), It.IsAny<ResourceExecutionDelegate>()))
135
resourceFilter.Verify(f => f.
OnResourceExecutionAsync
(It.IsAny<ResourceExecutingContext>(), It.IsAny<ResourceExecutionDelegate>()), Times.Once);
167
.Setup(f => f.
OnResourceExecutionAsync
(It.IsAny<ResourceExecutingContext>(), It.IsAny<ResourceExecutionDelegate>()))
185
resourceFilter.Verify(f => f.
OnResourceExecutionAsync
(It.IsAny<ResourceExecutingContext>(), It.IsAny<ResourceExecutionDelegate>()), Times.Once());
698
.Setup(f => f.
OnResourceExecutionAsync
(It.IsAny<ResourceExecutingContext>(), It.IsAny<ResourceExecutionDelegate>()))
722
f => f.
OnResourceExecutionAsync
(It.IsAny<ResourceExecutingContext>(), It.IsAny<ResourceExecutionDelegate>()),
735
.Setup(f => f.
OnResourceExecutionAsync
(It.IsAny<ResourceExecutingContext>(), It.IsAny<ResourceExecutionDelegate>()))
761
f => f.
OnResourceExecutionAsync
(It.IsAny<ResourceExecutingContext>(), It.IsAny<ResourceExecutionDelegate>()),
774
.Setup(f => f.
OnResourceExecutionAsync
(It.IsAny<ResourceExecutingContext>(), It.IsAny<ResourceExecutionDelegate>()))
800
f => f.
OnResourceExecutionAsync
(It.IsAny<ResourceExecutingContext>(), It.IsAny<ResourceExecutionDelegate>()),
810
.Setup(f => f.
OnResourceExecutionAsync
(It.IsAny<ResourceExecutingContext>(), It.IsAny<ResourceExecutionDelegate>()))
Microsoft.AspNetCore.Mvc.Core.TestCommon (27)
CommonResourceInvokerTest.cs (27)
1164
.Setup(f => f.
OnResourceExecutionAsync
(It.IsAny<ResourceExecutingContext>(), It.IsAny<ResourceExecutionDelegate>()))
1178
f => f.
OnResourceExecutionAsync
(It.IsAny<ResourceExecutingContext>(), It.IsAny<ResourceExecutionDelegate>()),
1216
.Setup(f => f.
OnResourceExecutionAsync
(It.IsAny<ResourceExecutingContext>(), It.IsAny<ResourceExecutionDelegate>()))
1232
f => f.
OnResourceExecutionAsync
(It.IsAny<ResourceExecutingContext>(), It.IsAny<ResourceExecutionDelegate>()),
1245
.Setup(f => f.
OnResourceExecutionAsync
(It.IsAny<ResourceExecutingContext>(), It.IsAny<ResourceExecutionDelegate>()))
1271
f => f.
OnResourceExecutionAsync
(It.IsAny<ResourceExecutingContext>(), It.IsAny<ResourceExecutionDelegate>()),
1284
.Setup(f => f.
OnResourceExecutionAsync
(It.IsAny<ResourceExecutingContext>(), It.IsAny<ResourceExecutionDelegate>()))
1308
f => f.
OnResourceExecutionAsync
(It.IsAny<ResourceExecutingContext>(), It.IsAny<ResourceExecutionDelegate>()),
1319
.Setup(f => f.
OnResourceExecutionAsync
(It.IsAny<ResourceExecutingContext>(), It.IsAny<ResourceExecutionDelegate>()))
1337
f => f.
OnResourceExecutionAsync
(It.IsAny<ResourceExecutingContext>(), It.IsAny<ResourceExecutionDelegate>()),
1350
.Setup(f => f.
OnResourceExecutionAsync
(It.IsAny<ResourceExecutingContext>(), It.IsAny<ResourceExecutionDelegate>()))
1376
f => f.
OnResourceExecutionAsync
(It.IsAny<ResourceExecutingContext>(), It.IsAny<ResourceExecutionDelegate>()),
1387
.Setup(f => f.
OnResourceExecutionAsync
(It.IsAny<ResourceExecutingContext>(), It.IsAny<ResourceExecutionDelegate>()))
1406
f => f.
OnResourceExecutionAsync
(It.IsAny<ResourceExecutingContext>(), It.IsAny<ResourceExecutionDelegate>()),
1419
.Setup(f => f.
OnResourceExecutionAsync
(It.IsAny<ResourceExecutingContext>(), It.IsAny<ResourceExecutionDelegate>()))
1428
.Setup(f => f.
OnResourceExecutionAsync
(It.IsAny<ResourceExecutingContext>(), It.IsAny<ResourceExecutionDelegate>()))
1455
.Setup(f => f.
OnResourceExecutionAsync
(It.IsAny<ResourceExecutingContext>(), It.IsAny<ResourceExecutionDelegate>()))
1491
.Setup(f => f.
OnResourceExecutionAsync
(It.IsAny<ResourceExecutingContext>(), It.IsAny<ResourceExecutionDelegate>()))
1531
.Setup(f => f.
OnResourceExecutionAsync
(It.IsAny<ResourceExecutingContext>(), It.IsAny<ResourceExecutionDelegate>()))
1540
.Setup(f => f.
OnResourceExecutionAsync
(It.IsAny<ResourceExecutingContext>(), It.IsAny<ResourceExecutionDelegate>()))
1580
.Setup(f => f.
OnResourceExecutionAsync
(It.IsAny<ResourceExecutingContext>(), It.IsAny<ResourceExecutionDelegate>()))
1589
.Setup(f => f.
OnResourceExecutionAsync
(It.IsAny<ResourceExecutingContext>(), It.IsAny<ResourceExecutionDelegate>()))
1633
.Setup(f => f.
OnResourceExecutionAsync
(It.IsAny<ResourceExecutingContext>(), It.IsAny<ResourceExecutionDelegate>()))
1682
.Setup(f => f.
OnResourceExecutionAsync
(It.IsAny<ResourceExecutingContext>(), It.IsAny<ResourceExecutionDelegate>()))
1705
.Setup(f => f.
OnResourceExecutionAsync
(It.IsAny<ResourceExecutingContext>(), It.IsAny<ResourceExecutionDelegate>()))
1727
f => f.
OnResourceExecutionAsync
(It.IsAny<ResourceExecutingContext>(), It.IsAny<ResourceExecutionDelegate>()),
1848
.Setup(f => f.
OnResourceExecutionAsync
(It.IsAny<ResourceExecutingContext>(), It.IsAny<ResourceExecutionDelegate>()))
Microsoft.AspNetCore.Mvc.RazorPages.Test (10)
Infrastructure\PageActionInvokerTest.cs (10)
628
.Setup(f => f.
OnResourceExecutionAsync
(It.IsAny<ResourceExecutingContext>(), It.IsAny<ResourceExecutionDelegate>()))
644
f => f.
OnResourceExecutionAsync
(It.IsAny<ResourceExecutingContext>(), It.IsAny<ResourceExecutionDelegate>()),
1226
.Setup(f => f.
OnResourceExecutionAsync
(It.IsAny<ResourceExecutingContext>(), It.IsAny<ResourceExecutionDelegate>()))
1251
f => f.
OnResourceExecutionAsync
(It.IsAny<ResourceExecutingContext>(), It.IsAny<ResourceExecutionDelegate>()),
1264
.Setup(f => f.
OnResourceExecutionAsync
(It.IsAny<ResourceExecutingContext>(), It.IsAny<ResourceExecutionDelegate>()))
1291
f => f.
OnResourceExecutionAsync
(It.IsAny<ResourceExecutingContext>(), It.IsAny<ResourceExecutionDelegate>()),
1304
.Setup(f => f.
OnResourceExecutionAsync
(It.IsAny<ResourceExecutingContext>(), It.IsAny<ResourceExecutionDelegate>()))
1330
f => f.
OnResourceExecutionAsync
(It.IsAny<ResourceExecutingContext>(), It.IsAny<ResourceExecutionDelegate>()),
1340
.Setup(f => f.
OnResourceExecutionAsync
(It.IsAny<ResourceExecutingContext>(), It.IsAny<ResourceExecutionDelegate>()))
1380
resourceFilter.Verify(f => f.
OnResourceExecutionAsync
(It.IsAny<ResourceExecutingContext>(), It.IsAny<ResourceExecutionDelegate>()), Times.Once());