10 references to ViewComponents
Microsoft.AspNetCore.Mvc.ViewFeatures (4)
DependencyInjection\MvcViewFeaturesMvcBuilderExtensions.cs (1)
48foreach (var viewComponent in feature.ViewComponents.Select(vc => vc.AsType()))
ViewComponents\DefaultViewComponentDescriptorProvider.cs (1)
45return feature.ViewComponents;
ViewComponents\ViewComponentFeatureProvider.cs (2)
22if (ViewComponentConventions.IsComponent(type) && !feature.ViewComponents.Contains(type)) 24feature.ViewComponents.Add(type);
Microsoft.AspNetCore.Mvc.ViewFeatures.Test (6)
DependencyInjection\MvcViewFeaturesMvcBuilderExtensionsTest.cs (1)
183feature.ViewComponents.Add(type);
ViewComponents\DefaultViewComponentDescriptorProviderTest.cs (1)
182feature.ViewComponents.Add(type);
ViewComponents\DefaultViewComponentHelperTest.cs (1)
203feature.ViewComponents.Add(type);
ViewComponents\DefaultViewComponentSelectorTest.cs (1)
264feature.ViewComponents.Add(type);
ViewComponents\ViewComponentFeatureProviderTest.cs (2)
27Assert.Equal(new[] { typeof(ConventionsViewComponent).GetTypeInfo() }, feature.ViewComponents.ToArray()); 44Assert.Equal(new[] { typeof(AttributeViewComponent).GetTypeInfo() }, feature.ViewComponents.ToArray());