Skip to content

As a developer, to support a multi-tenant app, I must be able to instantiate different implementations of a workflow definition, via DI #762

@kassemdarwish

Description

@kassemdarwish

Following up on issue #748, in addition to connecting to different database by changing the connection string by tenant, you might actually want to register a different implementation of a given workflow as per the requirements of the different tenants. Some of the scenarios that I think should be supported by the AddWorkflow() (link) method are the following:

  • Generic method with a factory method which resolves the instance at runtime.
  • A non-generic method which allows locating the type at runtime (maybe from an assembly configured by tenant) and then instantiates the workflow implementation which implements a given interface.

What do you think?

Metadata

Metadata

Assignees

No one assigned

    Labels

    coreThis issue relates to the core libraryenhancementNew feature or requestprio lowIs not on the roadmap for the near-future

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions