1 implementation of IViewComponentSelector
Microsoft.AspNetCore.Mvc.ViewFeatures (1)
ViewComponents\DefaultViewComponentSelector.cs (1)
12
public class DefaultViewComponentSelector :
IViewComponentSelector
21 references to IViewComponentSelector
Microsoft.AspNetCore.Mvc.ViewFeatures (5)
DependencyInjection\MvcViewFeaturesMvcCoreBuilderExtensions.cs (1)
171
services.TryAddSingleton<
IViewComponentSelector
, DefaultViewComponentSelector>();
ViewComponents\DefaultViewComponentHelper.cs (3)
24
private readonly
IViewComponentSelector
_selector;
34
/// <param name="selector">The <see cref="
IViewComponentSelector
"/>.</param>
41
IViewComponentSelector
selector,
ViewComponents\DefaultViewComponentSelector.cs (1)
10
/// Default implementation of <see cref="
IViewComponentSelector
"/>.
Microsoft.AspNetCore.Mvc.ViewFeatures.Test (16)
ViewComponentResultTest.cs (2)
153
services.AddSingleton<
IViewComponentSelector
>();
666
services.AddSingleton<
IViewComponentSelector
, DefaultViewComponentSelector>();
ViewComponents\DefaultViewComponentHelperTest.cs (2)
143
var
selector = Mock.Of<
IViewComponentSelector
>();
ViewComponents\DefaultViewComponentSelectorTest.cs (12)
17
var
selector = CreateSelector();
30
var
selector = CreateSelector();
43
var
selector = CreateSelector();
56
var
selector = CreateSelector();
69
var
selector = CreateSelector();
82
var
selector = CreateSelector();
95
var
selector = CreateSelector();
116
var
selector = CreateSelector();
135
var
selector = CreateSelector();
148
var
selector = CreateSelector();
163
var
selector = CreateSelector();
172
private
IViewComponentSelector
CreateSelector()