node-ts / bus

A typescript based enterprise service bus framework based on enterprise integration patterns
https://bus.node-ts.com/
MIT License
272 stars 25 forks source link

Use container to get workflows #169

Closed adenhertog closed 2 years ago

adenhertog commented 2 years ago

Closes #157

When a ContainerAdapter is provided, it should be used when getting workflow instances to dispatch messages to. Depending on the IoC container, fetching a Workflow instance that hasn't been registered with the container should throw a descriptive error and encourage the consumer to register it.

When a ContainerAdapter is not provided, the system should fallback to manually constructing the workflow