< Summary

Information
Class: Elsa.ShellFeatures.ElsaFeature
Assembly: Elsa
File(s): /home/runner/work/elsa-core/elsa-core/src/modules/Elsa/ShellFeatures/ElsaFeature.cs
Line coverage
0%
Covered lines: 0
Uncovered lines: 2
Coverable lines: 2
Total lines: 24
Line coverage: 0%
Branch coverage
N/A
Covered branches: 0
Total branches: 0
Branch coverage: N/A
Method coverage

Feature is only available for sponsors

Upgrade to PRO version

Metrics

MethodBranch coverage Crap Score Cyclomatic complexity Line coverage
ConfigureServices(...)100%210%

File(s)

/home/runner/work/elsa-core/elsa-core/src/modules/Elsa/ShellFeatures/ElsaFeature.cs

#LineLine coverage
 1using CShells.Features;
 2using Elsa.Workflows.Management.ShellFeatures;
 3using Elsa.Workflows.Runtime.ShellFeatures;
 4using Elsa.Platform.PackageManifest.Generator.Hints;
 5using Microsoft.Extensions.DependencyInjection;
 6
 7namespace Elsa.ShellFeatures;
 8
 9[ManifestFeatureCategory("Workflows")]
 10[ShellFeature(
 11    DisplayName = "Elsa Core",
 12    Description = "Core Elsa workflow system functionality",
 13    DependsOn = [
 14    typeof(WorkflowManagementFeature),
 15    typeof(WorkflowRuntimeFeature)
 16])]
 17public class ElsaFeature : IShellFeature
 18{
 19    public void ConfigureServices(IServiceCollection services)
 20    {
 21        // Register the shell-based feature provider to bridge shell features to the Elsa feature API
 022        services.AddSingleton<Features.Contracts.IInstalledFeatureProvider, Features.Services.ShellInstalledFeatureProvi
 023    }
 24}