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