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