using Elsa.Features.Services;
using Elsa.Workflows.Core.Activities;
using Elsa.Workflows.Management.Features;
// ReSharper disable once CheckNamespace
namespace Elsa.Extensions;
///
/// Provides extensions to the specified /
///
public static class ModuleExtensions
{
///
/// Adds the workflow management feature to the specified module.
///
public static IModule UseWorkflowManagement(this IModule module, Action? configure = default)
{
module.Configure(management =>
{
management.AddActivity();
configure?.Invoke(management);
});
return module;
}
}