< Summary

Information
Class: Elsa.Workflows.Api.Features.RealTimeWorkflowUpdatesFeature
Assembly: Elsa.Workflows.Api
File(s): /home/runner/work/elsa-core/elsa-core/src/modules/Elsa.Workflows.Api/Features/RealTimeWorkflowUpdatesFeature.cs
Line coverage
0%
Covered lines: 0
Uncovered lines: 5
Coverable lines: 5
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
.ctor(...)100%210%
Apply()100%210%

File(s)

/home/runner/work/elsa-core/elsa-core/src/modules/Elsa.Workflows.Api/Features/RealTimeWorkflowUpdatesFeature.cs

#LineLine coverage
 1using Elsa.Features.Abstractions;
 2using Elsa.Features.Services;
 3using Elsa.Workflows.Api.RealTime.Handlers;
 4using Microsoft.Extensions.DependencyInjection;
 5
 6namespace Elsa.Workflows.Api.Features;
 7
 8/// <summary>
 9/// Sets up a SignalR hub for receiving workflow events on the client.
 10/// </summary>
 11public class RealTimeWorkflowUpdatesFeature : FeatureBase
 12{
 13    /// <inheritdoc />
 014    public RealTimeWorkflowUpdatesFeature(IModule module) : base(module)
 15    {
 016    }
 17
 18    /// <inheritdoc />
 19    public override void Apply()
 20    {
 021        Services.AddSignalR();
 022        Services.AddNotificationHandler<BroadcastWorkflowProgress>();
 023    }
 24}