< Summary

Information
Class: Elsa.Features.AppFeature
Assembly: Elsa
File(s): /home/runner/work/elsa-core/elsa-core/src/modules/Elsa/Features/AppFeature.cs
Line coverage
100%
Covered lines: 4
Uncovered lines: 0
Coverable lines: 4
Total lines: 23
Line coverage: 100%
Branch coverage
50%
Covered branches: 1
Total branches: 2
Branch coverage: 50%
Method coverage

Feature is only available for sponsors

Upgrade to PRO version

Metrics

MethodBranch coverage Crap Score Cyclomatic complexity Line coverage
.ctor(...)100%11100%
get_Configurator()100%11100%
Configure()50%22100%

File(s)

/home/runner/work/elsa-core/elsa-core/src/modules/Elsa/Features/AppFeature.cs

#LineLine coverage
 1using Elsa.Features.Abstractions;
 2using Elsa.Features.Attributes;
 3using Elsa.Features.Services;
 4
 5namespace Elsa.Features;
 6
 7/// <summary>
 8/// A wrapper for invoking application-specific configuration, ensuring it is invoked lastly.
 9/// </summary>
 10[DependsOn(typeof(ElsaFeature))]
 111public class AppFeature(IModule module) : FeatureBase(module)
 12{
 13    /// <summary>
 14    /// The configurator to invoke.
 15    /// </summary>
 316    public Action<IModule>? Configurator { get; set; }
 17
 18    /// <inheritdoc />
 19    public override void Configure()
 20    {
 121        Configurator?.Invoke(Module);
 122    }
 23}