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