elsa-core/src/modules/Elsa.Workflows.Management/Extensions/DependencyInjectionExtensions.cs

18 lines
552 B
C#
Raw Normal View History

using Elsa.Features.Services;
2022-06-29 13:36:27 +00:00
using Elsa.Workflows.Core.Activities;
using Elsa.Workflows.Management.Features;
namespace Elsa.Workflows.Management.Extensions;
public static class DependencyInjectionExtensions
{
public static IModule UseManagement(this IModule module, Action<WorkflowManagementFeature>? configure = default)
{
2022-06-29 13:36:27 +00:00
module.Configure<WorkflowManagementFeature>(management =>
{
management.AddActivity<NotFoundActivity>();
configure?.Invoke(management);
});
return module;
}
}