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
Register classes like ExpressionBuilder, TypeManager, etc as services and use the hosting framework to for managing their lifetime and injecting dependencies. (This issue)
The text was updated successfully, but these errors were encountered:
Background
Currently services leak out their dependencies via properties e.g ExpressionBuildsr leaks out TypeManager and TypeManager leaks out TypeResolver.
Use dependencies via DI and keep them private.
Solution
The solution is over two parts:
The text was updated successfully, but these errors were encountered: