< Summary

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

File(s)

/home/runner/work/elsa-core/elsa-core/src/modules/Elsa.Http/Extensions/ApplicationBuilderExtensions.cs

#LineLine coverage
 1using Elsa.Http.Middleware;
 2using Microsoft.AspNetCore.Builder;
 3
 4// ReSharper disable once CheckNamespace
 5namespace Elsa.Extensions;
 6
 7/// <summary>
 8/// Adds extension methods to <see cref="IApplicationBuilder"/> related to workflow middleware components.
 9/// </summary>
 10public static class ApplicationBuilderExtensions
 11{
 12    /// <summary>
 13    /// Installs the <see cref="HttpWorkflowsMiddleware"/> component.
 14    /// </summary>
 115    public static IApplicationBuilder UseWorkflows(this IApplicationBuilder app) => app.UseMiddleware<HttpWorkflowsMiddl
 16}