tsyringe icon indicating copy to clipboard operation
tsyringe copied to clipboard

Provide access to container._registry

Open leppaott opened this issue 2 years ago • 0 comments

Hello, would be nice if there was an easy way to access container._registry for iterating the token-registration pairs.

My use case currently is to iterate the instances to execute some async operations without me keeping track of which instances are really used. So I'm doing what this code does basically https://github.com/microsoft/tsyringe/blob/master/src/dependency-container.ts#L400

leppaott avatar Feb 10 '23 11:02 leppaott