1 type derived from ResultExecutingContext
Microsoft.AspNetCore.Mvc.Core (1)
Infrastructure\ResourceInvoker.cs (1)
1573private sealed class ResultExecutingContextSealed : ResultExecutingContext
13 instantiations of ResultExecutingContext
Microsoft.AspNetCore.Mvc.Core.Test (6)
Formatters\FormatFilterTest.cs (4)
78var resultExecutingContext = new ResultExecutingContext( 333var resultExecutingContext = new ResultExecutingContext( 368var resultExecutingContext = new ResultExecutingContext( 419return new ResultExecutingContext(
Infrastructure\ClientErrorResultFilterTest.cs (1)
115return new ResultExecutingContext(
ProducesAttributeTests.cs (1)
184return new ResultExecutingContext(
Microsoft.AspNetCore.Mvc.Core.TestCommon (1)
CommonFilterTest.cs (1)
212return new ResultExecutingContext(
Microsoft.AspNetCore.Mvc.RazorPages.Test (4)
Filters\PageHandlerResultFilterTest.cs (4)
31var resultExecutingContext = new ResultExecutingContext( 72var resultExecutingContext = new ResultExecutingContext( 114var resultExecutingContext = new ResultExecutingContext( 146var resultExecutingContext = new ResultExecutingContext(
Microsoft.AspNetCore.Mvc.ViewFeatures.Test (2)
Filters\SaveTempDataFilterTest.cs (2)
333return new ResultExecutingContext( 350return new ResultExecutingContext(
205 references to ResultExecutingContext
BasicWebSite (3)
Filters\RedirectAntiforgeryValidationFailedResultFilter.cs (1)
12public void OnResultExecuting(ResultExecutingContext context)
Filters\TraceOutputResultFilter.cs (1)
11public override void OnResultExecuting(ResultExecutingContext context)
Filters\UnprocessableResultFilter.cs (1)
15public void OnResultExecuting(ResultExecutingContext context)
Microsoft.AspNetCore.Mvc.Abstractions (8)
Filters\IAsyncResultFilter.cs (2)
30/// <param name="context">The <see cref="ResultExecutingContext"/>.</param> 35Task OnResultExecutionAsync(ResultExecutingContext context, ResultExecutionDelegate next);
Filters\IResultFilter.cs (2)
30/// <param name="context">The <see cref="ResultExecutingContext"/>.</param> 31void OnResultExecuting(ResultExecutingContext context);
Filters\ResultExecutedContext.cs (3)
22/// The <see cref="IActionResult"/> copied from <see cref="ResultExecutingContext.Result"/>. 39/// Gets or sets an indication that a result filter set <see cref="ResultExecutingContext.Cancel"/> to 98/// Gets the <see cref="IActionResult"/> copied from <see cref="ResultExecutingContext.Result"/>.
Filters\ResultExecutingContext.cs (1)
13/// Instantiates a new <see cref="ResultExecutingContext"/> instance.
Microsoft.AspNetCore.Mvc.Core (27)
Diagnostics\MvcDiagnostics.cs (8)
1055public BeforeResultFilterOnResultExecutionEventData(ActionDescriptor actionDescriptor, ResultExecutingContext resultExecutingContext, IFilterMetadata filter) 1070public ResultExecutingContext ResultExecutingContext { get; } 1142/// An <see cref="EventData"/> that occurs before <see cref="IResultFilter.OnResultExecuting(ResultExecutingContext)"/>. 1157public BeforeResultFilterOnResultExecutingEventData(ActionDescriptor actionDescriptor, ResultExecutingContext resultExecutingContext, IFilterMetadata filter) 1172public ResultExecutingContext ResultExecutingContext { get; } 1193/// An <see cref="EventData"/> that occurs after <see cref="IResultFilter.OnResultExecuting(ResultExecutingContext)"/>. 1208public AfterResultFilterOnResultExecutingEventData(ActionDescriptor actionDescriptor, ResultExecutingContext resultExecutingContext, IFilterMetadata filter) 1223public ResultExecutingContext ResultExecutingContext { get; }
Filters\ActionFilterAttribute.cs (2)
46public virtual void OnResultExecuting(ResultExecutingContext context) 57ResultExecutingContext context,
Filters\ControllerResultFilter.cs (3)
19ResultExecutingContext context, 30nameof(ResultExecutingContext))); 48ResultExecutingContext context,
Filters\ResultFilterAttribute.cs (2)
18public virtual void OnResultExecuting(ResultExecutingContext context) 29ResultExecutingContext context,
Formatters\FormatFilter.cs (2)
131/// <param name="context">The <see cref="ResultExecutingContext"/>.</param> 132public void OnResultExecuting(ResultExecutingContext context)
Infrastructure\ClientErrorResultFilter.cs (1)
32public void OnResultExecuting(ResultExecutingContext context)
Infrastructure\ResourceInvoker.cs (2)
1433nameof(ResultExecutingContext.Cancel), 1434typeof(ResultExecutingContext).Name,
MvcCoreDiagnosticListenerExtensions.cs (6)
771ResultExecutingContext resultExecutingContext, 785private static void BeforeOnResultExecutionImpl(DiagnosticListener diagnosticListener, ResultExecutingContext resultExecutingContext, IAsyncResultFilter filter) 831ResultExecutingContext resultExecutingContext, 845private static void BeforeOnResultExecutingImpl(DiagnosticListener diagnosticListener, ResultExecutingContext resultExecutingContext, IResultFilter filter) 861ResultExecutingContext resultExecutingContext, 875private static void AfterOnResultExecutingImpl(DiagnosticListener diagnosticListener, ResultExecutingContext resultExecutingContext, IResultFilter filter)
ProducesAttribute.cs (1)
70public virtual void OnResultExecuting(ResultExecutingContext context)
Microsoft.AspNetCore.Mvc.Core.Test (30)
ApplicationModels\DefaultApplicationModelProviderTest.cs (1)
1806public void OnResultExecuting(ResultExecutingContext context)
Formatters\FormatFilterTest.cs (8)
37var resultExecutingContext = mockObjects.CreateResultExecutingContext(); 78var resultExecutingContext = new ResultExecutingContext( 114var resultExecutingContext = mockObjects.CreateResultExecutingContext(); 291var context = mockObjects.CreateResultExecutingContext(); 308var context = mockObjects.CreateResultExecutingContext(); 333var resultExecutingContext = new ResultExecutingContext( 368var resultExecutingContext = new ResultExecutingContext( 417public ResultExecutingContext CreateResultExecutingContext()
Infrastructure\ClientErrorResultFilterTest.cs (6)
22var context = GetContext(actionResult); 37var context = GetContext(actionResult); 59var context = GetContext(actionResult); 77var context = GetContext(actionResult); 95var context = GetContext(actionResult); 113private static ResultExecutingContext GetContext(IActionResult actionResult)
Infrastructure\ControllerActionInvokerTest.cs (10)
345resultFilter.Setup(f => f.OnResultExecuting(It.IsAny<ResultExecutingContext>())).Verifiable(); 367resultFilter.Verify(f => f.OnResultExecuting(It.IsAny<ResultExecutingContext>()), Times.Once()); 407resultFilter1.Setup(f => f.OnResultExecuting(It.IsAny<ResultExecutingContext>())).Verifiable(); 410resultFilter2.Setup(f => f.OnResultExecuting(It.IsAny<ResultExecutingContext>())).Verifiable(); 434resultFilter1.Verify(f => f.OnResultExecuting(It.IsAny<ResultExecutingContext>()), Times.Once()); 436resultFilter2.Verify(f => f.OnResultExecuting(It.IsAny<ResultExecutingContext>()), Times.Once()); 469resultFilter.Setup(f => f.OnResultExecuting(It.IsAny<ResultExecutingContext>())).Verifiable(); 491resultFilter.Verify(f => f.OnResultExecuting(It.IsAny<ResultExecutingContext>()), Times.Once()); 669resultFilter.Setup(f => f.OnResultExecuting(It.IsAny<ResultExecutingContext>())).Verifiable(); 683resultFilter.Verify(f => f.OnResultExecuting(It.IsAny<ResultExecutingContext>()), Times.Once());
ProducesAttributeTests.cs (5)
23var resultExecutingContext = CreateResultExecutingContext(new IFilterMetadata[] { producesContentAttribute }); 49var resultExecutingContext = CreateResultExecutingContext(filters); 74var resultExecutingContext = CreateResultExecutingContext(filters); 177private static ResultExecutedContext CreateResultExecutedContext(ResultExecutingContext context) 182private static ResultExecutingContext CreateResultExecutingContext(IFilterMetadata[] filters)
Microsoft.AspNetCore.Mvc.Core.TestCommon (97)
CommonFilterTest.cs (16)
89It.IsAny<ResultExecutingContext>(), 94.Setup(f => f.OnResultExecuting(It.IsAny<ResultExecutingContext>())) 101var context = CreateResultExecutingContext(mock.As<IFilterMetadata>().Object); 111.Verify(f => f.OnResultExecuting(It.IsAny<ResultExecutingContext>()), Times.Once()); 123It.IsAny<ResultExecutingContext>(), 128.Setup(f => f.OnResultExecuting(It.IsAny<ResultExecutingContext>())) 129.Callback<ResultExecutingContext>(c => 139var context = CreateResultExecutingContext(mock.As<IFilterMetadata>().Object); 149.Verify(f => f.OnResultExecuting(It.IsAny<ResultExecutingContext>()), Times.Once()); 161It.IsAny<ResultExecutingContext>(), 166.Setup(f => f.OnResultExecuting(It.IsAny<ResultExecutingContext>())) 167.Callback<ResultExecutingContext>(c => 177var context = CreateResultExecutingContext(mock.As<IFilterMetadata>().Object); 187.Verify(f => f.OnResultExecuting(It.IsAny<ResultExecutingContext>()), Times.Once()); 210private static ResultExecutingContext CreateResultExecutingContext(IFilterMetadata filter) 219private static ResultExecutedContext CreateResultExecutedContext(ResultExecutingContext context)
CommonResourceInvokerTest.cs (81)
571resultFilter.Verify(f => f.OnResultExecuting(It.IsAny<ResultExecutingContext>()), Times.Once()); 765filter.Setup(f => f.OnResultExecuting(It.IsAny<ResultExecutingContext>())).Verifiable(); 774filter.Verify(f => f.OnResultExecuting(It.IsAny<ResultExecutingContext>()), Times.Once()); 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>()), 806filter1.Setup(f => f.OnResultExecuting(It.IsAny<ResultExecutingContext>())).Verifiable(); 814.Setup(f => f.OnResultExecuting(It.IsAny<ResultExecutingContext>())) 815.Callback<ResultExecutingContext>(c => 830filter1.Verify(f => f.OnResultExecuting(It.IsAny<ResultExecutingContext>()), Times.Once()); 833filter2.Verify(f => f.OnResultExecuting(It.IsAny<ResultExecutingContext>()), Times.Once()); 846filter1.Setup(f => f.OnResultExecuting(It.IsAny<ResultExecutingContext>())).Verifiable(); 854.Setup(f => f.OnResultExecutionAsync(It.IsAny<ResultExecutingContext>(), It.IsAny<ResultExecutionDelegate>())) 855.Returns<ResultExecutingContext, ResultExecutionDelegate>((c, next) => 871filter1.Verify(f => f.OnResultExecuting(It.IsAny<ResultExecutingContext>()), Times.Once()); 875f => f.OnResultExecutionAsync(It.IsAny<ResultExecutingContext>(), It.IsAny<ResultExecutionDelegate>()), 889filter1.Setup(f => f.OnResultExecuting(It.IsAny<ResultExecutingContext>())).Verifiable(); 897.Setup(f => f.OnResultExecutionAsync(It.IsAny<ResultExecutingContext>(), It.IsAny<ResultExecutionDelegate>())) 898.Returns<ResultExecutingContext, ResultExecutionDelegate>((c, next) => 913filter1.Verify(f => f.OnResultExecuting(It.IsAny<ResultExecutingContext>()), Times.Once()); 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) => 966.Setup(f => f.OnResultExecuting(It.IsAny<ResultExecutingContext>())) 967.Callback<ResultExecutingContext>(c => c.Result = result.Object) 980filter.Verify(f => f.OnResultExecuting(It.IsAny<ResultExecutingContext>()), Times.Once()); 999.Setup(f => f.OnResultExecuting(It.IsAny<ResultExecutingContext>())) 1000.Callback<ResultExecutingContext>(c => c.Result = result.Object) 1025filter.Verify(f => f.OnResultExecuting(It.IsAny<ResultExecutingContext>()), Times.Once()); 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>()), 1080resultFilter1.Setup(f => f.OnResultExecuting(It.IsAny<ResultExecutingContext>())).Verifiable(); 1095.Setup(f => f.OnResultExecuting(It.IsAny<ResultExecutingContext>())) 1109resultFilter1.Verify(f => f.OnResultExecuting(It.IsAny<ResultExecutingContext>()), Times.Once()); 1112resultFilter2.Verify(f => f.OnResultExecuting(It.IsAny<ResultExecutingContext>()), Times.Once()); 1124.Setup(f => f.OnResultExecutionAsync(It.IsAny<ResultExecutingContext>(), It.IsAny<ResultExecutionDelegate>())) 1125.Returns<ResultExecutingContext, ResultExecutionDelegate>(async (c, next) => 1137.Setup(f => f.OnResultExecuting(It.IsAny<ResultExecutingContext>())) 1152f => f.OnResultExecutionAsync(It.IsAny<ResultExecutingContext>(), It.IsAny<ResultExecutionDelegate>()), 1155resultFilter2.Verify(f => f.OnResultExecuting(It.IsAny<ResultExecutingContext>()), Times.Once()); 1293.Setup(f => f.OnResultExecuting(It.IsAny<ResultExecutingContext>())) 1294.Callback<ResultExecutingContext>((c) => 1360.Setup(f => f.OnResultExecuting(It.IsAny<ResultExecutingContext>())) 1361.Callback<ResultExecutingContext>((c) => 1736resultFilter.Setup(f => f.OnResultExecuting(It.IsAny<ResultExecutingContext>())) 1737.Callback<ResultExecutingContext>(c => Assert.Same(Result, c.Result)) 1766resultFilter.Setup(f => f.OnResultExecutionAsync(It.IsAny<ResultExecutingContext>(), It.IsAny<ResultExecutionDelegate>())) 1767.Returns<ResultExecutingContext, ResultExecutionDelegate>((c, next) => 1796resultFilter1.Setup(f => f.OnResultExecuting(It.IsAny<ResultExecutingContext>())); 1800resultFilter2.Setup(f => f.OnResultExecutionAsync(It.IsAny<ResultExecutingContext>(), It.IsAny<ResultExecutionDelegate>())); 1803resultFilter3.Setup(f => f.OnResultExecutionAsync(It.IsAny<ResultExecutingContext>(), It.IsAny<ResultExecutionDelegate>())) 1821f => f.OnResultExecuting(It.IsAny<ResultExecutingContext>()), 1827f => f.OnResultExecutionAsync(It.IsAny<ResultExecutingContext>(), It.IsAny<ResultExecutionDelegate>()), 1830f => f.OnResultExecutionAsync(It.IsAny<ResultExecutingContext>(), It.IsAny<ResultExecutionDelegate>()), 1839resultFilter.Setup(f => f.OnResultExecuting(It.IsAny<ResultExecutingContext>())) 1840.Callback<ResultExecutingContext>(c => Assert.Same(Result, c.Result)) 1869resultFilter.Setup(f => f.OnResultExecutionAsync(It.IsAny<ResultExecutingContext>(), It.IsAny<ResultExecutionDelegate>())) 1870.Returns<ResultExecutingContext, ResultExecutionDelegate>((c, next) => 1896resultFilter1.Setup(f => f.OnResultExecuting(It.IsAny<ResultExecutingContext>())); 1900resultFilter2.Setup(f => f.OnResultExecutionAsync(It.IsAny<ResultExecutingContext>(), It.IsAny<ResultExecutionDelegate>())); 1903resultFilter3.Setup(f => f.OnResultExecutionAsync(It.IsAny<ResultExecutingContext>(), It.IsAny<ResultExecutionDelegate>())) 1918f => f.OnResultExecuting(It.IsAny<ResultExecutingContext>()), 1924f => f.OnResultExecutionAsync(It.IsAny<ResultExecutingContext>(), It.IsAny<ResultExecutionDelegate>()), 1927f => f.OnResultExecutionAsync(It.IsAny<ResultExecutingContext>(), It.IsAny<ResultExecutionDelegate>()), 1936resultFilter.Setup(f => f.OnResultExecuting(It.IsAny<ResultExecutingContext>())) 1937.Callback<ResultExecutingContext>(c => Assert.Same(Result, c.Result)) 1966resultFilter.Setup(f => f.OnResultExecutionAsync(It.IsAny<ResultExecutingContext>(), It.IsAny<ResultExecutionDelegate>())) 1967.Returns<ResultExecutingContext, ResultExecutionDelegate>((c, next) => 1993resultFilter1.Setup(f => f.OnResultExecuting(It.IsAny<ResultExecutingContext>())); 1997resultFilter2.Setup(f => f.OnResultExecutionAsync(It.IsAny<ResultExecutingContext>(), It.IsAny<ResultExecutionDelegate>())); 2000resultFilter3.Setup(f => f.OnResultExecutionAsync(It.IsAny<ResultExecutingContext>(), It.IsAny<ResultExecutionDelegate>())) 2017f => f.OnResultExecuting(It.IsAny<ResultExecutingContext>()), 2023f => f.OnResultExecutionAsync(It.IsAny<ResultExecutingContext>(), It.IsAny<ResultExecutionDelegate>()), 2026f => f.OnResultExecutionAsync(It.IsAny<ResultExecutingContext>(), It.IsAny<ResultExecutionDelegate>()), 2036.Setup(f => f.OnResultExecuting(It.IsAny<ResultExecutingContext>())) 2044.Setup(f => f.OnResultExecuting(It.IsAny<ResultExecutingContext>())) 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 (3)
Filters\PageHandlerResultFIlter.cs (3)
15public Task OnResultExecutionAsync(ResultExecutingContext context, ResultExecutionDelegate next) 25nameof(ResultExecutingContext))); 43ResultExecutingContext context,
Microsoft.AspNetCore.Mvc.RazorPages.Test (30)
Filters\PageHandlerResultFilterTest.cs (8)
27.Setup(f => f.OnResultExecutionAsync(It.IsAny<ResultExecutingContext>(), It.IsAny<ResultExecutionDelegate>())) 31var resultExecutingContext = new ResultExecutingContext( 65.Setup(f => f.OnResultExecuting(It.IsAny<ResultExecutingContext>())) 72var resultExecutingContext = new ResultExecutingContext( 106.Setup(f => f.OnResultExecuting(It.IsAny<ResultExecutingContext>())) 107.Callback((ResultExecutingContext context) => context.Cancel = true) 114var resultExecutingContext = new ResultExecutingContext( 146var resultExecutingContext = new ResultExecutingContext(
Infrastructure\PageActionInvokerTest.cs (22)
177.Setup(f => f.OnResultExecuting(It.IsAny<ResultExecutingContext>())) 178.Callback<ResultExecutingContext>(c => 233.Setup(f => f.OnResultExecuting(It.IsAny<ResultExecutingContext>())) 234.Callback<ResultExecutingContext>(c => 290.Setup(f => f.OnResultExecuting(It.IsAny<ResultExecutingContext>())) 291.Callback<ResultExecutingContext>(c => 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>()), 732.Setup(f => f.OnResultExecuting(It.IsAny<ResultExecutingContext>())) 733.Callback<ResultExecutingContext>((context) => 747f => f.OnResultExecuting(It.IsAny<ResultExecutingContext>()), 859resultFilter.Setup(f => f.OnResultExecuting(It.IsAny<ResultExecutingContext>())).Verifiable(); 881resultFilter.Verify(f => f.OnResultExecuting(It.IsAny<ResultExecutingContext>()), Times.Once()); 924resultFilter1.Setup(f => f.OnResultExecuting(It.IsAny<ResultExecutingContext>())).Verifiable(); 927resultFilter2.Setup(f => f.OnResultExecuting(It.IsAny<ResultExecutingContext>())).Verifiable(); 951resultFilter1.Verify(f => f.OnResultExecuting(It.IsAny<ResultExecutingContext>()), Times.Once()); 953resultFilter2.Verify(f => f.OnResultExecuting(It.IsAny<ResultExecutingContext>()), Times.Once()); 989resultFilter.Setup(f => f.OnResultExecuting(It.IsAny<ResultExecutingContext>())).Verifiable(); 1011resultFilter.Verify(f => f.OnResultExecuting(It.IsAny<ResultExecutingContext>()), Times.Once()); 1197resultFilter.Setup(f => f.OnResultExecuting(It.IsAny<ResultExecutingContext>())).Verifiable(); 1211resultFilter.Verify(f => f.OnResultExecuting(It.IsAny<ResultExecutingContext>()), Times.Once());
Microsoft.AspNetCore.Mvc.ViewFeatures (1)
Filters\SaveTempDataFilter.cs (1)
95public void OnResultExecuting(ResultExecutingContext context)
Microsoft.AspNetCore.Mvc.ViewFeatures.Test (3)
Filters\SaveTempDataFilterTest.cs (3)
39var context = GetResultExecutingContext(httpContext); 327private ResultExecutingContext GetResultExecutingContext(ActionContext actionContext, IActionResult actionResult = null) 340private ResultExecutingContext GetResultExecutingContext(HttpContext httpContext = null, IActionResult actionResult = null)
RazorPagesWebSite (1)
ModelAsFilter.cs (1)
30public void OnResultExecuting(ResultExecutingContext context)
XmlFormattersWebSite (2)
Controllers\XmlDataContractApiController.cs (1)
16public override void OnResultExecuting(ResultExecutingContext context)
Controllers\XmlSerializedApiController.cs (1)
16public override void OnResultExecuting(ResultExecutingContext context)