elsa-workflows / elsa-workflows/elsa-core

Simplify registration of IWorkflowResumer

Open
#6,981 0 comments 0 reactions 0 assignees View on GitHub
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.