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
loggerA and loggerB cannot have same context id, even if they are resolved in same request, because context.container.get('ContextID') create a new request scope.
Possible Solution
Allow inject depedencies into factory function, like nestjs does.
I also need this functionality. Right now, there does not seem to be a way to get a dependency already resolved in request scope in toFactory, toDynamicValue etc without resetting/recreating resolved object in request scope
Make toDynamicValue binding able to injects its dependencies, to ensure its dependencies are
resolved in same scope.
Motivation
I'm trying to implements a context logger.
loggerA and loggerB cannot have same context id, even if they are resolved in same request, because
context.container.get('ContextID')
create a new request scope.Possible Solution
The text was updated successfully, but these errors were encountered: