8 instantiations of PropertyActivator
Microsoft.AspNetCore.Mvc.Core (2)
Controllers\DefaultControllerPropertyActivator.cs (2)
65
p => new
PropertyActivator
<ControllerContext>(p, c => c));
70
p => new
PropertyActivator
<ControllerContext>(p, c => c)));
Microsoft.AspNetCore.Mvc.Razor (3)
DefaultTagHelperFactory.cs (1)
86
return new
PropertyActivator
<ViewContext>(property, viewContext => viewContext);
RazorPagePropertyActivator.cs (1)
134
return new
PropertyActivator
<ViewContext>(property, valueAccessor);
TagHelpers\TagHelperComponentPropertyActivator.cs (1)
45
return new
PropertyActivator
<ViewContext>(property, viewContext => viewContext);
Microsoft.AspNetCore.Mvc.RazorPages (1)
Infrastructure\DefaultPageModelFactoryProvider.cs (1)
73
new
PropertyActivator
<PageContext>(property, pageContext => pageContext);
Microsoft.AspNetCore.Mvc.ViewFeatures (2)
ViewComponents\DefaultViewComponentFactory.cs (1)
66
return new
PropertyActivator
<ViewComponentContext>(property, context => context);
ViewDataDictionaryControllerPropertyActivator.cs (1)
83
p => new
PropertyActivator
<ControllerContext>(p, GetViewDataDictionary));
47 references to PropertyActivator
Microsoft.AspNetCore.Mvc.Core (14)
Controllers\DefaultControllerPropertyActivator.cs (8)
13
private static readonly Func<Type,
PropertyActivator
<ControllerContext>[]> _getPropertiesToActivate =
15
private readonly ConcurrentDictionary<Type,
PropertyActivator
<ControllerContext>[]> _activateActions = new();
26
var
activateInfo = propertiesToActivate[i];
51
var
activateInfo = propertiesToActivate[i];
59
private static
PropertyActivator
<ControllerContext>[] GetPropertiesToActivate(Type type)
61
IEnumerable<
PropertyActivator
<ControllerContext>> activators;
62
activators =
PropertyActivator
<ControllerContext>.GetPropertiesToActivate(
67
activators = activators.Concat(
PropertyActivator
<ControllerContext>.GetPropertiesToActivate(
src\Shared\PropertyActivator\PropertyActivator.cs (6)
37
public static
PropertyActivator
<TContext>[] GetPropertiesToActivate(
40
Func<PropertyInfo,
PropertyActivator
<TContext>> createActivateInfo)
49
public static
PropertyActivator
<TContext>[] GetPropertiesToActivate(
52
Func<PropertyInfo,
PropertyActivator
<TContext>> createActivateInfo,
63
public static
PropertyActivator
<TContext>[] GetPropertiesToActivate<TAttribute>(
65
Func<PropertyInfo, TAttribute,
PropertyActivator
<TContext>> createActivateInfo,
Microsoft.AspNetCore.Mvc.Razor (18)
DefaultTagHelperFactory.cs (7)
20
private readonly ConcurrentDictionary<Type,
PropertyActivator
<ViewContext>[]> _injectActions;
21
private readonly Func<Type,
PropertyActivator
<ViewContext>[]> _getPropertiesToActivate;
22
private static readonly Func<PropertyInfo,
PropertyActivator
<ViewContext>> _createActivateInfo = CreateActivateInfo;
35
_injectActions = new ConcurrentDictionary<Type,
PropertyActivator
<ViewContext>[]>();
37
PropertyActivator
<ViewContext>.GetPropertiesToActivate(
62
var
activateInfo = propertiesToActivate[i];
84
private static
PropertyActivator
<ViewContext> CreateActivateInfo(PropertyInfo property)
RazorPagePropertyActivator.cs (4)
22
private readonly
PropertyActivator
<ViewContext>[] _propertyActivators;
38
_propertyActivators =
PropertyActivator
<ViewContext>.GetPropertiesToActivate<RazorInjectAttribute>(
51
var
activateInfo = _propertyActivators[i];
75
private static
PropertyActivator
<ViewContext> CreateActivateInfo(
TagHelpers\TagHelperComponentPropertyActivator.cs (7)
18
private readonly ConcurrentDictionary<Type,
PropertyActivator
<ViewContext>[]> _propertiesToActivate = new();
19
private readonly Func<Type,
PropertyActivator
<ViewContext>[]> _getPropertiesToActivate = GetPropertiesToActivate;
20
private static readonly Func<PropertyInfo,
PropertyActivator
<ViewContext>> _createActivateInfo = CreateActivateInfo;
38
var
activateInfo = propertiesToActivate[i];
43
private static
PropertyActivator
<ViewContext> CreateActivateInfo(PropertyInfo property)
48
private static
PropertyActivator
<ViewContext>[] GetPropertiesToActivate(Type type)
50
return
PropertyActivator
<ViewContext>.GetPropertiesToActivate(
Microsoft.AspNetCore.Mvc.RazorPages (3)
Infrastructure\DefaultPageModelFactoryProvider.cs (3)
11
private static readonly Func<PropertyInfo,
PropertyActivator
<PageContext>> _createActivateInfo =
30
var propertyActivator =
PropertyActivator
<PageContext>.GetPropertiesToActivate(
72
private static
PropertyActivator
<PageContext> CreateActivateInfo(PropertyInfo property) =>
Microsoft.AspNetCore.Mvc.ViewFeatures (12)
ViewComponents\DefaultViewComponentFactory.cs (6)
16
private readonly Func<Type,
PropertyActivator
<ViewComponentContext>[]> _getPropertiesToActivate;
17
private readonly ConcurrentDictionary<Type,
PropertyActivator
<ViewComponentContext>[]> _injectActions;
31
_getPropertiesToActivate = type =>
PropertyActivator
<ViewComponentContext>.GetPropertiesToActivate(
36
_injectActions = new ConcurrentDictionary<Type,
PropertyActivator
<ViewComponentContext>[]>();
59
var
activateInfo = propertiesToActivate[i];
64
private static
PropertyActivator
<ViewComponentContext> CreateActivateInfo(PropertyInfo property)
ViewDataDictionaryControllerPropertyActivator.cs (6)
16
private readonly Func<Type,
PropertyActivator
<ControllerContext>[]> _getPropertiesToActivate;
18
private ConcurrentDictionary<Type,
PropertyActivator
<ControllerContext>[]> _activateActions;
47
var
activateInfo = propertiesToActivate[i];
70
var
activateInfo = propertiesToActivate[i];
78
private
PropertyActivator
<ControllerContext>[] GetPropertiesToActivate(Type type)
80
var activators =
PropertyActivator
<ControllerContext>.GetPropertiesToActivate(