< Summary

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

#LineLine coverage
 1using CShells.Features;
 2using Elsa.Workflows.Api.RealTime.Handlers;
 3using JetBrains.Annotations;
 4using Microsoft.Extensions.DependencyInjection;
 5
 6namespace Elsa.Workflows.Api.ShellFeatures;
 7
 8/// <summary>
 9/// Sets up a SignalR hub for receiving workflow events on the client.
 10/// </summary>
 11[ShellFeature(
 12    DisplayName = "Real-Time Workflow Updates",
 13    Description = "Provides real-time workflow updates via SignalR")]
 14[UsedImplicitly]
 15public class RealTimeWorkflowUpdatesFeature : IShellFeature
 16{
 17    public void ConfigureServices(IServiceCollection services)
 18    {
 019        services.AddSignalR();
 020        services.AddNotificationHandler<BroadcastWorkflowProgress>();
 021    }
 22}
 23
 24