2022-12-31 15:16:43 +00:00
|
|
|
using Elsa.Features.Services;
|
|
|
|
|
using Elsa.Workflows.Runtime.Features;
|
|
|
|
|
|
|
|
|
|
// ReSharper disable once CheckNamespace
|
|
|
|
|
namespace Elsa.Extensions;
|
|
|
|
|
|
2023-01-02 21:24:05 +00:00
|
|
|
/// <summary>
|
|
|
|
|
/// Adds extensions to setup the <see cref="WorkflowRuntimeFeature"/> feature.
|
|
|
|
|
/// </summary>
|
2022-12-31 15:16:43 +00:00
|
|
|
public static class ModuleExtensions
|
|
|
|
|
{
|
2023-01-02 21:24:05 +00:00
|
|
|
/// <summary>
|
|
|
|
|
/// Enables the <see cref="WorkflowRuntimeFeature"/> feature.
|
|
|
|
|
/// </summary>
|
2022-12-31 15:16:43 +00:00
|
|
|
public static IModule UseWorkflowRuntime(this IModule module, Action<WorkflowRuntimeFeature>? configure = default)
|
|
|
|
|
{
|
|
|
|
|
module.Configure(configure);
|
|
|
|
|
return module;
|
|
|
|
|
}
|
|
|
|
|
}
|