65 references to ResultExecutionDelegate
Microsoft.AspNetCore.Mvc.Abstractions (2)
Filters\IAsyncResultFilter.cs (2)
32/// The <see cref="ResultExecutionDelegate"/>. Invoked to execute the next result filter or the result itself. 35Task OnResultExecutionAsync(ResultExecutingContext context, ResultExecutionDelegate next);
Microsoft.AspNetCore.Mvc.Core (5)
Filters\ActionFilterAttribute.cs (1)
58ResultExecutionDelegate next)
Filters\ControllerResultFilter.cs (2)
20ResultExecutionDelegate next) 49ResultExecutionDelegate next,
Filters\ResultFilterAttribute.cs (1)
30ResultExecutionDelegate next)
Infrastructure\ResourceInvoker.cs (1)
1435typeof(ResultExecutionDelegate).Name);
Microsoft.AspNetCore.Mvc.Core.Test (3)
ProducesAttributeTests.cs (3)
24var next = new ResultExecutionDelegate( 51var next = new ResultExecutionDelegate( 76var next = new ResultExecutionDelegate(
Microsoft.AspNetCore.Mvc.Core.TestCommon (45)
CommonFilterTest.cs (6)
90It.IsAny<ResultExecutionDelegate>())) 102var next = new ResultExecutionDelegate(() => Task.FromResult(CreateResultExecutedContext(context))); 124It.IsAny<ResultExecutionDelegate>())) 140var next = new ResultExecutionDelegate(() => Task.FromResult(CreateResultExecutedContext(context))); 162It.IsAny<ResultExecutionDelegate>())) 178var next = new ResultExecutionDelegate(() => { throw null; }); // This won't run
CommonResourceInvokerTest.cs (39)
784.Setup(f => f.OnResultExecutionAsync(It.IsAny<ResultExecutingContext>(), It.IsAny<ResultExecutionDelegate>())) 785.Returns<ResultExecutingContext, ResultExecutionDelegate>(async (context, next) => await next()) 795f => f.OnResultExecutionAsync(It.IsAny<ResultExecutingContext>(), It.IsAny<ResultExecutionDelegate>()), 854.Setup(f => f.OnResultExecutionAsync(It.IsAny<ResultExecutingContext>(), It.IsAny<ResultExecutionDelegate>())) 855.Returns<ResultExecutingContext, ResultExecutionDelegate>((c, next) => 875f => f.OnResultExecutionAsync(It.IsAny<ResultExecutingContext>(), It.IsAny<ResultExecutionDelegate>()), 897.Setup(f => f.OnResultExecutionAsync(It.IsAny<ResultExecutingContext>(), It.IsAny<ResultExecutionDelegate>())) 898.Returns<ResultExecutingContext, ResultExecutionDelegate>((c, next) => 917f => f.OnResultExecutionAsync(It.IsAny<ResultExecutingContext>(), It.IsAny<ResultExecutionDelegate>()), 930.Setup(f => f.OnResultExecutionAsync(It.IsAny<ResultExecutingContext>(), It.IsAny<ResultExecutionDelegate>())) 931.Returns<ResultExecutingContext, ResultExecutionDelegate>(async (c, next) => 1044.Setup(f => f.OnResultExecutionAsync(It.IsAny<ResultExecutingContext>(), It.IsAny<ResultExecutionDelegate>())) 1045.Returns<ResultExecutingContext, ResultExecutionDelegate>(async (c, next) => 1068f => f.OnResultExecutionAsync(It.IsAny<ResultExecutingContext>(), It.IsAny<ResultExecutionDelegate>()), 1124.Setup(f => f.OnResultExecutionAsync(It.IsAny<ResultExecutingContext>(), It.IsAny<ResultExecutionDelegate>())) 1125.Returns<ResultExecutingContext, ResultExecutionDelegate>(async (c, next) => 1152f => f.OnResultExecutionAsync(It.IsAny<ResultExecutingContext>(), It.IsAny<ResultExecutionDelegate>()), 1766resultFilter.Setup(f => f.OnResultExecutionAsync(It.IsAny<ResultExecutingContext>(), It.IsAny<ResultExecutionDelegate>())) 1767.Returns<ResultExecutingContext, ResultExecutionDelegate>((c, next) => 1800resultFilter2.Setup(f => f.OnResultExecutionAsync(It.IsAny<ResultExecutingContext>(), It.IsAny<ResultExecutionDelegate>())); 1803resultFilter3.Setup(f => f.OnResultExecutionAsync(It.IsAny<ResultExecutingContext>(), It.IsAny<ResultExecutionDelegate>())) 1827f => f.OnResultExecutionAsync(It.IsAny<ResultExecutingContext>(), It.IsAny<ResultExecutionDelegate>()), 1830f => f.OnResultExecutionAsync(It.IsAny<ResultExecutingContext>(), It.IsAny<ResultExecutionDelegate>()), 1869resultFilter.Setup(f => f.OnResultExecutionAsync(It.IsAny<ResultExecutingContext>(), It.IsAny<ResultExecutionDelegate>())) 1870.Returns<ResultExecutingContext, ResultExecutionDelegate>((c, next) => 1900resultFilter2.Setup(f => f.OnResultExecutionAsync(It.IsAny<ResultExecutingContext>(), It.IsAny<ResultExecutionDelegate>())); 1903resultFilter3.Setup(f => f.OnResultExecutionAsync(It.IsAny<ResultExecutingContext>(), It.IsAny<ResultExecutionDelegate>())) 1924f => f.OnResultExecutionAsync(It.IsAny<ResultExecutingContext>(), It.IsAny<ResultExecutionDelegate>()), 1927f => f.OnResultExecutionAsync(It.IsAny<ResultExecutingContext>(), It.IsAny<ResultExecutionDelegate>()), 1966resultFilter.Setup(f => f.OnResultExecutionAsync(It.IsAny<ResultExecutingContext>(), It.IsAny<ResultExecutionDelegate>())) 1967.Returns<ResultExecutingContext, ResultExecutionDelegate>((c, next) => 1997resultFilter2.Setup(f => f.OnResultExecutionAsync(It.IsAny<ResultExecutingContext>(), It.IsAny<ResultExecutionDelegate>())); 2000resultFilter3.Setup(f => f.OnResultExecutionAsync(It.IsAny<ResultExecutingContext>(), It.IsAny<ResultExecutionDelegate>())) 2023f => f.OnResultExecutionAsync(It.IsAny<ResultExecutingContext>(), It.IsAny<ResultExecutionDelegate>()), 2026f => f.OnResultExecutionAsync(It.IsAny<ResultExecutingContext>(), It.IsAny<ResultExecutionDelegate>()), 2051resultFilter3.Setup(f => f.OnResultExecutionAsync(It.IsAny<ResultExecutingContext>(), It.IsAny<ResultExecutionDelegate>())) 2052.Returns<ResultExecutingContext, ResultExecutionDelegate>((c, next) => next()) 2056resultFilter4.Setup(f => f.OnResultExecutionAsync(It.IsAny<ResultExecutingContext>(), It.IsAny<ResultExecutionDelegate>())) 2057.Returns<ResultExecutingContext, ResultExecutionDelegate>((c, next) => next())
Microsoft.AspNetCore.Mvc.RazorPages (2)
Filters\PageHandlerResultFIlter.cs (2)
15public Task OnResultExecutionAsync(ResultExecutingContext context, ResultExecutionDelegate next) 44ResultExecutionDelegate next,
Microsoft.AspNetCore.Mvc.RazorPages.Test (8)
Filters\PageHandlerResultFilterTest.cs (5)
27.Setup(f => f.OnResultExecutionAsync(It.IsAny<ResultExecutingContext>(), It.IsAny<ResultExecutionDelegate>())) 41ResultExecutionDelegate next = () => Task.FromResult(resultExecutedContext); 82ResultExecutionDelegate next = () => Task.FromResult(resultExecutedContext); 124ResultExecutionDelegate next = () => Task.FromResult(resultExecutedContext); 157ResultExecutionDelegate next = () =>
Infrastructure\PageActionInvokerTest.cs (3)
697.Setup(f => f.OnResultExecutionAsync(It.IsAny<ResultExecutingContext>(), It.IsAny<ResultExecutionDelegate>())) 698.Returns<ResultExecutingContext, ResultExecutionDelegate>((context, next) => 713f => f.OnResultExecutionAsync(It.IsAny<ResultExecutingContext>(), It.IsAny<ResultExecutionDelegate>()),