diff --git a/src/Microsoft.AspNetCore.Mvc.ViewFeatures/ViewComponents/DefaultViewComponentFactory.cs b/src/Microsoft.AspNetCore.Mvc.ViewFeatures/ViewComponents/DefaultViewComponentFactory.cs index 5c3e23315a..f0f77ac59d 100644 --- a/src/Microsoft.AspNetCore.Mvc.ViewFeatures/ViewComponents/DefaultViewComponentFactory.cs +++ b/src/Microsoft.AspNetCore.Mvc.ViewFeatures/ViewComponents/DefaultViewComponentFactory.cs @@ -59,11 +59,7 @@ namespace Microsoft.AspNetCore.Mvc.ViewComponents { var propertiesToActivate = _injectActions.GetOrAdd( viewComponent.GetType(), - type => - PropertyActivator.GetPropertiesToActivate( - type, - typeof(ViewComponentContextAttribute), - CreateActivateInfo)); + _getPropertiesToActivate); for (var i = 0; i < propertiesToActivate.Length; i++) {