89 references to ResourceExecutionDelegate
Microsoft.AspNetCore.Mvc.Abstractions (2)
Filters\IAsyncResourceFilter.cs (2)
17
/// The <see cref="
ResourceExecutionDelegate
"/>. Invoked to execute the next resource filter or the remainder
25
ResourceExecutionDelegate
next);
Microsoft.AspNetCore.Mvc.Core (5)
Filters\IMiddlewareFilterFeature.cs (1)
15
ResourceExecutionDelegate
? ResourceExecutionDelegate { get; }
Filters\MiddlewareFilter.cs (1)
22
public Task OnResourceExecutionAsync(ResourceExecutingContext context,
ResourceExecutionDelegate
next)
Filters\MiddlewareFilterBuilder.cs (1)
66
var
resourceExecutionDelegate = feature.ResourceExecutionDelegate!;
Filters\MiddlewareFilterFeature.cs (1)
10
public
ResourceExecutionDelegate
? ResourceExecutionDelegate { get; set; }
Infrastructure\ResourceInvoker.cs (1)
939
typeof(
ResourceExecutionDelegate
).Name);
Microsoft.AspNetCore.Mvc.Core.Test (21)
ApplicationModels\DefaultApplicationModelProviderTest.cs (1)
1823
public Task OnResourceExecutionAsync(ResourceExecutingContext context,
ResourceExecutionDelegate
next)
Filters\MiddlewareFilterTest.cs (3)
34
var
resourceExecutionDelegate = GetResourceExecutionDelegate(httpContext);
225
private
ResourceExecutionDelegate
GetResourceExecutionDelegate(HttpContext httpContext)
477
public async Task OnResourceExecutionAsync(ResourceExecutingContext context,
ResourceExecutionDelegate
next)
Infrastructure\ControllerActionInvokerTest.cs (17)
118
.Setup(f => f.OnResourceExecutionAsync(It.IsAny<ResourceExecutingContext>(), It.IsAny<
ResourceExecutionDelegate
>()))
119
.Returns<ResourceExecutingContext,
ResourceExecutionDelegate
>(async (c, next) =>
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
>()))
168
.Returns<ResourceExecutingContext,
ResourceExecutionDelegate
>((c, next) =>
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
>()))
699
.Returns<ResourceExecutingContext,
ResourceExecutionDelegate
>(async (c, next) =>
722
f => f.OnResourceExecutionAsync(It.IsAny<ResourceExecutingContext>(), It.IsAny<
ResourceExecutionDelegate
>()),
735
.Setup(f => f.OnResourceExecutionAsync(It.IsAny<ResourceExecutingContext>(), It.IsAny<
ResourceExecutionDelegate
>()))
736
.Returns<ResourceExecutingContext,
ResourceExecutionDelegate
>(async (c, next) =>
761
f => f.OnResourceExecutionAsync(It.IsAny<ResourceExecutingContext>(), It.IsAny<
ResourceExecutionDelegate
>()),
774
.Setup(f => f.OnResourceExecutionAsync(It.IsAny<ResourceExecutingContext>(), It.IsAny<
ResourceExecutionDelegate
>()))
775
.Returns<ResourceExecutingContext,
ResourceExecutionDelegate
>(async (c, next) =>
800
f => f.OnResourceExecutionAsync(It.IsAny<ResourceExecutingContext>(), It.IsAny<
ResourceExecutionDelegate
>()),
810
.Setup(f => f.OnResourceExecutionAsync(It.IsAny<ResourceExecutingContext>(), It.IsAny<
ResourceExecutionDelegate
>()))
811
.Returns<ResourceExecutingContext,
ResourceExecutionDelegate
>(async (c, next) =>
Microsoft.AspNetCore.Mvc.Core.TestCommon (46)
CommonResourceInvokerTest.cs (46)
1164
.Setup(f => f.OnResourceExecutionAsync(It.IsAny<ResourceExecutingContext>(), It.IsAny<
ResourceExecutionDelegate
>()))
1165
.Returns<ResourceExecutingContext,
ResourceExecutionDelegate
>(async (c, next) =>
1178
f => f.OnResourceExecutionAsync(It.IsAny<ResourceExecutingContext>(), It.IsAny<
ResourceExecutionDelegate
>()),
1216
.Setup(f => f.OnResourceExecutionAsync(It.IsAny<ResourceExecutingContext>(), It.IsAny<
ResourceExecutionDelegate
>()))
1217
.Returns<ResourceExecutingContext,
ResourceExecutionDelegate
>(async (c, next) =>
1232
f => f.OnResourceExecutionAsync(It.IsAny<ResourceExecutingContext>(), It.IsAny<
ResourceExecutionDelegate
>()),
1245
.Setup(f => f.OnResourceExecutionAsync(It.IsAny<ResourceExecutingContext>(), It.IsAny<
ResourceExecutionDelegate
>()))
1246
.Returns<ResourceExecutingContext,
ResourceExecutionDelegate
>(async (c, next) =>
1271
f => f.OnResourceExecutionAsync(It.IsAny<ResourceExecutingContext>(), It.IsAny<
ResourceExecutionDelegate
>()),
1284
.Setup(f => f.OnResourceExecutionAsync(It.IsAny<ResourceExecutingContext>(), It.IsAny<
ResourceExecutionDelegate
>()))
1285
.Returns<ResourceExecutingContext,
ResourceExecutionDelegate
>(async (c, next) =>
1308
f => f.OnResourceExecutionAsync(It.IsAny<ResourceExecutingContext>(), It.IsAny<
ResourceExecutionDelegate
>()),
1319
.Setup(f => f.OnResourceExecutionAsync(It.IsAny<ResourceExecutingContext>(), It.IsAny<
ResourceExecutionDelegate
>()))
1320
.Returns<ResourceExecutingContext,
ResourceExecutionDelegate
>(async (c, next) =>
1337
f => f.OnResourceExecutionAsync(It.IsAny<ResourceExecutingContext>(), It.IsAny<
ResourceExecutionDelegate
>()),
1350
.Setup(f => f.OnResourceExecutionAsync(It.IsAny<ResourceExecutingContext>(), It.IsAny<
ResourceExecutionDelegate
>()))
1351
.Returns<ResourceExecutingContext,
ResourceExecutionDelegate
>(async (c, next) =>
1376
f => f.OnResourceExecutionAsync(It.IsAny<ResourceExecutingContext>(), It.IsAny<
ResourceExecutionDelegate
>()),
1387
.Setup(f => f.OnResourceExecutionAsync(It.IsAny<ResourceExecutingContext>(), It.IsAny<
ResourceExecutionDelegate
>()))
1388
.Returns<ResourceExecutingContext,
ResourceExecutionDelegate
>(async (c, next) =>
1406
f => f.OnResourceExecutionAsync(It.IsAny<ResourceExecutingContext>(), It.IsAny<
ResourceExecutionDelegate
>()),
1419
.Setup(f => f.OnResourceExecutionAsync(It.IsAny<ResourceExecutingContext>(), It.IsAny<
ResourceExecutionDelegate
>()))
1420
.Returns<ResourceExecutingContext,
ResourceExecutionDelegate
>(async (c, next) =>
1428
.Setup(f => f.OnResourceExecutionAsync(It.IsAny<ResourceExecutingContext>(), It.IsAny<
ResourceExecutionDelegate
>()))
1429
.Returns<ResourceExecutingContext,
ResourceExecutionDelegate
>((c, next) =>
1455
.Setup(f => f.OnResourceExecutionAsync(It.IsAny<ResourceExecutingContext>(), It.IsAny<
ResourceExecutionDelegate
>()))
1456
.Returns<ResourceExecutingContext,
ResourceExecutionDelegate
>(async (c, next) =>
1491
.Setup(f => f.OnResourceExecutionAsync(It.IsAny<ResourceExecutingContext>(), It.IsAny<
ResourceExecutionDelegate
>()))
1492
.Returns<ResourceExecutingContext,
ResourceExecutionDelegate
>(async (c, next) =>
1531
.Setup(f => f.OnResourceExecutionAsync(It.IsAny<ResourceExecutingContext>(), It.IsAny<
ResourceExecutionDelegate
>()))
1532
.Returns<ResourceExecutingContext,
ResourceExecutionDelegate
>(async (c, next) =>
1540
.Setup(f => f.OnResourceExecutionAsync(It.IsAny<ResourceExecutingContext>(), It.IsAny<
ResourceExecutionDelegate
>()))
1541
.Returns<ResourceExecutingContext,
ResourceExecutionDelegate
>((c, next) =>
1580
.Setup(f => f.OnResourceExecutionAsync(It.IsAny<ResourceExecutingContext>(), It.IsAny<
ResourceExecutionDelegate
>()))
1581
.Returns<ResourceExecutingContext,
ResourceExecutionDelegate
>(async (c, next) =>
1589
.Setup(f => f.OnResourceExecutionAsync(It.IsAny<ResourceExecutingContext>(), It.IsAny<
ResourceExecutionDelegate
>()))
1590
.Returns<ResourceExecutingContext,
ResourceExecutionDelegate
>((c, next) =>
1633
.Setup(f => f.OnResourceExecutionAsync(It.IsAny<ResourceExecutingContext>(), It.IsAny<
ResourceExecutionDelegate
>()))
1634
.Returns<ResourceExecutingContext,
ResourceExecutionDelegate
>(async (c, next) =>
1682
.Setup(f => f.OnResourceExecutionAsync(It.IsAny<ResourceExecutingContext>(), It.IsAny<
ResourceExecutionDelegate
>()))
1683
.Returns<ResourceExecutingContext,
ResourceExecutionDelegate
>(async (c, next) =>
1705
.Setup(f => f.OnResourceExecutionAsync(It.IsAny<ResourceExecutingContext>(), It.IsAny<
ResourceExecutionDelegate
>()))
1706
.Returns<ResourceExecutingContext,
ResourceExecutionDelegate
>(async (c, next) =>
1727
f => f.OnResourceExecutionAsync(It.IsAny<ResourceExecutingContext>(), It.IsAny<
ResourceExecutionDelegate
>()),
1848
.Setup(f => f.OnResourceExecutionAsync(It.IsAny<ResourceExecutingContext>(), It.IsAny<
ResourceExecutionDelegate
>()))
1849
.Returns<ResourceExecutingContext,
ResourceExecutionDelegate
>((c, next) =>
Microsoft.AspNetCore.Mvc.RazorPages.Test (15)
Infrastructure\PageActionInvokerTest.cs (15)
628
.Setup(f => f.OnResourceExecutionAsync(It.IsAny<ResourceExecutingContext>(), It.IsAny<
ResourceExecutionDelegate
>()))
629
.Returns<ResourceExecutingContext,
ResourceExecutionDelegate
>((context, next) =>
644
f => f.OnResourceExecutionAsync(It.IsAny<ResourceExecutingContext>(), It.IsAny<
ResourceExecutionDelegate
>()),
1226
.Setup(f => f.OnResourceExecutionAsync(It.IsAny<ResourceExecutingContext>(), It.IsAny<
ResourceExecutionDelegate
>()))
1227
.Returns<ResourceExecutingContext,
ResourceExecutionDelegate
>(async (c, next) =>
1251
f => f.OnResourceExecutionAsync(It.IsAny<ResourceExecutingContext>(), It.IsAny<
ResourceExecutionDelegate
>()),
1264
.Setup(f => f.OnResourceExecutionAsync(It.IsAny<ResourceExecutingContext>(), It.IsAny<
ResourceExecutionDelegate
>()))
1265
.Returns<ResourceExecutingContext,
ResourceExecutionDelegate
>(async (c, next) =>
1291
f => f.OnResourceExecutionAsync(It.IsAny<ResourceExecutingContext>(), It.IsAny<
ResourceExecutionDelegate
>()),
1304
.Setup(f => f.OnResourceExecutionAsync(It.IsAny<ResourceExecutingContext>(), It.IsAny<
ResourceExecutionDelegate
>()))
1305
.Returns<ResourceExecutingContext,
ResourceExecutionDelegate
>(async (c, next) =>
1330
f => f.OnResourceExecutionAsync(It.IsAny<ResourceExecutingContext>(), It.IsAny<
ResourceExecutionDelegate
>()),
1340
.Setup(f => f.OnResourceExecutionAsync(It.IsAny<ResourceExecutingContext>(), It.IsAny<
ResourceExecutionDelegate
>()))
1341
.Returns<ResourceExecutingContext,
ResourceExecutionDelegate
>(async (c, next) =>
1380
resourceFilter.Verify(f => f.OnResourceExecutionAsync(It.IsAny<ResourceExecutingContext>(), It.IsAny<
ResourceExecutionDelegate
>()), Times.Once());