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 25ResourceExecutionDelegate next);
Microsoft.AspNetCore.Mvc.Core (5)
Filters\IMiddlewareFilterFeature.cs (1)
15ResourceExecutionDelegate? ResourceExecutionDelegate { get; }
Filters\MiddlewareFilter.cs (1)
22public Task OnResourceExecutionAsync(ResourceExecutingContext context, ResourceExecutionDelegate next)
Filters\MiddlewareFilterBuilder.cs (1)
66var resourceExecutionDelegate = feature.ResourceExecutionDelegate!;
Filters\MiddlewareFilterFeature.cs (1)
10public ResourceExecutionDelegate? ResourceExecutionDelegate { get; set; }
Infrastructure\ResourceInvoker.cs (1)
939typeof(ResourceExecutionDelegate).Name);
Microsoft.AspNetCore.Mvc.Core.Test (21)
ApplicationModels\DefaultApplicationModelProviderTest.cs (1)
1823public Task OnResourceExecutionAsync(ResourceExecutingContext context, ResourceExecutionDelegate next)
Filters\MiddlewareFilterTest.cs (3)
34var resourceExecutionDelegate = GetResourceExecutionDelegate(httpContext); 225private ResourceExecutionDelegate GetResourceExecutionDelegate(HttpContext httpContext) 477public 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) => 135resourceFilter.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) => 185resourceFilter.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) => 722f => 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) => 761f => 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) => 800f => 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) => 1178f => 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) => 1232f => 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) => 1271f => 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) => 1308f => 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) => 1337f => 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) => 1376f => 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) => 1406f => 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) => 1727f => 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) => 644f => 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) => 1251f => 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) => 1291f => 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) => 1330f => 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) => 1380resourceFilter.Verify(f => f.OnResourceExecutionAsync(It.IsAny<ResourceExecutingContext>(), It.IsAny<ResourceExecutionDelegate>()), Times.Once());