You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Dec 14, 2018. It is now read-only.
If a user replaces the IViewComponentHelper with something that is not IViewContextAware you will get an invalid cast exception at runtime when trying to invoke a ViewComponent TagHelper. We should try to cast the IViewComponentHelper to IViewContextAware and if it can't be cast throw an acceptable exception.
The text was updated successfully, but these errors were encountered:
Hmm. Odd we do that elsewhere. I feel like throwing to let the user know that their app is incorrectly configured would be better than silently failing.
If a user replaces the
IViewComponentHelper
with something that is notIViewContextAware
you will get an invalid cast exception at runtime when trying to invoke a ViewComponent TagHelper. We should try to cast theIViewComponentHelper
toIViewContextAware
and if it can't be cast throw an acceptable exception.The text was updated successfully, but these errors were encountered: