1 type derived from ResultExecutedContext
Microsoft.AspNetCore.Mvc.Core (1)
Infrastructure\ResourceInvoker.cs (1)
1563private sealed class ResultExecutedContextSealed : ResultExecutedContext
7 instantiations of ResultExecutedContext
Microsoft.AspNetCore.Mvc.Core.Test (1)
ProducesAttributeTests.cs (1)
179return new ResultExecutedContext(context, context.Filters, context.Result, context.Controller);
Microsoft.AspNetCore.Mvc.Core.TestCommon (1)
CommonFilterTest.cs (1)
221return new ResultExecutedContext(context, context.Filters, context.Result, context.Controller);
Microsoft.AspNetCore.Mvc.RazorPages.Test (4)
Filters\PageHandlerResultFilterTest.cs (4)
36var resultExecutedContext = new ResultExecutedContext( 77var resultExecutedContext = new ResultExecutedContext( 119var resultExecutedContext = new ResultExecutedContext( 151var resultExecutedContext = new ResultExecutedContext(
Microsoft.AspNetCore.Mvc.ViewFeatures.Test (1)
Filters\SaveTempDataFilterTest.cs (1)
320return new ResultExecutedContext(
123 references to ResultExecutedContext
BasicWebSite (2)
Filters\RedirectAntiforgeryValidationFailedResultFilter.cs (1)
20public void OnResultExecuted(ResultExecutedContext context)
Filters\UnprocessableResultFilter.cs (1)
11public void OnResultExecuted(ResultExecutedContext context)
Microsoft.AspNetCore.Mvc.Abstractions (6)
Filters\IResultFilter.cs (2)
36/// <param name="context">The <see cref="ResultExecutedContext"/>.</param> 37void OnResultExecuted(ResultExecutedContext context);
Filters\ResultExecutedContext.cs (1)
17/// Instantiates a new <see cref="ResultExecutedContext"/> instance.
Filters\ResultExecutionDelegate.cs (3)
7/// A delegate that asynchronously returns an <see cref="ResultExecutedContext"/> indicating the action result or 10/// <returns>A <see cref="Task"/> that on completion returns an <see cref="ResultExecutedContext"/>.</returns> 11public delegate Task<ResultExecutedContext> ResultExecutionDelegate();
Microsoft.AspNetCore.Mvc.Core (23)
Diagnostics\MvcDiagnostics.cs (8)
1106public AfterResultFilterOnResultExecutionEventData(ActionDescriptor actionDescriptor, ResultExecutedContext resultExecutedContext, IFilterMetadata filter) 1121public ResultExecutedContext ResultExecutedContext { get; } 1244/// An <see cref="EventData"/> that occurs before <see cref="IResultFilter.OnResultExecuted(ResultExecutedContext)"/>. 1259public BeforeResultFilterOnResultExecutedEventData(ActionDescriptor actionDescriptor, ResultExecutedContext resultExecutedContext, IFilterMetadata filter) 1274public ResultExecutedContext ResultExecutedContext { get; } 1295/// An <see cref="EventData"/> that occurs after <see cref="IResultFilter.OnResultExecuted(ResultExecutedContext)"/>. 1310public AfterResultFilterOnResultExecutedEventData(ActionDescriptor actionDescriptor, ResultExecutedContext resultExecutedContext, IFilterMetadata filter) 1325public ResultExecutedContext ResultExecutedContext { get; }
Filters\ActionFilterAttribute.cs (1)
51public virtual void OnResultExecuted(ResultExecutedContext context)
Filters\ResultFilterAttribute.cs (1)
23public virtual void OnResultExecuted(ResultExecutedContext context)
Formatters\FormatFilter.cs (1)
166public void OnResultExecuted(ResultExecutedContext context)
Infrastructure\ClientErrorResultFilter.cs (1)
28public void OnResultExecuted(ResultExecutedContext context)
Infrastructure\ResourceInvoker.cs (4)
1400private Task<ResultExecutedContext> InvokeNextResultFilterAwaitedAsync<TFilter, TFilterAsync>() 1419return Task.FromResult<ResultExecutedContext>(_resultExecutedContext); 1421static async Task<ResultExecutedContext> Awaited(ResourceInvoker invoker, Task task) 1429static async Task<ResultExecutedContext> Throw()
MvcCoreDiagnosticListenerExtensions.cs (6)
801ResultExecutedContext resultExecutedContext, 815private static void AfterOnResultExecutionImpl(DiagnosticListener diagnosticListener, ResultExecutedContext resultExecutedContext, IAsyncResultFilter filter) 891ResultExecutedContext resultExecutedContext, 905private static void BeforeOnResultExecutedImpl(DiagnosticListener diagnosticListener, ResultExecutedContext resultExecutedContext, IResultFilter filter) 921ResultExecutedContext resultExecutedContext, 935private static void AfterOnResultExecutedImpl(DiagnosticListener diagnosticListener, ResultExecutedContext resultExecutedContext, IResultFilter filter)
ProducesAttribute.cs (1)
93public virtual void OnResultExecuted(ResultExecutedContext context)
Microsoft.AspNetCore.Mvc.Core.Test (12)
ApplicationModels\DefaultApplicationModelProviderTest.cs (1)
1802public void OnResultExecuted(ResultExecutedContext context)
Infrastructure\ControllerActionInvokerTest.cs (10)
346resultFilter.Setup(f => f.OnResultExecuted(It.IsAny<ResultExecutedContext>())).Verifiable(); 368resultFilter.Verify(f => f.OnResultExecuted(It.IsAny<ResultExecutedContext>()), Times.Once()); 408resultFilter1.Setup(f => f.OnResultExecuted(It.IsAny<ResultExecutedContext>())).Verifiable(); 411resultFilter2.Setup(f => f.OnResultExecuted(It.IsAny<ResultExecutedContext>())).Verifiable(); 435resultFilter1.Verify(f => f.OnResultExecuted(It.IsAny<ResultExecutedContext>()), Times.Once()); 437resultFilter2.Verify(f => f.OnResultExecuted(It.IsAny<ResultExecutedContext>()), Times.Once()); 470resultFilter.Setup(f => f.OnResultExecuted(It.IsAny<ResultExecutedContext>())).Verifiable(); 492resultFilter.Verify(f => f.OnResultExecuted(It.IsAny<ResultExecutedContext>()), Times.Once()); 670resultFilter.Setup(f => f.OnResultExecuted(It.IsAny<ResultExecutedContext>())).Verifiable(); 684resultFilter.Verify(f => f.OnResultExecuted(It.IsAny<ResultExecutedContext>()), Times.Once());
ProducesAttributeTests.cs (1)
177private static ResultExecutedContext CreateResultExecutedContext(ResultExecutingContext context)
Microsoft.AspNetCore.Mvc.Core.TestCommon (48)
CommonFilterTest.cs (7)
98.Setup(f => f.OnResultExecuted(It.IsAny<ResultExecutedContext>())) 114.Verify(f => f.OnResultExecuted(It.IsAny<ResultExecutedContext>()), Times.Once()); 136.Setup(f => f.OnResultExecuted(It.IsAny<ResultExecutedContext>())) 152.Verify(f => f.OnResultExecuted(It.IsAny<ResultExecutedContext>()), Times.Once()); 174.Setup(f => f.OnResultExecuted(It.IsAny<ResultExecutedContext>())) 190.Verify(f => f.OnResultExecuted(It.IsAny<ResultExecutedContext>()), Times.Never()); 219private static ResultExecutedContext CreateResultExecutedContext(ResultExecutingContext context)
CommonResourceInvokerTest.cs (41)
766filter.Setup(f => f.OnResultExecuted(It.IsAny<ResultExecutedContext>())).Verifiable(); 775filter.Verify(f => f.OnResultExecuted(It.IsAny<ResultExecutedContext>()), Times.Once()); 803ResultExecutedContext context = null; 808.Setup(f => f.OnResultExecuted(It.IsAny<ResultExecutedContext>())) 809.Callback<ResultExecutedContext>(c => context = c) 831filter1.Verify(f => f.OnResultExecuted(It.IsAny<ResultExecutedContext>()), Times.Once()); 834filter2.Verify(f => f.OnResultExecuted(It.IsAny<ResultExecutedContext>()), Times.Never()); 843ResultExecutedContext context = null; 848.Setup(f => f.OnResultExecuted(It.IsAny<ResultExecutedContext>())) 849.Callback<ResultExecutedContext>(c => context = c) 872filter1.Verify(f => f.OnResultExecuted(It.IsAny<ResultExecutedContext>()), Times.Once()); 886ResultExecutedContext context = null; 891.Setup(f => f.OnResultExecuted(It.IsAny<ResultExecutedContext>())) 892.Callback<ResultExecutedContext>(c => context = c) 914filter1.Verify(f => f.OnResultExecuted(It.IsAny<ResultExecutedContext>()), Times.Once()); 970filter.Setup(f => f.OnResultExecuted(It.IsAny<ResultExecutedContext>())).Verifiable(); 981filter.Verify(f => f.OnResultExecuted(It.IsAny<ResultExecutedContext>()), Times.Once()); 988ResultExecutedContext context = null; 1004.Setup(f => f.OnResultExecuted(It.IsAny<ResultExecutedContext>())) 1005.Callback<ResultExecutedContext>(c => 1026filter.Verify(f => f.OnResultExecuted(It.IsAny<ResultExecutedContext>()), Times.Once()); 1033ResultExecutedContext context = null; 1076ResultExecutedContext context = null; 1082.Setup(f => f.OnResultExecuted(It.IsAny<ResultExecutedContext>())) 1083.Callback<ResultExecutedContext>(c => 1110resultFilter1.Verify(f => f.OnResultExecuted(It.IsAny<ResultExecutedContext>()), Times.Once()); 1119ResultExecutedContext context = null; 1739resultFilter.Setup(f => f.OnResultExecuted(It.IsAny<ResultExecutedContext>())) 1740.Callback<ResultExecutedContext>(c => Assert.Same(Result, c.Result)) 1797resultFilter1.Setup(f => f.OnResultExecuted(It.IsAny<ResultExecutedContext>())); 1824f => f.OnResultExecuted(It.IsAny<ResultExecutedContext>()), 1842resultFilter.Setup(f => f.OnResultExecuted(It.IsAny<ResultExecutedContext>())) 1843.Callback<ResultExecutedContext>(c => Assert.Same(Result, c.Result)) 1897resultFilter1.Setup(f => f.OnResultExecuted(It.IsAny<ResultExecutedContext>())); 1921f => f.OnResultExecuted(It.IsAny<ResultExecutedContext>()), 1939resultFilter.Setup(f => f.OnResultExecuted(It.IsAny<ResultExecutedContext>())) 1940.Callback<ResultExecutedContext>(c => Assert.Same(Result, c.Result)) 1994resultFilter1.Setup(f => f.OnResultExecuted(It.IsAny<ResultExecutedContext>())); 2020f => f.OnResultExecuted(It.IsAny<ResultExecutedContext>()), 2039.Setup(f => f.OnResultExecuted(It.IsAny<ResultExecutedContext>())) 2047.Setup(f => f.OnResultExecuted(It.IsAny<ResultExecutedContext>()))
Microsoft.AspNetCore.Mvc.RazorPages.Test (22)
Filters\PageHandlerResultFilterTest.cs (6)
36var resultExecutedContext = new ResultExecutedContext( 69.Setup(f => f.OnResultExecuted(It.IsAny<ResultExecutedContext>())) 77var resultExecutedContext = new ResultExecutedContext( 111.Setup(f => f.OnResultExecuted(It.IsAny<ResultExecutedContext>())) 119var resultExecutedContext = new ResultExecutedContext( 151var resultExecutedContext = new ResultExecutedContext(
Infrastructure\PageActionInvokerTest.cs (16)
184.Setup(f => f.OnResultExecuted(It.IsAny<ResultExecutedContext>())) 185.Callback<ResultExecutedContext>(c => 240.Setup(f => f.OnResultExecuted(It.IsAny<ResultExecutedContext>())) 241.Callback<ResultExecutedContext>(c => 297.Setup(f => f.OnResultExecuted(It.IsAny<ResultExecutedContext>())) 298.Callback<ResultExecutedContext>(c => 860resultFilter.Setup(f => f.OnResultExecuted(It.IsAny<ResultExecutedContext>())).Verifiable(); 882resultFilter.Verify(f => f.OnResultExecuted(It.IsAny<ResultExecutedContext>()), Times.Once()); 925resultFilter1.Setup(f => f.OnResultExecuted(It.IsAny<ResultExecutedContext>())).Verifiable(); 928resultFilter2.Setup(f => f.OnResultExecuted(It.IsAny<ResultExecutedContext>())).Verifiable(); 952resultFilter1.Verify(f => f.OnResultExecuted(It.IsAny<ResultExecutedContext>()), Times.Once()); 954resultFilter2.Verify(f => f.OnResultExecuted(It.IsAny<ResultExecutedContext>()), Times.Once()); 990resultFilter.Setup(f => f.OnResultExecuted(It.IsAny<ResultExecutedContext>())).Verifiable(); 1012resultFilter.Verify(f => f.OnResultExecuted(It.IsAny<ResultExecutedContext>()), Times.Once()); 1198resultFilter.Setup(f => f.OnResultExecuted(It.IsAny<ResultExecutedContext>())).Verifiable(); 1212resultFilter.Verify(f => f.OnResultExecuted(It.IsAny<ResultExecutedContext>()), Times.Once());
Microsoft.AspNetCore.Mvc.ViewFeatures (1)
Filters\SaveTempDataFilter.cs (1)
100public void OnResultExecuted(ResultExecutedContext context)
Microsoft.AspNetCore.Mvc.ViewFeatures.Test (8)
Filters\SaveTempDataFilterTest.cs (8)
88var context = GetResultExecutedContext(httpContext); 150var resultContext = GetResultExecutedContext(httpContext, result); 170var resultContext = GetResultExecutedContext(httpContext, new TestKeepTempDataActionResult()); 211var context = GetResultExecutedContext(httpContext); 227var context = GetResultExecutedContext(actionResult: result); 242var context = GetResultExecutedContext(actionResult: new TestKeepTempDataActionResult()); 258var context = GetResultExecutedContext(actionResult: new TestActionResult()); 310private ResultExecutedContext GetResultExecutedContext(HttpContext httpContext = null, IActionResult actionResult = null)
RazorPagesWebSite (1)
ModelAsFilter.cs (1)
26public void OnResultExecuted(ResultExecutedContext context)