45 references to FeatureProviders
Microsoft.AspNetCore.Identity.UI (1)
IdentityBuilderUIExtensions.cs (1)
56apm.FeatureProviders.Add(new ViewVersionFeatureProvider(framework));
Microsoft.AspNetCore.Mvc.Core (3)
ApplicationParts\ApplicationPartManager.cs (1)
45foreach (var provider in FeatureProviders.OfType<IApplicationFeatureProvider<TFeature>>())
DependencyInjection\MvcCoreServiceCollectionExtensions.cs (2)
66if (!manager.FeatureProviders.OfType<ControllerFeatureProvider>().Any()) 68manager.FeatureProviders.Add(new ControllerFeatureProvider());
Microsoft.AspNetCore.Mvc.Core.Test (16)
ApplicationModels\ControllerActionDescriptorProviderTests.cs (1)
1385manager.FeatureProviders.Add(new TestFeatureProvider());
ApplicationModels\EndpointMetadataProviderTest.cs (1)
240manager.FeatureProviders.Add(new TestFeatureProvider());
ApplicationParts\ApplicationPartManagerTest.cs (5)
16manager.FeatureProviders.Add( 18manager.FeatureProviders.Add( 43manager.FeatureProviders.Add( 45manager.FeatureProviders.Add( 64manager.FeatureProviders.Add(
Controllers\ControllerFeatureProviderTest.cs (1)
387manager.FeatureProviders.Add(new ControllerFeatureProvider());
DependencyInjection\MvcBuilderExtensionsTest.cs (2)
118manager.FeatureProviders.Add(new TestFeatureProvider()); 172manager.FeatureProviders.Add(new ControllerFeatureProvider());
DependencyInjection\MvcCoreServiceCollectionExtensionsTest.cs (5)
123Assert.Contains(manager.FeatureProviders, provider => provider is ControllerFeatureProvider); 143Assert.Contains(manager.FeatureProviders, provider => provider is ControllerFeatureProvider); 161Assert.Contains(builder.PartManager.FeatureProviders, provider => provider is ControllerFeatureProvider); 185Assert.Contains(builder.PartManager.FeatureProviders, provider => provider is ControllerFeatureProvider); 209Assert.Contains(builder.PartManager.FeatureProviders, provider => provider is ControllerFeatureProvider);
Infrastructure\ActionSelectorTest.cs (1)
1019manager.FeatureProviders.Add(new TestFeatureProvider());
Microsoft.AspNetCore.Mvc.FunctionalTests (1)
AntiforgeryMiddlewareTest.cs (1)
273partManager.FeatureProviders.Add(new TestControllerFeatureProvider());
Microsoft.AspNetCore.Mvc.Razor (5)
DependencyInjection\MvcRazorMvcCoreBuilderExtensions.cs (4)
66if (!partManager.FeatureProviders.OfType<TagHelperFeatureProvider>().Any()) 68partManager.FeatureProviders.Add(new TagHelperFeatureProvider()); 71if (!partManager.FeatureProviders.OfType<RazorCompiledItemFeatureProvider>().Any()) 73partManager.FeatureProviders.Add(new RazorCompiledItemFeatureProvider());
RazorHotReload.cs (1)
29_razorCompiledItemFeatureProvider = applicationPartManager.FeatureProviders.OfType<RazorCompiledItemFeatureProvider>().FirstOrDefault();
Microsoft.AspNetCore.Mvc.Razor.Test (3)
Compilation\DefaultViewCompilerTest.cs (1)
141manager.FeatureProviders.Add(featureProvider);
DependencyInjection\MvcRazorMvcBuilderExtensionsTest.cs (1)
43manager.FeatureProviders.Add(new TagHelperFeatureProvider());
DependencyInjection\MvcRazorMvcCoreBuilderExtensionsTest.cs (1)
83manager.FeatureProviders.Add(new TestFeatureProvider());
Microsoft.AspNetCore.Mvc.RazorPages.Test (2)
Builder\PageActionEndpointConventionBuilderResourceCollectionExtensionsTest.cs (2)
226apm.FeatureProviders.Clear(); 227apm.FeatureProviders.Add(new TestRazorPagesFeatureProvider());
Microsoft.AspNetCore.Mvc.Test (1)
MvcServiceCollectionExtensionsTest.cs (1)
369Assert.Collection(manager.FeatureProviders,
Microsoft.AspNetCore.Mvc.ViewFeatures (2)
DependencyInjection\MvcViewFeaturesMvcCoreBuilderExtensions.cs (2)
64if (!manager.FeatureProviders.OfType<ViewComponentFeatureProvider>().Any()) 66manager.FeatureProviders.Add(new ViewComponentFeatureProvider());
Microsoft.AspNetCore.Mvc.ViewFeatures.Test (8)
Builder\ControllerActionEndpointConventionBuilderResourceCollectionExtensionsTest.cs (2)
299apm.FeatureProviders.Clear(); 300apm.FeatureProviders.Add(new TestControllerFeatureProvider());
DependencyInjection\MvcViewFeaturesMvcBuilderExtensionsTest.cs (1)
134manager.FeatureProviders.Add(new TestProvider());
ViewComponents\DefaultViewComponentDescriptorProviderTest.cs (1)
172manager.FeatureProviders.Add(new TestFeatureProvider());
ViewComponents\DefaultViewComponentHelperTest.cs (1)
193manager.FeatureProviders.Add(new TestFeatureProvider());
ViewComponents\DefaultViewComponentSelectorTest.cs (1)
254manager.FeatureProviders.Add(new TestFeatureProvider());
ViewComponents\ViewComponentFeatureProviderTest.cs (2)
19manager.FeatureProviders.Add(new ViewComponentFeatureProvider()); 36manager.FeatureProviders.Add(new ViewComponentFeatureProvider());
Mvc.RoutingWebSite (3)
StartupForRouteGroupsWithMetadata.cs (3)
22var old = builder.PartManager.FeatureProviders.OfType<IApplicationFeatureProvider<ControllerFeature>>().FirstOrDefault(); 23builder.PartManager.FeatureProviders.Remove(old); 24builder.PartManager.FeatureProviders.Add(