1 type derived from ActionExecutedContext
Microsoft.AspNetCore.Mvc.Core (1)
Infrastructure\ControllerActionInvoker.cs (1)
579
private sealed class ActionExecutedContextSealed :
ActionExecutedContext
1 instantiation of ActionExecutedContext
Microsoft.AspNetCore.Mvc.Core.TestCommon (1)
CommonFilterTest.cs (1)
204
return new
ActionExecutedContext
(context, context.Filters, context.Controller)
131 references to ActionExecutedContext
BasicWebSite (10)
Controllers\AsyncActionsController.cs (1)
14
public override void OnActionExecuted(
ActionExecutedContext
context)
Controllers\ContentNegotiation\FormatFilterController.cs (1)
29
public override void OnActionExecuted(
ActionExecutedContext
context)
Controllers\ContentNegotiation\NoContentDoNotTreatNullValueAsNoContentController.cs (1)
12
public override void OnActionExecuted(
ActionExecutedContext
context)
Controllers\ContentNegotiation\NoProducesContentOnClassController.cs (1)
12
public override void OnActionExecuted(
ActionExecutedContext
context)
Controllers\ContentNegotiation\NormalController.cs (1)
31
public override void OnActionExecuted(
ActionExecutedContext
context)
Controllers\ContentNegotiation\ProducesContentBaseController.cs (1)
13
public override void OnActionExecuted(
ActionExecutedContext
context)
Controllers\ContentNegotiation\ProducesContentOnClassController.cs (1)
13
public override void OnActionExecuted(
ActionExecutedContext
context)
Controllers\ContentNegotiation\ProducesWithMediaTypeParametersController.cs (1)
13
public override void OnActionExecuted(
ActionExecutedContext
context)
Filters\ServiceActionFilter.cs (1)
17
public void OnActionExecuted(
ActionExecutedContext
context)
RequestScopedFilter.cs (1)
18
public void OnActionExecuted(
ActionExecutedContext
context)
FormatterWebSite (2)
Controllers\DataContractSerializerController.cs (1)
15
public override void OnActionExecuted(
ActionExecutedContext
context)
Controllers\XmlSerializerController.cs (1)
12
public override void OnActionExecuted(
ActionExecutedContext
context)
Microsoft.AspNetCore.Mvc.Abstractions (5)
Filters\ActionExecutionDelegate.cs (3)
7
/// A delegate that asynchronously returns an <see cref="
ActionExecutedContext
"/> indicating the action or the next
11
/// A <see cref="Task"/> that on completion returns an <see cref="
ActionExecutedContext
"/>.
13
public delegate Task<
ActionExecutedContext
> ActionExecutionDelegate();
Filters\IActionFilter.cs (2)
20
/// <param name="context">The <see cref="
ActionExecutedContext
"/>.</param>
21
void OnActionExecuted(
ActionExecutedContext
context);
Microsoft.AspNetCore.Mvc.Core (24)
Diagnostics\MvcDiagnostics.cs (8)
690
public AfterActionFilterOnActionExecutionEventData(ActionDescriptor actionDescriptor,
ActionExecutedContext
actionExecutedContext, IFilterMetadata filter)
705
public
ActionExecutedContext
ActionExecutedContext { get; }
828
/// An <see cref="EventData"/> that occurs before <see cref="IActionFilter.OnActionExecuted(
ActionExecutedContext
)"/>.
843
public BeforeActionFilterOnActionExecutedEventData(ActionDescriptor actionDescriptor,
ActionExecutedContext
actionExecutedContext, IFilterMetadata filter)
858
public
ActionExecutedContext
ActionExecutedContext { get; }
879
/// An <see cref="EventData"/> that occurs after <see cref="IActionFilter.OnActionExecuted(
ActionExecutedContext
)"/>.
894
public AfterActionFilterOnActionExecutedEventData(ActionDescriptor actionDescriptor,
ActionExecutedContext
actionExecutedContext, IFilterMetadata filter)
909
public
ActionExecutedContext
ActionExecutedContext { get; }
Filters\ActionFilterAttribute.cs (1)
26
public virtual void OnActionExecuted(
ActionExecutedContext
context)
Filters\OutputCacheFilter.cs (1)
47
public void OnActionExecuted(
ActionExecutedContext
context)
Filters\ResponseCacheFilter.cs (1)
99
public void OnActionExecuted(
ActionExecutedContext
context)
Infrastructure\ControllerActionInvoker.cs (4)
340
private Task<
ActionExecutedContext
> InvokeNextActionFilterAwaitedAsync()
356
return Task.FromResult<
ActionExecutedContext
>(_actionExecutedContext);
358
static async Task<
ActionExecutedContext
> Awaited(ControllerActionInvoker invoker, Task task)
366
static async Task<
ActionExecutedContext
> Throw()
Infrastructure\ModelStateInvalidFilter.cs (2)
65
/// <param name="context">The <see cref="
ActionExecutedContext
"/>.</param>
66
public void OnActionExecuted(
ActionExecutedContext
context)
ModelBinding\UnsupportedContentTypeFilter.cs (1)
60
public void OnActionExecuted(
ActionExecutedContext
context)
MvcCoreDiagnosticListenerExtensions.cs (6)
528
ActionExecutedContext
actionExecutedContext,
542
private static void AfterOnActionExecutionImpl(DiagnosticListener diagnosticListener,
ActionExecutedContext
actionExecutedContext, IAsyncActionFilter filter)
618
ActionExecutedContext
actionExecutedContext,
632
private static void BeforeOnActionExecutedImpl(DiagnosticListener diagnosticListener,
ActionExecutedContext
actionExecutedContext, IActionFilter filter)
648
ActionExecutedContext
actionExecutedContext,
662
private static void AfterOnActionExecutedImpl(DiagnosticListener diagnosticListener,
ActionExecutedContext
actionExecutedContext, IActionFilter filter)
Microsoft.AspNetCore.Mvc.Core.Test (81)
ApplicationModels\DefaultApplicationModelProviderTest.cs (1)
1744
public void OnActionExecuted(
ActionExecutedContext
context)
Infrastructure\ControllerActionInvokerTest.cs (80)
272
.Setup(f => f.OnActionExecuted(It.IsAny<
ActionExecutedContext
>()))
273
.Callback<
ActionExecutedContext
>(c => result = c.Result)
283
filter.Verify(f => f.OnActionExecuted(It.IsAny<
ActionExecutedContext
>()), Times.Once());
299
var
resultContext = await next();
327
ActionExecutedContext
context = null;
332
.Setup(f => f.OnActionExecuted(It.IsAny<
ActionExecutedContext
>()))
333
.Callback<
ActionExecutedContext
>(c => context = c)
362
actionFilter1.Verify(f => f.OnActionExecuted(It.IsAny<
ActionExecutedContext
>()), Times.Once());
365
actionFilter2.Verify(f => f.OnActionExecuted(It.IsAny<
ActionExecutedContext
>()), Times.Never());
384
ActionExecutedContext
context = null;
389
.Setup(f => f.OnActionExecuted(It.IsAny<
ActionExecutedContext
>()))
390
.Callback<
ActionExecutedContext
>(c => context = c)
428
actionFilter1.Verify(f => f.OnActionExecuted(It.IsAny<
ActionExecutedContext
>()), Times.Once());
447
ActionExecutedContext
context = null;
452
.Setup(f => f.OnActionExecuted(It.IsAny<
ActionExecutedContext
>()))
453
.Callback<
ActionExecutedContext
>(c => context = c)
485
actionFilter1.Verify(f => f.OnActionExecuted(It.IsAny<
ActionExecutedContext
>()), Times.Once());
529
ActionExecutedContext
context = null;
534
.Setup(f => f.OnActionExecuted(It.IsAny<
ActionExecutedContext
>()))
535
.Callback<
ActionExecutedContext
>(c =>
552
filter.Verify(f => f.OnActionExecuted(It.IsAny<
ActionExecutedContext
>()), Times.Once());
563
ActionExecutedContext
context = null;
568
.Setup(f => f.OnActionExecuted(It.IsAny<
ActionExecutedContext
>()))
569
.Callback<
ActionExecutedContext
>(c =>
592
filter1.Verify(f => f.OnActionExecuted(It.IsAny<
ActionExecutedContext
>()), Times.Once());
595
filter2.Verify(f => f.OnActionExecuted(It.IsAny<
ActionExecutedContext
>()), Times.Never());
606
ActionExecutedContext
context = null;
624
.Setup(f => f.OnActionExecuted(It.IsAny<
ActionExecutedContext
>()))
625
.Callback<
ActionExecutedContext
>(c => { throw exception; })
657
.Setup(f => f.OnActionExecuted(It.IsAny<
ActionExecutedContext
>()))
658
.Callback<
ActionExecutedContext
>(c =>
681
actionFilter.Verify(f => f.OnActionExecuted(It.IsAny<
ActionExecutedContext
>()), Times.Once());
864
.Setup(f => f.OnActionExecuted(It.IsAny<
ActionExecutedContext
>()))
865
.Callback<
ActionExecutedContext
>(c => result = c.Result)
889
.Setup(f => f.OnActionExecuted(It.IsAny<
ActionExecutedContext
>()))
890
.Callback<
ActionExecutedContext
>(c => result = c.Result)
915
.Setup(f => f.OnActionExecuted(It.IsAny<
ActionExecutedContext
>()))
916
.Callback<
ActionExecutedContext
>(c => result = c.Result)
938
.Setup(f => f.OnActionExecuted(It.IsAny<
ActionExecutedContext
>()))
939
.Callback<
ActionExecutedContext
>(c => result = c.Result)
961
.Setup(f => f.OnActionExecuted(It.IsAny<
ActionExecutedContext
>()))
962
.Callback<
ActionExecutedContext
>(c => result = c.Result)
984
.Setup(f => f.OnActionExecuted(It.IsAny<
ActionExecutedContext
>()))
985
.Callback<
ActionExecutedContext
>(c => result = c.Result)
1008
.Setup(f => f.OnActionExecuted(It.IsAny<
ActionExecutedContext
>()))
1009
.Callback<
ActionExecutedContext
>(c => result = c.Result)
1031
.Setup(f => f.OnActionExecuted(It.IsAny<
ActionExecutedContext
>()))
1032
.Callback<
ActionExecutedContext
>(c => result = c.Result)
1058
.Setup(f => f.OnActionExecuted(It.IsAny<
ActionExecutedContext
>()))
1059
.Callback<
ActionExecutedContext
>(c => result = c.Result)
1084
.Setup(f => f.OnActionExecuted(It.IsAny<
ActionExecutedContext
>()))
1085
.Callback<
ActionExecutedContext
>(c => result = c.Result)
1111
.Setup(f => f.OnActionExecuted(It.IsAny<
ActionExecutedContext
>()))
1112
.Callback<
ActionExecutedContext
>(c => result = c.Result)
1140
.Setup(f => f.OnActionExecuted(It.IsAny<
ActionExecutedContext
>()))
1141
.Callback<
ActionExecutedContext
>(c => result = c.Result)
1168
.Setup(f => f.OnActionExecuted(It.IsAny<
ActionExecutedContext
>()))
1169
.Callback<
ActionExecutedContext
>(c => result = c.Result)
1198
.Setup(f => f.OnActionExecuted(It.IsAny<
ActionExecutedContext
>()))
1199
.Callback<
ActionExecutedContext
>(c => result = c.Result)
1221
.Setup(f => f.OnActionExecuted(It.IsAny<
ActionExecutedContext
>()))
1222
.Callback<
ActionExecutedContext
>(c => result = c.Result);
1247
.Setup(f => f.OnActionExecuted(It.IsAny<
ActionExecutedContext
>()))
1248
.Callback<
ActionExecutedContext
>(c => result = c.Result);
1277
.Setup(f => f.OnActionExecuted(It.IsAny<
ActionExecutedContext
>()))
1278
.Callback<
ActionExecutedContext
>(c => result = c.Result)
1307
.Setup(f => f.OnActionExecuted(It.IsAny<
ActionExecutedContext
>()))
1308
.Callback<
ActionExecutedContext
>(c => result = c.Result)
1336
.Setup(f => f.OnActionExecuted(It.IsAny<
ActionExecutedContext
>()))
1337
.Callback<
ActionExecutedContext
>(c => result = c.Result)
1364
.Setup(f => f.OnActionExecuted(It.IsAny<
ActionExecutedContext
>()))
1365
.Callback<
ActionExecutedContext
>(c => result = c.Result)
1459
.Setup(f => f.OnActionExecuted(It.IsAny<
ActionExecutedContext
>()))
1460
.Callback<
ActionExecutedContext
>(c => result = c.Result)
1484
.Setup(f => f.OnActionExecuted(It.IsAny<
ActionExecutedContext
>()))
1485
.Callback<
ActionExecutedContext
>(c => result = c.Result)
1508
.Setup(f => f.OnActionExecuted(It.IsAny<
ActionExecutedContext
>()))
1509
.Callback<
ActionExecutedContext
>(c => result = c.Result)
1532
.Setup(f => f.OnActionExecuted(It.IsAny<
ActionExecutedContext
>()))
1533
.Callback<
ActionExecutedContext
>(c => result = c.Result)
Microsoft.AspNetCore.Mvc.Core.TestCommon (5)
CommonFilterTest.cs (5)
29
.Setup(f => f.OnActionExecuted(It.IsAny<
ActionExecutedContext
>()))
45
.Verify(f => f.OnActionExecuted(It.IsAny<
ActionExecutedContext
>()), Times.Once());
67
.Setup(f => f.OnActionExecuted(It.IsAny<
ActionExecutedContext
>()))
80
.Verify(f => f.OnActionExecuted(It.IsAny<
ActionExecutedContext
>()), Times.Never());
202
private static
ActionExecutedContext
CreateActionExecutedContext(ActionExecutingContext context)
Microsoft.AspNetCore.Mvc.ViewFeatures (4)
Controller.cs (2)
331
public virtual void OnActionExecuted(
ActionExecutedContext
context)
364
static async Task Awaited(Controller controller, Task<
ActionExecutedContext
> task)
Filters\ControllerSaveTempDataPropertyFilter.cs (1)
15
public void OnActionExecuted(
ActionExecutedContext
context)
Filters\ControllerViewDataAttributeFilter.cs (1)
19
public void OnActionExecuted(
ActionExecutedContext
context)