23 instantiations of ViewComponentDescriptor
Microsoft.AspNetCore.Mvc.ViewFeatures (2)
ViewComponents\DefaultViewComponentDescriptorProvider.cs (1)
51
var candidate = new
ViewComponentDescriptor
ViewComponents\ViewComponentContext.cs (1)
25
ViewComponentDescriptor = new
ViewComponentDescriptor
();
Microsoft.AspNetCore.Mvc.ViewFeatures.Test (20)
ViewComponentResultTest.cs (14)
74
var descriptor = new
ViewComponentDescriptor
()
172
var descriptor = new
ViewComponentDescriptor
()
203
var descriptor = new
ViewComponentDescriptor
()
234
var descriptor = new
ViewComponentDescriptor
()
265
var descriptor = new
ViewComponentDescriptor
()
306
var descriptor = new
ViewComponentDescriptor
()
337
var descriptor = new
ViewComponentDescriptor
()
368
var descriptor = new
ViewComponentDescriptor
()
400
var descriptor = new
ViewComponentDescriptor
()
442
var descriptor = new
ViewComponentDescriptor
()
483
var descriptor = new
ViewComponentDescriptor
()
543
var descriptor = new
ViewComponentDescriptor
()
583
var descriptor = new
ViewComponentDescriptor
()
622
var descriptor = new
ViewComponentDescriptor
()
ViewComponents\ContentViewComponentResultTest.cs (1)
52
var viewComponentDescriptor = new
ViewComponentDescriptor
()
ViewComponents\DefaultViewComponentActivatorTests.cs (1)
85
ViewComponentDescriptor = new
ViewComponentDescriptor
ViewComponents\HtmlContentViewComponentResultTest.cs (1)
52
var viewComponentDescriptor = new
ViewComponentDescriptor
()
ViewComponents\ViewComponentContextTest.cs (2)
33
var viewComponentDescriptor = new
ViewComponentDescriptor
();
95
var viewComponentDescriptor = new
ViewComponentDescriptor
();
ViewComponents\ViewViewComponentResultTest.cs (1)
530
var viewComponentDescriptor = new
ViewComponentDescriptor
()
TagHelpersWebSite (1)
TagHelpers\TagCloudViewComponentTagHelper.cs (1)
49
var viewComponentDescriptor = new
ViewComponentDescriptor
()
95 references to ViewComponentDescriptor
Microsoft.AspNetCore.Mvc.RazorPages (8)
PageBase.cs (4)
1203
/// <see cref="ViewComponents.
ViewComponentDescriptor
.ShortName"/> or
1204
/// <see cref="ViewComponents.
ViewComponentDescriptor
.FullName"/>.</param>
1227
/// <see cref="ViewComponents.
ViewComponentDescriptor
.ShortName"/> or
1228
/// <see cref="ViewComponents.
ViewComponentDescriptor
.FullName"/>.</param>
PageModel.cs (4)
1561
/// <see cref="ViewComponents.
ViewComponentDescriptor
.ShortName"/> or
1562
/// <see cref="ViewComponents.
ViewComponentDescriptor
.FullName"/>.</param>
1585
/// <see cref="ViewComponents.
ViewComponentDescriptor
.ShortName"/> or
1586
/// <see cref="ViewComponents.
ViewComponentDescriptor
.FullName"/>.</param>
Microsoft.AspNetCore.Mvc.ViewFeatures (43)
Controller.cs (4)
212
/// <see cref="ViewComponents.
ViewComponentDescriptor
.ShortName"/> or
213
/// <see cref="ViewComponents.
ViewComponentDescriptor
.FullName"/>.</param>
238
/// <see cref="ViewComponents.
ViewComponentDescriptor
.ShortName"/> or
239
/// <see cref="ViewComponents.
ViewComponentDescriptor
.FullName"/>.</param>
ViewComponents\DefaultViewComponentDescriptorProvider.cs (3)
32
public virtual IEnumerable<
ViewComponentDescriptor
> GetViewComponents()
48
private static
ViewComponentDescriptor
CreateDescriptor(TypeInfo typeInfo)
51
var
candidate = new ViewComponentDescriptor
ViewComponents\DefaultViewComponentHelper.cs (6)
71
var
descriptor = _selector.SelectComponent(name);
89
var
descriptor = SelectComponent(componentType);
93
private
ViewComponentDescriptor
SelectComponent(Type componentType)
98
var
descriptor = descriptors.Items[i];
113
internal static IDictionary<string, object?> GetArgumentDictionary(
ViewComponentDescriptor
descriptor, object? arguments)
129
private async Task<IHtmlContent> InvokeCoreAsync(
ViewComponentDescriptor
descriptor, object? arguments)
ViewComponents\DefaultViewComponentInvoker.cs (2)
286
private readonly
ViewComponentDescriptor
_descriptor;
288
public ViewComponentLogScope(
ViewComponentDescriptor
descriptor)
ViewComponents\DefaultViewComponentSelector.cs (8)
28
public
ViewComponentDescriptor
SelectComponent(string componentName)
52
private readonly ILookup<string,
ViewComponentDescriptor
> _lookupByShortName;
53
private readonly ILookup<string,
ViewComponentDescriptor
> _lookupByFullName;
65
public
ViewComponentDescriptor
SelectByShortName(string name)
70
public
ViewComponentDescriptor
SelectByFullName(string name)
75
private static
ViewComponentDescriptor
Select(
76
ILookup<string,
ViewComponentDescriptor
> candidates,
93
foreach (
var
candidate in matches)
ViewComponents\IViewComponentDescriptorCollectionProvider.cs (1)
7
/// Provides the currently cached collection of <see cref="
ViewComponentDescriptor
"/>.
ViewComponents\IViewComponentDescriptorProvider.cs (3)
12
/// Gets the set of <see cref="
ViewComponentDescriptor
"/>.
14
/// <returns>A list of <see cref="
ViewComponentDescriptor
"/>.</returns>
15
IEnumerable<
ViewComponentDescriptor
> GetViewComponents();
ViewComponents\IViewComponentSelector.cs (2)
15
/// <returns>A <see cref="
ViewComponentDescriptor
"/>, or <c>null</c> if no match is found.</returns>
16
ViewComponentDescriptor
SelectComponent(string componentName);
ViewComponents\ViewComponentContext.cs (3)
40
ViewComponentDescriptor
viewComponentDescriptor,
82
/// Gets or sets the <see cref="ViewComponents.
ViewComponentDescriptor
"/> for the view component being invoked.
87
public
ViewComponentDescriptor
ViewComponentDescriptor { get; set; }
ViewComponents\ViewComponentDescriptor.cs (2)
18
/// Creates a new <see cref="
ViewComponentDescriptor
"/>.
80
/// Gets or set the generated unique identifier for this <see cref="
ViewComponentDescriptor
"/>.
ViewComponents\ViewComponentDescriptorCollection.cs (4)
7
/// A cached collection of <see cref="
ViewComponentDescriptor
" />.
16
public ViewComponentDescriptorCollection(IEnumerable<
ViewComponentDescriptor
> items, int version)
20
Items = new List<
ViewComponentDescriptor
>(items);
27
public IReadOnlyList<
ViewComponentDescriptor
> Items { get; }
ViewComponents\ViewComponentInvokerCache.cs (5)
42
var
viewComponentDescriptor = viewComponentContext.ViewComponentDescriptor;
53
nameof(
ViewComponentDescriptor
.MethodInfo),
54
nameof(
ViewComponentDescriptor
)));
76
public ConcurrentDictionary<
ViewComponentDescriptor
, ObjectMethodExecutor> Entries { get; } =
77
new ConcurrentDictionary<
ViewComponentDescriptor
, ObjectMethodExecutor>();
Microsoft.AspNetCore.Mvc.ViewFeatures.Test (43)
ViewComponentResultTest.cs (22)
74
var
descriptor = new ViewComponentDescriptor()
172
var
descriptor = new ViewComponentDescriptor()
203
var
descriptor = new ViewComponentDescriptor()
234
var
descriptor = new ViewComponentDescriptor()
265
var
descriptor = new ViewComponentDescriptor()
306
var
descriptor = new ViewComponentDescriptor()
337
var
descriptor = new ViewComponentDescriptor()
368
var
descriptor = new ViewComponentDescriptor()
400
var
descriptor = new ViewComponentDescriptor()
442
var
descriptor = new ViewComponentDescriptor()
483
var
descriptor = new ViewComponentDescriptor()
543
var
descriptor = new ViewComponentDescriptor()
583
var
descriptor = new ViewComponentDescriptor()
622
var
descriptor = new ViewComponentDescriptor()
652
params
ViewComponentDescriptor
[] descriptors)
686
private HttpContext CreateHttpContext(object diagnosticListener, params
ViewComponentDescriptor
[] descriptors)
697
private ActionContext CreateActionContext(object diagnosticListener, params
ViewComponentDescriptor
[] descriptors)
702
private ActionContext CreateActionContext(params
ViewComponentDescriptor
[] descriptors)
709
private readonly
ViewComponentDescriptor
[] _descriptors;
711
public FixedSetViewComponentDescriptorProvider(params
ViewComponentDescriptor
[] descriptors)
713
_descriptors = descriptors ?? new
ViewComponentDescriptor
[0];
716
public IEnumerable<
ViewComponentDescriptor
> GetViewComponents()
ViewComponents\ContentViewComponentResultTest.cs (1)
52
var
viewComponentDescriptor = new ViewComponentDescriptor()
ViewComponents\DefaultViewComponentHelperTest.cs (7)
19
var
descriptor = CreateDescriptorForType(typeof(ViewComponentSingleParam));
34
var
descriptor = CreateDescriptorForType(typeof(ViewComponentSingleParam));
54
var
descriptor = CreateDescriptorForType(typeof(ViewComponentSingleParam));
74
var
descriptor = CreateDescriptorForType(typeof(ViewComponentMultipleParam));
100
var
descriptor = CreateDescriptorForType(typeof(ViewComponentObjectParam));
121
var
descriptor = CreateDescriptorForType(typeof(ViewComponentSingleParam));
155
private
ViewComponentDescriptor
CreateDescriptorForType(Type componentType)
ViewComponents\DefaultViewComponentSelectorTest.cs (9)
20
var
result = selector.SelectComponent("Suffix");
33
var
result = selector.SelectComponent($"{Namespace}.Suffix");
46
var
result = selector.SelectComponent("WithoutSuffix");
59
var
result = selector.SelectComponent($"{Namespace}.WithoutSuffix");
72
var
result = selector.SelectComponent("ByAttribute");
85
var
result = selector.SelectComponent("ByNamingConvention");
138
var
result = selector.SelectComponent("Namespace1.Ambiguous");
151
var
result = selector.SelectComponent("NonAmbiguousName");
166
var
result = selector.SelectComponent(name);
ViewComponents\HtmlContentViewComponentResultTest.cs (1)
52
var
viewComponentDescriptor = new ViewComponentDescriptor()
ViewComponents\ViewComponentContextTest.cs (2)
33
var
viewComponentDescriptor = new ViewComponentDescriptor();
95
var
viewComponentDescriptor = new ViewComponentDescriptor();
ViewComponents\ViewViewComponentResultTest.cs (1)
530
var
viewComponentDescriptor = new ViewComponentDescriptor()
TagHelpersWebSite (1)
TagHelpers\TagCloudViewComponentTagHelper.cs (1)
49
var
viewComponentDescriptor = new ViewComponentDescriptor()