Refactored multiple classes to align with modern C# coding practices such as object initializers and nullable type handling. Added a new base class for checklist dropdown providers to enhance UI configuration extensibility. Simplified constructors for feature classes by adopting record-like syntax, improving readability and maintainability.
23 lines
583 B
C#
23 lines
583 B
C#
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))]
|
|
public class AppFeature(IModule module) : FeatureBase(module)
|
|
{
|
|
/// <summary>
|
|
/// The configurator to invoke.
|
|
/// </summary>
|
|
public Action<IModule>? Configurator { get; set; }
|
|
|
|
/// <inheritdoc />
|
|
public override void Configure()
|
|
{
|
|
Configurator?.Invoke(Module);
|
|
}
|
|
} |