Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

workflow services registration extensions should be chainable #16562

Closed
deanmarcussen opened this issue Aug 14, 2024 · 0 comments · Fixed by #16568
Closed

workflow services registration extensions should be chainable #16562

deanmarcussen opened this issue Aug 14, 2024 · 0 comments · Fixed by #16568

Comments

@deanmarcussen
Copy link
Member


namespace OrchardCore.Workflows.Helpers
{
    public static class ServiceCollectionExtensions
    {
        public static void AddActivity<TActivity, TDriver>(this IServiceCollection services) where TActivity : class, IActivity where TDriver : class, IDisplayDriver<IActivity>
        {
            services.Configure<WorkflowOptions>(options => options.RegisterActivity<TActivity, TDriver>());
        }
    }
}

should return IServiceCollection

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant