Dependency injection
If your service uses a dependency injection provider and you want to use it to resolve class based handlers and workflows, you can provide an adapter to @node-ts/bus-core for it to use.
This is provided as an adapter passed using .withContainer() to the configuration.
This example uses inversify, but any IoC container that supports resolving instances via a class type will work.
Last updated