< Summary

Information
Class: Elsa.Extensions.RealTimeApplicationBuilderExtensions
Assembly: Elsa.Workflows.Api
File(s): /home/runner/work/elsa-core/elsa-core/src/modules/Elsa.Workflows.Api/RealTime/Extensions/ApplicationBuilderExtensions.cs
Line coverage
0%
Covered lines: 0
Uncovered lines: 1
Coverable lines: 1
Total lines: 16
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
UseWorkflowsSignalRHubs(...)100%210%

File(s)

/home/runner/work/elsa-core/elsa-core/src/modules/Elsa.Workflows.Api/RealTime/Extensions/ApplicationBuilderExtensions.cs

#LineLine coverage
 1using Elsa.Workflows.Api.RealTime.Hubs;
 2using Microsoft.AspNetCore.Builder;
 3
 4// ReSharper disable once CheckNamespace
 5namespace Elsa.Extensions;
 6
 7/// <summary>
 8/// Provides extensions to <see cref="IApplicationBuilder"/>.
 9/// </summary>
 10public static class RealTimeApplicationBuilderExtensions
 11{
 12    /// <summary>
 13    /// Adds SignalR hubs for receiving workflow events on the client.
 14    /// </summary>
 015    public static IApplicationBuilder UseWorkflowsSignalRHubs(this IApplicationBuilder app) => app.UseEndpoints(endpoint
 16}