16 references to FilterFactories
Microsoft.AspNetCore.Http.Extensions (6)
RequestDelegateFactory.cs (5)
351if (factoryContext.EndpointBuilder.FilterFactories.Count > 0) 415Debug.Assert(factoryContext.EndpointBuilder.FilterFactories.Count > 0); 487for (var i = factoryContext.EndpointBuilder.FilterFactories.Count - 1; i >= 0; i--) 489var currentFilterFactory = factoryContext.EndpointBuilder.FilterFactories[i]; 990if (factoryContext.EndpointBuilder.FilterFactories.Count > 0)
RequestDelegateFactoryOptions.cs (1)
38/// This is primarily used to run <see cref="EndpointBuilder.FilterFactories"/> and populate inferred <see cref="EndpointBuilder.Metadata"/>.
Microsoft.AspNetCore.Http.Extensions.Tests (1)
RequestDelegateFactoryTests.cs (1)
3334((List<Func<EndpointFilterFactoryContext, EndpointFilterDelegate, EndpointFilterDelegate>>)builder.FilterFactories).AddRange(filterFactories);
Microsoft.AspNetCore.Mvc.Core (2)
Routing\ActionEndpointFactory.cs (2)
456if (builder.FilterFactories.Count > 0 && controllerActionDescriptor is not null) 458var routeHandlerFilters = builder.FilterFactories;
Microsoft.AspNetCore.Routing (6)
Builder\EndpointFilterExtensions.cs (1)
109endpointBuilder.FilterFactories.Add(filterFactory);
Builder\EndpointRouteBuilderExtensions.cs (1)
208if (options.EndpointBuilder?.FilterFactories.Count > 0)
RequestDelegateFilterPipelineBuilder.cs (2)
42for (var i = options.EndpointBuilder.FilterFactories.Count - 1; i >= 0; i--) 44var currentFilterFactory = options.EndpointBuilder.FilterFactories[i];
RouteEndpointDataSource.cs (2)
248builder.FilterFactories.Insert(0, ValidationEndpointFilterFactory.Create); 254if (isRouteHandler || builder.FilterFactories.Count > 0)
Microsoft.AspNetCore.Routing.Tests (1)
RouteEndpointBuilderTest.cs (1)
155builder.FilterFactories.Add((endopintContext, next) =>