< 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: 27
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 Elsa.Platform.PackageManifest.Generator.Hints;
 4using JetBrains.Annotations;
 5using Microsoft.Extensions.DependencyInjection;
 6
 7namespace Elsa.Workflows.Api.ShellFeatures;
 8
 9/// <summary>
 10/// Sets up a SignalR hub for receiving workflow events on the client.
 11/// </summary>
 12[ManifestFeatureCategory("Workflows")]
 13[ManifestFeatureCategory("API")]
 14[ShellFeature(
 15    DisplayName = "Real-Time Workflow Updates",
 16    Description = "Provides real-time workflow updates via SignalR")]
 17[UsedImplicitly]
 18public class RealTimeWorkflowUpdatesFeature : IShellFeature
 19{
 20    public void ConfigureServices(IServiceCollection services)
 21    {
 022        services.AddSignalR();
 023        services.AddNotificationHandler<BroadcastWorkflowProgress>();
 024    }
 25}
 26
 27