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.
35
Task OnResultExecutionAsync(ResultExecutingContext context,
ResultExecutionDelegate
next);
Microsoft.AspNetCore.Mvc.Core (5)
Filters\ActionFilterAttribute.cs (1)
58
ResultExecutionDelegate
next)
Filters\ControllerResultFilter.cs (2)
20
ResultExecutionDelegate
next)
49
ResultExecutionDelegate
next,
Filters\ResultFilterAttribute.cs (1)
30
ResultExecutionDelegate
next)
Infrastructure\ResourceInvoker.cs (1)
1435
typeof(
ResultExecutionDelegate
).Name);
Microsoft.AspNetCore.Mvc.Core.Test (3)
ProducesAttributeTests.cs (3)
24
var
next = new ResultExecutionDelegate(
51
var
next = new ResultExecutionDelegate(
76
var
next = new ResultExecutionDelegate(
Microsoft.AspNetCore.Mvc.Core.TestCommon (45)
CommonFilterTest.cs (6)
90
It.IsAny<
ResultExecutionDelegate
>()))
102
var
next = new ResultExecutionDelegate(() => Task.FromResult(CreateResultExecutedContext(context)));
124
It.IsAny<
ResultExecutionDelegate
>()))
140
var
next = new ResultExecutionDelegate(() => Task.FromResult(CreateResultExecutedContext(context)));
162
It.IsAny<
ResultExecutionDelegate
>()))
178
var
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())
795
f => 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) =>
875
f => 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) =>
917
f => 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) =>
1068
f => 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) =>
1152
f => f.OnResultExecutionAsync(It.IsAny<ResultExecutingContext>(), It.IsAny<
ResultExecutionDelegate
>()),
1766
resultFilter.Setup(f => f.OnResultExecutionAsync(It.IsAny<ResultExecutingContext>(), It.IsAny<
ResultExecutionDelegate
>()))
1767
.Returns<ResultExecutingContext,
ResultExecutionDelegate
>((c, next) =>
1800
resultFilter2.Setup(f => f.OnResultExecutionAsync(It.IsAny<ResultExecutingContext>(), It.IsAny<
ResultExecutionDelegate
>()));
1803
resultFilter3.Setup(f => f.OnResultExecutionAsync(It.IsAny<ResultExecutingContext>(), It.IsAny<
ResultExecutionDelegate
>()))
1827
f => f.OnResultExecutionAsync(It.IsAny<ResultExecutingContext>(), It.IsAny<
ResultExecutionDelegate
>()),
1830
f => f.OnResultExecutionAsync(It.IsAny<ResultExecutingContext>(), It.IsAny<
ResultExecutionDelegate
>()),
1869
resultFilter.Setup(f => f.OnResultExecutionAsync(It.IsAny<ResultExecutingContext>(), It.IsAny<
ResultExecutionDelegate
>()))
1870
.Returns<ResultExecutingContext,
ResultExecutionDelegate
>((c, next) =>
1900
resultFilter2.Setup(f => f.OnResultExecutionAsync(It.IsAny<ResultExecutingContext>(), It.IsAny<
ResultExecutionDelegate
>()));
1903
resultFilter3.Setup(f => f.OnResultExecutionAsync(It.IsAny<ResultExecutingContext>(), It.IsAny<
ResultExecutionDelegate
>()))
1924
f => f.OnResultExecutionAsync(It.IsAny<ResultExecutingContext>(), It.IsAny<
ResultExecutionDelegate
>()),
1927
f => f.OnResultExecutionAsync(It.IsAny<ResultExecutingContext>(), It.IsAny<
ResultExecutionDelegate
>()),
1966
resultFilter.Setup(f => f.OnResultExecutionAsync(It.IsAny<ResultExecutingContext>(), It.IsAny<
ResultExecutionDelegate
>()))
1967
.Returns<ResultExecutingContext,
ResultExecutionDelegate
>((c, next) =>
1997
resultFilter2.Setup(f => f.OnResultExecutionAsync(It.IsAny<ResultExecutingContext>(), It.IsAny<
ResultExecutionDelegate
>()));
2000
resultFilter3.Setup(f => f.OnResultExecutionAsync(It.IsAny<ResultExecutingContext>(), It.IsAny<
ResultExecutionDelegate
>()))
2023
f => f.OnResultExecutionAsync(It.IsAny<ResultExecutingContext>(), It.IsAny<
ResultExecutionDelegate
>()),
2026
f => f.OnResultExecutionAsync(It.IsAny<ResultExecutingContext>(), It.IsAny<
ResultExecutionDelegate
>()),
2051
resultFilter3.Setup(f => f.OnResultExecutionAsync(It.IsAny<ResultExecutingContext>(), It.IsAny<
ResultExecutionDelegate
>()))
2052
.Returns<ResultExecutingContext,
ResultExecutionDelegate
>((c, next) => next())
2056
resultFilter4.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)
15
public Task OnResultExecutionAsync(ResultExecutingContext context,
ResultExecutionDelegate
next)
44
ResultExecutionDelegate
next,
Microsoft.AspNetCore.Mvc.RazorPages.Test (8)
Filters\PageHandlerResultFilterTest.cs (5)
27
.Setup(f => f.OnResultExecutionAsync(It.IsAny<ResultExecutingContext>(), It.IsAny<
ResultExecutionDelegate
>()))
41
ResultExecutionDelegate
next = () => Task.FromResult(resultExecutedContext);
82
ResultExecutionDelegate
next = () => Task.FromResult(resultExecutedContext);
124
ResultExecutionDelegate
next = () => Task.FromResult(resultExecutedContext);
157
ResultExecutionDelegate
next = () =>
Infrastructure\PageActionInvokerTest.cs (3)
697
.Setup(f => f.OnResultExecutionAsync(It.IsAny<ResultExecutingContext>(), It.IsAny<
ResultExecutionDelegate
>()))
698
.Returns<ResultExecutingContext,
ResultExecutionDelegate
>((context, next) =>
713
f => f.OnResultExecutionAsync(It.IsAny<ResultExecutingContext>(), It.IsAny<
ResultExecutionDelegate
>()),