thiagobustamante / typescript-ioc

A Lightweight annotation-based dependency injection container for typescript.
MIT License
526 stars 64 forks source link

Per Request singletons #32

Closed nolazybits closed 4 years ago

nolazybits commented 6 years ago

for instance use case could be to get the logged in user and save it in a singleton fo the current request. So the dev can just inject the user object and knows it will have the current logged in user.

Look into inRequestScope from InversifyJS

thiagobustamante commented 4 years ago

I am working on it to the version 3 of this library