2023-04-17 21:59:02 +00:00
|
|
|
using Elsa.Features.Abstractions;
|
|
|
|
|
using Elsa.Features.Attributes;
|
|
|
|
|
using Elsa.Features.Services;
|
|
|
|
|
|
|
|
|
|
namespace Elsa.Features;
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// A wrapper for invoking application-specific configuration, ensuring it is invoked lastly.
|
|
|
|
|
/// </summary>
|
|
|
|
|
[DependsOn(typeof(ElsaFeature))]
|
2025-02-14 23:12:52 +00:00
|
|
|
public class AppFeature(IModule module) : FeatureBase(module)
|
2023-04-17 21:59:02 +00:00
|
|
|
{
|
2023-07-17 20:11:41 +00:00
|
|
|
/// <summary>
|
|
|
|
|
/// The configurator to invoke.
|
|
|
|
|
/// </summary>
|
2023-04-17 21:59:02 +00:00
|
|
|
public Action<IModule>? Configurator { get; set; }
|
|
|
|
|
|
2023-07-17 20:11:41 +00:00
|
|
|
/// <inheritdoc />
|
2023-04-17 21:59:02 +00:00
|
|
|
public override void Configure()
|
|
|
|
|
{
|
|
|
|
|
Configurator?.Invoke(Module);
|
|
|
|
|
}
|
|
|
|
|
}
|