elsa-workflows / elsa-workflows/elsa-core
Simplify registration of IWorkflowResumer
Open
triaged
- Dominant language
- C#
- Stars
- 7.9k
- Forks
- 1.5k
- Avg merge
- 15h 22m
- Merged PRs (30d)
- 114
Description
## Enhancement Request
### Enhancement Overview
We have a need to inject a custom implementation of IWorkflowResumer. Currently this is not super straight forward. I believe that it would be useful to allow registration of a custom workflow resumer by setting a property in `WorkflowRuntimeFeature`.
### Proposed Enhancement
You should be able to configure the workflow resumer implementation like this:
```
elsa.UseWorkflowRuntime(workflowRuntime =>
{
workflowRuntime.WorkflowResumer = sp => sp.GetRequiredService();
});
```
Contributor guide
Assessment
This issue has not been assessed yet.