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
If you create your own event handler that seeks to implement IHandleUserEmailConfirmed (or IHandleUserEmailUpdated)
and if that event handler tries to DI inject UserPropertyService (to ask questions about user's kvp values)
then the app hangs silently on startup (runtime) presumably due to a circular dependency.
Attempts to rectify that by changing UserPropertyService to depend upon UserManager instead -
result in a bunch of even more confusing circular dependency errors throughout the application, all centered around the UserManager.
Possible remedy - another simpler DI service in cs core that answers the simple question (Get user by id) that is currently being requested of SiteUserManager.
So remove any dependency of UserPropertyService on any UserManager service.
The text was updated successfully, but these errors were encountered:
UserPropertyService depends upon SiteUserManager
However SiteUserManager itself DI injects:
If you create your own event handler that seeks to implement IHandleUserEmailConfirmed (or IHandleUserEmailUpdated)
and if that event handler tries to DI inject UserPropertyService (to ask questions about user's kvp values)
then the app hangs silently on startup (runtime) presumably due to a circular dependency.
Attempts to rectify that by changing UserPropertyService to depend upon UserManager instead -
result in a bunch of even more confusing circular dependency errors throughout the application, all centered around the UserManager.
Possible remedy - another simpler DI service in cs core that answers the simple question (Get user by id) that is currently being requested of SiteUserManager.
So remove any dependency of UserPropertyService on any UserManager service.
The text was updated successfully, but these errors were encountered: