Singletons vs transient vs scoped
Is it possible to retrieve non scoped dependencies via the inject attribute? It looks like, the dependencies directly injected into the function are always scoped and will be destroyed after function execution had been left.
Example @holgerleichsenring ?
Hi PureKrome,
actually to be honest I just had a look onto the code. Maybe code changed meanwhile, I just had another look here. Scope is generated per function and services are resolved from service provider. Should work out, I guess. Still unsure about services that may last longer than a function call in case when a service lifecycle is not limited to function lifecycle.
Let me know your thoughts.