1 type derived from ResourceExecutingContext
Microsoft.AspNetCore.Mvc.Core (1)
Infrastructure\ResourceInvoker.cs (1)
1592
private sealed class ResourceExecutingContextSealed :
ResourceExecutingContext
10 instantiations of ResourceExecutingContext
Microsoft.AspNetCore.Mvc.Core.Test (8)
ConsumesAttributeTests.cs (3)
311
var resourceExecutingContext = new
ResourceExecutingContext
(
341
var resourceExecutingContext = new
ResourceExecutingContext
(
369
var resourceExecutingContext = new
ResourceExecutingContext
(
Filters\MiddlewareFilterTest.cs (1)
219
return new
ResourceExecutingContext
(
Formatters\FormatFilterTest.cs (4)
84
var resourceExecutingContext = new
ResourceExecutingContext
(
339
var resourceExecutingContext = new
ResourceExecutingContext
(
374
var resourceExecutingContext = new
ResourceExecutingContext
(
410
var context = new
ResourceExecutingContext
(
Microsoft.AspNetCore.Mvc.ViewFeatures.Test (2)
Filters\SaveTempDataFilterTest.cs (1)
307
return new
ResourceExecutingContext
(actionContext, filters, valueProviderFactories);
SkipStatusCodePagesAttributeTest.cs (1)
44
return new
ResourceExecutingContext
(
162 references to ResourceExecutingContext
ApiExplorerWebSite (1)
ApiExplorerDataFilter.cs (1)
26
public void OnResourceExecuting(
ResourceExecutingContext
context)
BasicWebSite (1)
Filters\TraceResourceFilter.cs (1)
14
public void OnResourceExecuting(
ResourceExecutingContext
context)
Microsoft.AspNetCore.Mvc.Abstractions (6)
Filters\IAsyncResourceFilter.cs (2)
15
/// <param name="context">The <see cref="
ResourceExecutingContext
"/>.</param>
24
ResourceExecutingContext
context,
Filters\IResourceFilter.cs (2)
15
/// <param name="context">The <see cref="
ResourceExecutingContext
"/>.</param>
16
void OnResourceExecuting(
ResourceExecutingContext
context);
Filters\ResourceExecutedContext.cs (1)
29
/// <see cref="
ResourceExecutingContext
.Result"/>.
Filters\ResourceExecutingContext.cs (1)
15
/// Creates a new <see cref="
ResourceExecutingContext
"/>.
Microsoft.AspNetCore.Mvc.Core (22)
ConsumesAttribute.cs (1)
106
public void OnResourceExecuting(
ResourceExecutingContext
context)
Diagnostics\MvcDiagnostics.cs (8)
231
public BeforeResourceFilterOnResourceExecutionEventData(ActionDescriptor actionDescriptor,
ResourceExecutingContext
resourceExecutingContext, IFilterMetadata filter)
246
public
ResourceExecutingContext
ResourceExecutingContext { get; }
318
/// An <see cref="EventData"/> that occurs before <see cref="IResourceFilter.OnResourceExecuting(
ResourceExecutingContext
)"/>.
333
public BeforeResourceFilterOnResourceExecutingEventData(ActionDescriptor actionDescriptor,
ResourceExecutingContext
resourceExecutingContext, IFilterMetadata filter)
348
public
ResourceExecutingContext
ResourceExecutingContext { get; }
369
/// An <see cref="EventData"/> that occurs after <see cref="IResourceFilter.OnResourceExecuting(
ResourceExecutingContext
)"/>.
384
public AfterResourceFilterOnResourceExecutingEventData(ActionDescriptor actionDescriptor,
ResourceExecutingContext
resourceExecutingContext, IFilterMetadata filter)
399
public
ResourceExecutingContext
ResourceExecutingContext { get; }
Filters\IMiddlewareFilterFeature.cs (1)
13
ResourceExecutingContext
? ResourceExecutingContext { get; }
Filters\MiddlewareFilter.cs (1)
22
public Task OnResourceExecutionAsync(
ResourceExecutingContext
context, ResourceExecutionDelegate next)
Filters\MiddlewareFilterFeature.cs (1)
8
public
ResourceExecutingContext
? ResourceExecutingContext { get; set; }
Formatters\FormatFilter.cs (2)
60
/// <param name="context">The <see cref="
ResourceExecutingContext
"/>.</param>
61
public void OnResourceExecuting(
ResourceExecutingContext
context)
Infrastructure\ResourceInvoker.cs (2)
937
nameof(
ResourceExecutingContext
.Result),
938
typeof(
ResourceExecutingContext
).Name,
MvcCoreDiagnosticListenerExtensions.cs (6)
198
ResourceExecutingContext
resourceExecutingContext,
212
private static void BeforeOnResourceExecutionImpl(DiagnosticListener diagnosticListener,
ResourceExecutingContext
resourceExecutingContext, IAsyncResourceFilter filter)
258
ResourceExecutingContext
resourceExecutingContext,
272
private static void BeforeOnResourceExecutingImpl(DiagnosticListener diagnosticListener,
ResourceExecutingContext
resourceExecutingContext, IResourceFilter filter)
288
ResourceExecutingContext
resourceExecutingContext,
302
private static void AfterOnResourceExecutingImpl(DiagnosticListener diagnosticListener,
ResourceExecutingContext
resourceExecutingContext, IResourceFilter filter)
Microsoft.AspNetCore.Mvc.Core.Test (42)
ApplicationModels\DefaultApplicationModelProviderTest.cs (1)
1823
public Task OnResourceExecutionAsync(
ResourceExecutingContext
context, ResourceExecutionDelegate next)
ConsumesAttributeTests.cs (3)
311
var
resourceExecutingContext = new ResourceExecutingContext(
341
var
resourceExecutingContext = new ResourceExecutingContext(
369
var
resourceExecutingContext = new ResourceExecutingContext(
Filters\MiddlewareFilterTest.cs (3)
33
var
resourceExecutingContext = GetResourceExecutingContext(httpContext);
217
private
ResourceExecutingContext
GetResourceExecutingContext(HttpContext httpContext)
477
public async Task OnResourceExecutionAsync(
ResourceExecutingContext
context, ResourceExecutionDelegate next)
Formatters\FormatFilterTest.cs (14)
38
var
resourceExecutingContext = mockObjects.CreateResourceExecutingContext(new IFilterMetadata[] { });
84
var
resourceExecutingContext = new ResourceExecutingContext(
115
var
resourceExecutingContext = mockObjects.CreateResourceExecutingContext(new IFilterMetadata[] { });
142
var
resourceExecutingContext = mockObjects.CreateResourceExecutingContext(new IFilterMetadata[] { });
159
var
resourceExecutingContext = mockObjects.CreateResourceExecutingContext(new IFilterMetadata[] { });
181
var
resourceExecutingContext = mockObjects.CreateResourceExecutingContext(new IFilterMetadata[] { produces });
198
var
resourceExecutingContext = mockObjects.CreateResourceExecutingContext(new IFilterMetadata[] { produces });
219
var
resourceExecutingContext = mockObjects.CreateResourceExecutingContext(new IFilterMetadata[] { produces });
245
var
resourceExecutingContext = mockObjects.CreateResourceExecutingContext(new IFilterMetadata[] { produces });
269
var
resourceExecutingContext = mockObjects.CreateResourceExecutingContext(new IFilterMetadata[] { });
339
var
resourceExecutingContext = new ResourceExecutingContext(
374
var
resourceExecutingContext = new ResourceExecutingContext(
408
public
ResourceExecutingContext
CreateResourceExecutingContext(IFilterMetadata[] filters)
410
var
context = new ResourceExecutingContext(
Infrastructure\ControllerActionInvokerTest.cs (21)
118
.Setup(f => f.OnResourceExecutionAsync(It.IsAny<
ResourceExecutingContext
>(), It.IsAny<ResourceExecutionDelegate>()))
119
.Returns<
ResourceExecutingContext
, ResourceExecutionDelegate>(async (c, next) =>
135
resourceFilter.Verify(f => f.OnResourceExecutionAsync(It.IsAny<
ResourceExecutingContext
>(), It.IsAny<ResourceExecutionDelegate>()), Times.Once);
167
.Setup(f => f.OnResourceExecutionAsync(It.IsAny<
ResourceExecutingContext
>(), It.IsAny<ResourceExecutionDelegate>()))
168
.Returns<
ResourceExecutingContext
, ResourceExecutionDelegate>((c, next) =>
185
resourceFilter.Verify(f => f.OnResourceExecutionAsync(It.IsAny<
ResourceExecutingContext
>(), It.IsAny<ResourceExecutionDelegate>()), Times.Once());
205
.Setup(f => f.OnResourceExecuting(It.IsAny<
ResourceExecutingContext
>()))
206
.Callback<
ResourceExecutingContext
>((resourceExecutingContext) =>
234
.Setup(f => f.OnResourceExecuting(It.IsAny<
ResourceExecutingContext
>()))
235
.Callback<
ResourceExecutingContext
>((resourceExecutingContext) =>
698
.Setup(f => f.OnResourceExecutionAsync(It.IsAny<
ResourceExecutingContext
>(), It.IsAny<ResourceExecutionDelegate>()))
699
.Returns<
ResourceExecutingContext
, ResourceExecutionDelegate>(async (c, next) =>
722
f => f.OnResourceExecutionAsync(It.IsAny<
ResourceExecutingContext
>(), It.IsAny<ResourceExecutionDelegate>()),
735
.Setup(f => f.OnResourceExecutionAsync(It.IsAny<
ResourceExecutingContext
>(), It.IsAny<ResourceExecutionDelegate>()))
736
.Returns<
ResourceExecutingContext
, ResourceExecutionDelegate>(async (c, next) =>
761
f => f.OnResourceExecutionAsync(It.IsAny<
ResourceExecutingContext
>(), It.IsAny<ResourceExecutionDelegate>()),
774
.Setup(f => f.OnResourceExecutionAsync(It.IsAny<
ResourceExecutingContext
>(), It.IsAny<ResourceExecutionDelegate>()))
775
.Returns<
ResourceExecutingContext
, ResourceExecutionDelegate>(async (c, next) =>
800
f => f.OnResourceExecutionAsync(It.IsAny<
ResourceExecutingContext
>(), It.IsAny<ResourceExecutionDelegate>()),
810
.Setup(f => f.OnResourceExecutionAsync(It.IsAny<
ResourceExecutingContext
>(), It.IsAny<ResourceExecutionDelegate>()))
811
.Returns<
ResourceExecutingContext
, ResourceExecutionDelegate>(async (c, next) =>
Microsoft.AspNetCore.Mvc.Core.TestCommon (55)
CommonResourceInvokerTest.cs (55)
1164
.Setup(f => f.OnResourceExecutionAsync(It.IsAny<
ResourceExecutingContext
>(), It.IsAny<ResourceExecutionDelegate>()))
1165
.Returns<
ResourceExecutingContext
, ResourceExecutionDelegate>(async (c, next) =>
1178
f => f.OnResourceExecutionAsync(It.IsAny<
ResourceExecutingContext
>(), It.IsAny<ResourceExecutionDelegate>()),
1188
.Setup(f => f.OnResourceExecuting(It.IsAny<
ResourceExecutingContext
>()))
1216
.Setup(f => f.OnResourceExecutionAsync(It.IsAny<
ResourceExecutingContext
>(), It.IsAny<ResourceExecutionDelegate>()))
1217
.Returns<
ResourceExecutingContext
, ResourceExecutionDelegate>(async (c, next) =>
1232
f => f.OnResourceExecutionAsync(It.IsAny<
ResourceExecutingContext
>(), It.IsAny<ResourceExecutionDelegate>()),
1245
.Setup(f => f.OnResourceExecutionAsync(It.IsAny<
ResourceExecutingContext
>(), It.IsAny<ResourceExecutionDelegate>()))
1246
.Returns<
ResourceExecutingContext
, ResourceExecutionDelegate>(async (c, next) =>
1271
f => f.OnResourceExecutionAsync(It.IsAny<
ResourceExecutingContext
>(), It.IsAny<ResourceExecutionDelegate>()),
1284
.Setup(f => f.OnResourceExecutionAsync(It.IsAny<
ResourceExecutingContext
>(), It.IsAny<ResourceExecutionDelegate>()))
1285
.Returns<
ResourceExecutingContext
, ResourceExecutionDelegate>(async (c, next) =>
1308
f => f.OnResourceExecutionAsync(It.IsAny<
ResourceExecutingContext
>(), It.IsAny<ResourceExecutionDelegate>()),
1319
.Setup(f => f.OnResourceExecutionAsync(It.IsAny<
ResourceExecutingContext
>(), It.IsAny<ResourceExecutionDelegate>()))
1320
.Returns<
ResourceExecutingContext
, ResourceExecutionDelegate>(async (c, next) =>
1337
f => f.OnResourceExecutionAsync(It.IsAny<
ResourceExecutingContext
>(), It.IsAny<ResourceExecutionDelegate>()),
1350
.Setup(f => f.OnResourceExecutionAsync(It.IsAny<
ResourceExecutingContext
>(), It.IsAny<ResourceExecutionDelegate>()))
1351
.Returns<
ResourceExecutingContext
, ResourceExecutionDelegate>(async (c, next) =>
1376
f => f.OnResourceExecutionAsync(It.IsAny<
ResourceExecutingContext
>(), It.IsAny<ResourceExecutionDelegate>()),
1387
.Setup(f => f.OnResourceExecutionAsync(It.IsAny<
ResourceExecutingContext
>(), It.IsAny<ResourceExecutionDelegate>()))
1388
.Returns<
ResourceExecutingContext
, ResourceExecutionDelegate>(async (c, next) =>
1406
f => f.OnResourceExecutionAsync(It.IsAny<
ResourceExecutingContext
>(), It.IsAny<ResourceExecutionDelegate>()),
1419
.Setup(f => f.OnResourceExecutionAsync(It.IsAny<
ResourceExecutingContext
>(), It.IsAny<ResourceExecutionDelegate>()))
1420
.Returns<
ResourceExecutingContext
, ResourceExecutionDelegate>(async (c, next) =>
1428
.Setup(f => f.OnResourceExecutionAsync(It.IsAny<
ResourceExecutingContext
>(), It.IsAny<ResourceExecutionDelegate>()))
1429
.Returns<
ResourceExecutingContext
, ResourceExecutionDelegate>((c, next) =>
1455
.Setup(f => f.OnResourceExecutionAsync(It.IsAny<
ResourceExecutingContext
>(), It.IsAny<ResourceExecutionDelegate>()))
1456
.Returns<
ResourceExecutingContext
, ResourceExecutionDelegate>(async (c, next) =>
1464
.Setup(f => f.OnResourceExecuting(It.IsAny<
ResourceExecutingContext
>()))
1465
.Callback<
ResourceExecutingContext
>((c) =>
1491
.Setup(f => f.OnResourceExecutionAsync(It.IsAny<
ResourceExecutingContext
>(), It.IsAny<ResourceExecutionDelegate>()))
1492
.Returns<
ResourceExecutingContext
, ResourceExecutionDelegate>(async (c, next) =>
1531
.Setup(f => f.OnResourceExecutionAsync(It.IsAny<
ResourceExecutingContext
>(), It.IsAny<ResourceExecutionDelegate>()))
1532
.Returns<
ResourceExecutingContext
, ResourceExecutionDelegate>(async (c, next) =>
1540
.Setup(f => f.OnResourceExecutionAsync(It.IsAny<
ResourceExecutingContext
>(), It.IsAny<ResourceExecutionDelegate>()))
1541
.Returns<
ResourceExecutingContext
, ResourceExecutionDelegate>((c, next) =>
1580
.Setup(f => f.OnResourceExecutionAsync(It.IsAny<
ResourceExecutingContext
>(), It.IsAny<ResourceExecutionDelegate>()))
1581
.Returns<
ResourceExecutingContext
, ResourceExecutionDelegate>(async (c, next) =>
1589
.Setup(f => f.OnResourceExecutionAsync(It.IsAny<
ResourceExecutingContext
>(), It.IsAny<ResourceExecutionDelegate>()))
1590
.Returns<
ResourceExecutingContext
, ResourceExecutionDelegate>((c, next) =>
1633
.Setup(f => f.OnResourceExecutionAsync(It.IsAny<
ResourceExecutingContext
>(), It.IsAny<ResourceExecutionDelegate>()))
1634
.Returns<
ResourceExecutingContext
, ResourceExecutionDelegate>(async (c, next) =>
1641
.Setup(f => f.OnResourceExecuting(It.IsAny<
ResourceExecutingContext
>()))
1642
.Callback<
ResourceExecutingContext
>((c) =>
1682
.Setup(f => f.OnResourceExecutionAsync(It.IsAny<
ResourceExecutingContext
>(), It.IsAny<ResourceExecutionDelegate>()))
1683
.Returns<
ResourceExecutingContext
, ResourceExecutionDelegate>(async (c, next) =>
1705
.Setup(f => f.OnResourceExecutionAsync(It.IsAny<
ResourceExecutingContext
>(), It.IsAny<ResourceExecutionDelegate>()))
1706
.Returns<
ResourceExecutingContext
, ResourceExecutionDelegate>(async (c, next) =>
1727
f => f.OnResourceExecutionAsync(It.IsAny<
ResourceExecutingContext
>(), It.IsAny<ResourceExecutionDelegate>()),
1848
.Setup(f => f.OnResourceExecutionAsync(It.IsAny<
ResourceExecutingContext
>(), It.IsAny<ResourceExecutionDelegate>()))
1849
.Returns<
ResourceExecutingContext
, ResourceExecutionDelegate>((c, next) =>
1879
.Setup(f => f.OnResourceExecuting(It.IsAny<
ResourceExecutingContext
>()))
1880
.Callback<
ResourceExecutingContext
>(c => c.Result = Result);
1908
.Setup(f => f.OnResourceExecuting(It.IsAny<
ResourceExecutingContext
>()))
1909
.Callback<
ResourceExecutingContext
>(c => c.Result = Result);
Microsoft.AspNetCore.Mvc.RazorPages.Test (22)
Infrastructure\PageActionInvokerTest.cs (22)
91
.Setup(f => f.OnResourceExecuting(It.IsAny<
ResourceExecutingContext
>()))
92
.Callback<
ResourceExecutingContext
>((resourceExecutingContext) =>
122
.Setup(f => f.OnResourceExecuting(It.IsAny<
ResourceExecutingContext
>()))
123
.Callback<
ResourceExecutingContext
>((resourceExecutingContext) =>
628
.Setup(f => f.OnResourceExecutionAsync(It.IsAny<
ResourceExecutingContext
>(), It.IsAny<ResourceExecutionDelegate>()))
629
.Returns<
ResourceExecutingContext
, ResourceExecutionDelegate>((context, next) =>
644
f => f.OnResourceExecutionAsync(It.IsAny<
ResourceExecutingContext
>(), It.IsAny<ResourceExecutionDelegate>()),
663
.Setup(f => f.OnResourceExecuting(It.IsAny<
ResourceExecutingContext
>()))
664
.Callback<
ResourceExecutingContext
>((context) =>
678
f => f.OnResourceExecuting(It.IsAny<
ResourceExecutingContext
>()),
1226
.Setup(f => f.OnResourceExecutionAsync(It.IsAny<
ResourceExecutingContext
>(), It.IsAny<ResourceExecutionDelegate>()))
1227
.Returns<
ResourceExecutingContext
, ResourceExecutionDelegate>(async (c, next) =>
1251
f => f.OnResourceExecutionAsync(It.IsAny<
ResourceExecutingContext
>(), It.IsAny<ResourceExecutionDelegate>()),
1264
.Setup(f => f.OnResourceExecutionAsync(It.IsAny<
ResourceExecutingContext
>(), It.IsAny<ResourceExecutionDelegate>()))
1265
.Returns<
ResourceExecutingContext
, ResourceExecutionDelegate>(async (c, next) =>
1291
f => f.OnResourceExecutionAsync(It.IsAny<
ResourceExecutingContext
>(), It.IsAny<ResourceExecutionDelegate>()),
1304
.Setup(f => f.OnResourceExecutionAsync(It.IsAny<
ResourceExecutingContext
>(), It.IsAny<ResourceExecutionDelegate>()))
1305
.Returns<
ResourceExecutingContext
, ResourceExecutionDelegate>(async (c, next) =>
1330
f => f.OnResourceExecutionAsync(It.IsAny<
ResourceExecutingContext
>(), It.IsAny<ResourceExecutionDelegate>()),
1340
.Setup(f => f.OnResourceExecutionAsync(It.IsAny<
ResourceExecutingContext
>(), It.IsAny<ResourceExecutionDelegate>()))
1341
.Returns<
ResourceExecutingContext
, ResourceExecutionDelegate>(async (c, next) =>
1380
resourceFilter.Verify(f => f.OnResourceExecutionAsync(It.IsAny<
ResourceExecutingContext
>(), It.IsAny<ResourceExecutionDelegate>()), Times.Once());
Microsoft.AspNetCore.Mvc.ViewFeatures (2)
Filters\SaveTempDataFilter.cs (1)
30
public void OnResourceExecuting(
ResourceExecutingContext
context)
SkipStatusCodePagesAttribute.cs (1)
22
public void OnResourceExecuting(
ResourceExecutingContext
context)
Microsoft.AspNetCore.Mvc.ViewFeatures.Test (10)
Filters\SaveTempDataFilterTest.cs (7)
65
var
context = GetResourceExecutingContext(httpContext);
108
var
context = GetResourceExecutingContext(httpContext);
130
var
context = GetResourceExecutingContext(httpContext);
149
var
resourceContext = GetResourceExecutingContext(httpContext);
169
var
resourceContext = GetResourceExecutingContext(httpContext);
190
var
context = GetResourceExecutingContext(actionContext);
295
private
ResourceExecutingContext
GetResourceExecutingContext(HttpContext httpContext)
SkipStatusCodePagesAttributeTest.cs (3)
20
var
resourceExecutingContext = CreateResourceExecutingContext(new IFilterMetadata[] { skipStatusCodeAttribute });
36
var
resourceExecutingContext = CreateResourceExecutingContext(new IFilterMetadata[] { skipStatusCodeAttribute });
42
private static
ResourceExecutingContext
CreateResourceExecutingContext(IFilterMetadata[] filters)
RazorPagesWebSite (1)
Pages\Filters\TestPageModelFilter.cs (1)
14
public void OnResourceExecuting(
ResourceExecutingContext
context)