Allow dependency injection on Workflow - #576
Conversation
|
I think it is already possible to register a WF using DI. |
|
Where is this method? public interface IWorkflowController
{
...
void RegisterWorkflow<TWorkflow>() where TWorkflow : IWorkflow, new();
void RegisterWorkflow<TWorkflow, TData>()
where TWorkflow : IWorkflow<TData>, new()
where TData : new();
...
} |
|
Ok, I saw... you mean on the |
|
The solution from |
|
@danielgerlag what do you think? could we merge this? |
danielgerlag
left a comment
There was a problem hiding this comment.
Looks good, can you increment the minor version of any libraries that need to be published?
|
Done. |
|
We use the same major version, but allow the minor and patch to vary. |
|
@danielgerlag Do you have an ETA when this code will be released? Thank you! |
|
ah, it looks like it didn't deploy because the |
It will be very usefull to can inject services/configuration into Workflow directly.
Example: