< Summary

Information
Class: Elsa.Workflows.Runtime.Distributed.ShellFeatures.DistributedRuntimeFeature
Assembly: Elsa.Workflows.Runtime.Distributed
File(s): /home/runner/work/elsa-core/elsa-core/src/modules/Elsa.Workflows.Runtime.Distributed/ShellFeatures/DistributedRuntimeFeature.cs
Line coverage
0%
Covered lines: 0
Uncovered lines: 6
Coverable lines: 6
Total lines: 26
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.Workflows.Runtime.Distributed/ShellFeatures/DistributedRuntimeFeature.cs

#LineLine coverage
 1using CShells.Features;
 2using JetBrains.Annotations;
 3using Microsoft.Extensions.DependencyInjection;
 4
 5namespace Elsa.Workflows.Runtime.Distributed.ShellFeatures;
 6
 7/// <summary>
 8/// Installs and configures distributed workflow runtime features.
 9/// </summary>
 10[ShellFeature(
 11    DisplayName = "Distributed Runtime",
 12    Description = "Provides distributed workflow runtime capabilities",
 13    DependsOn = ["WorkflowRuntime", "Resilience"])]
 14[UsedImplicitly]
 15public class DistributedRuntimeFeature : IShellFeature
 16{
 17    public void ConfigureServices(IServiceCollection services)
 18    {
 019        services
 020            .AddScoped<DistributedWorkflowRuntime>()
 021            .AddScoped<IWorkflowRuntime>(sp => sp.GetRequiredService<DistributedWorkflowRuntime>())
 022            .AddScoped<DistributedBookmarkQueueWorker>()
 023            .AddScoped<IBookmarkQueueWorker>(sp => sp.GetRequiredService<DistributedBookmarkQueueWorker>());
 024    }
 25}
 26