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