62 writes to FilterDescriptors
Microsoft.AspNetCore.Mvc.ApiExplorer.Test (15)
ApiResponseTypeProviderTest.cs (2)
90
FilterDescriptors
= filterDescriptors,
790
FilterDescriptors
= new List<FilterDescriptor>(),
DefaultApiDescriptionProviderTest.cs (13)
549
action.
FilterDescriptors
= new List<FilterDescriptor>{
691
action.
FilterDescriptors
= filterDescriptors;
801
action.
FilterDescriptors
= filterDescriptors;
844
action.
FilterDescriptors
= new List<FilterDescriptor>()
914
action.
FilterDescriptors
= new List<FilterDescriptor>()
984
action.
FilterDescriptors
= new List<FilterDescriptor>()
1075
action.
FilterDescriptors
= new List<FilterDescriptor>
1114
action.
FilterDescriptors
= new List<FilterDescriptor>
1158
action.
FilterDescriptors
= new List<FilterDescriptor>
1182
action.
FilterDescriptors
= new List<FilterDescriptor>
1247
action.
FilterDescriptors
= new List<FilterDescriptor>
1287
action.
FilterDescriptors
= new List<FilterDescriptor>
1442
action.
FilterDescriptors
= new[]
Microsoft.AspNetCore.Mvc.Core (1)
ApplicationModels\ControllerActionDescriptorBuilder.cs (1)
173
actionDescriptor.
FilterDescriptors
=
Microsoft.AspNetCore.Mvc.Core.Test (27)
ConsumesAttributeTests.cs (14)
87
FilterDescriptors
=
111
FilterDescriptors
=
118
FilterDescriptors
=
149
FilterDescriptors
=
156
FilterDescriptors
=
186
FilterDescriptors
=
193
FilterDescriptors
=
227
FilterDescriptors
=
234
FilterDescriptors
=
265
FilterDescriptors
=
272
FilterDescriptors
=
306
FilterDescriptors
=
336
FilterDescriptors
=
365
FilterDescriptors
=
Filters\FilterFactoryTest.cs (1)
330
FilterDescriptors
= filterDescriptors,
Filters\FilterProviderTest.cs (1)
142
actionContext.ActionDescriptor.
FilterDescriptors
= new List<FilterDescriptor>(
Filters\MiddlewareFilterTest.cs (1)
237
FilterDescriptors
= new List<FilterDescriptor>(),
Infrastructure\ControllerActionInvokerCacheTest.cs (1)
116
FilterDescriptors
= filterDescriptors,
Infrastructure\ControllerActionInvokerProviderTest.cs (1)
51
FilterDescriptors
= new List<FilterDescriptor>(),
Infrastructure\ControllerActionInvokerTest.cs (8)
35
FilterDescriptors
= new List<FilterDescriptor>(),
76
FilterDescriptors
= new List<FilterDescriptor>(),
107
FilterDescriptors
= new List<FilterDescriptor>(),
150
FilterDescriptors
= new List<FilterDescriptor>(),
1400
FilterDescriptors
= new List<FilterDescriptor>()
1558
FilterDescriptors
= new List<FilterDescriptor>(),
1608
FilterDescriptors
= new List<FilterDescriptor>(),
1650
FilterDescriptors
= new List<FilterDescriptor>(),
Microsoft.AspNetCore.Mvc.Cors.Test (1)
CorsAuthorizationFilterTest.cs (1)
155
actionDescriptor: new ActionDescriptor() {
FilterDescriptors
= filterDescriptors });
Microsoft.AspNetCore.Mvc.RazorPages (2)
ApplicationModels\CompiledPageActionDescriptorBuilder.cs (1)
51
FilterDescriptors
= filters,
Infrastructure\PageActionDescriptorProvider.cs (1)
104
FilterDescriptors
= Array.Empty<FilterDescriptor>(),
Microsoft.AspNetCore.Mvc.RazorPages.Test (16)
ApplicationModels\CompiledPageActionDescriptorBuilderTest.cs (5)
25
FilterDescriptors
= new List<FilterDescriptor>(),
53
FilterDescriptors
= new List<FilterDescriptor>(),
104
FilterDescriptors
= new List<FilterDescriptor>(),
146
FilterDescriptors
= new List<FilterDescriptor>(),
408
FilterDescriptors
= new List<FilterDescriptor>(),
Infrastructure\PageActionInvokerProviderTest.cs (11)
33
FilterDescriptors
= new FilterDescriptor[0],
83
FilterDescriptors
= new FilterDescriptor[0]
157
FilterDescriptors
= new FilterDescriptor[0],
205
FilterDescriptors
= new FilterDescriptor[0],
251
FilterDescriptors
= new FilterDescriptor[0],
282
FilterDescriptors
= new FilterDescriptor[0],
316
FilterDescriptors
= new FilterDescriptor[0],
322
FilterDescriptors
= new FilterDescriptor[0],
371
FilterDescriptors
= new FilterDescriptor[0],
425
FilterDescriptors
= new FilterDescriptor[0],
488
FilterDescriptors
= Array.Empty<FilterDescriptor>(),
29 references to FilterDescriptors
Microsoft.AspNetCore.Mvc.ApiExplorer (4)
ApiResponseTypeProvider.cs (2)
60
if (action.
FilterDescriptors
== null)
69
return action.
FilterDescriptors
DefaultApiDescriptionProvider.cs (2)
484
if (action.
FilterDescriptors
== null)
493
return action.
FilterDescriptors
Microsoft.AspNetCore.Mvc.ApiExplorer.Test (8)
ApiResponseTypeProviderTest.cs (8)
570
actionDescriptor.
FilterDescriptors
.Add(new FilterDescriptor(new ProducesAttribute("application/json"), FilterScope.Controller));
620
actionDescriptor.
FilterDescriptors
.Add(new FilterDescriptor(new ProducesAttribute("application/json") { Type = typeof(string) }, FilterScope.Controller));
683
actionDescriptor.
FilterDescriptors
.Add(new FilterDescriptor(new ProducesAttribute("application/pdf"), FilterScope.Action));
713
actionDescriptor.
FilterDescriptors
.Add(new FilterDescriptor(new ProducesAttribute("text/xml") { Type = typeof(BaseModel) }, FilterScope.Action));
714
actionDescriptor.
FilterDescriptors
.Add(new FilterDescriptor(new ProducesResponseTypeAttribute(typeof(ValidationProblemDetails), 400, "application/problem+json"), FilterScope.Action));
715
actionDescriptor.
FilterDescriptors
.Add(new FilterDescriptor(new ProducesResponseTypeAttribute(typeof(ProblemDetails), 404, "application/problem+json"), FilterScope.Action));
716
actionDescriptor.
FilterDescriptors
.Add(new FilterDescriptor(new ProducesResponseTypeAttribute(409), FilterScope.Action));
795
actionDescriptor.
FilterDescriptors
.Add(new FilterDescriptor(filterAttribute, FilterScope.Action));
Microsoft.AspNetCore.Mvc.Core (7)
ConsumesAttribute.cs (1)
232
return actionDescriptor.
FilterDescriptors
.Last(
Filters\DefaultFilterProvider.cs (1)
18
if (context.ActionContext.ActionDescriptor.
FilterDescriptors
!= null)
Filters\FilterFactory.cs (2)
19
var staticFilterItems = new FilterItem[actionDescriptor.
FilterDescriptors
.Count];
21
var orderedFilters = actionDescriptor.
FilterDescriptors
Routing\ActionEndpointFactory.cs (3)
401
if (action.
FilterDescriptors
!= null && action.
FilterDescriptors
.Count > 0)
403
foreach (var filter in action.
FilterDescriptors
.OrderBy(f => f, FilterDescriptorOrderComparer.Comparer).Select(f => f.Filter))
Microsoft.AspNetCore.Mvc.Core.Test (8)
ApplicationModels\ControllerActionDescriptorProviderTests.cs (4)
66
Assert.Equal(3, descriptor.
FilterDescriptors
.Count);
68
var filter1 = descriptor.
FilterDescriptors
[0];
72
var filter2 = descriptor.
FilterDescriptors
[1];
76
var filter3 = descriptor.
FilterDescriptors
[2];
Filters\FilterFactoryTest.cs (3)
155
var filterDescriptors = actionContext.ActionDescriptor.
FilterDescriptors
;
186
var filterDescriptors = actionContext.ActionDescriptor.
FilterDescriptors
;
228
var filterDescriptors = actionContext.ActionDescriptor.
FilterDescriptors
;
Infrastructure\ControllerActionInvokerProviderTest.cs (1)
57
actionDescriptor.
FilterDescriptors
.Add(new FilterDescriptor(filterAttribute, FilterScope.Action));
Microsoft.AspNetCore.Mvc.RazorPages.Test (2)
ApplicationModels\CompiledPageActionDescriptorBuilderTest.cs (2)
91
Assert.Equal(pageApplicationModel.Filters, actual.
FilterDescriptors
.Select(f => f.Filter));
171
compiledPageActionDescriptor.
FilterDescriptors
,