Need help with using inRequestScope in inversifyJS For example:
container.bind<ITransactionManager>(Types.MysqlTransactionManager).to(MysqlTransactionManager).inRequestScope()
...
container.get<ITransactionManager>(Types.MysqlTransactionManager)//calling the MysqlTransactionManager constructor and returning the instance
container.get<ITransactionManager>(Types.MysqlTransactionManager) //constructor is called again, but I want the same instance returned instead of a new one
How can I ensure that the same instance is returned when get is called for the second time?