< Summary

Information
Class: Elsa.Extensions.ServiceProviderExtensions
Assembly: Elsa
File(s): /home/runner/work/elsa-core/elsa-core/src/modules/Elsa/Extensions/ServiceProviderExtensions.cs
Line coverage
0%
Covered lines: 0
Uncovered lines: 3
Coverable lines: 3
Total lines: 21
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
ConfigureDefaultActivityExecutionPipeline(...)100%210%

File(s)

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

#LineLine coverage
 1using Elsa.Workflows;
 2using Microsoft.Extensions.DependencyInjection;
 3
 4namespace Elsa.Extensions;
 5
 6/// <summary>
 7/// Provides extension methods to the <see cref="IServiceProvider"/>.
 8/// </summary>
 9public static class ServiceProviderExtensions
 10{
 11    /// <summary>
 12    /// Configure the default activity execution pipeline.
 13    /// </summary>
 14    public static IServiceProvider ConfigureDefaultActivityExecutionPipeline(this IServiceProvider services, Action<IAct
 15    {
 016        var pipeline = services.GetRequiredService<IActivityExecutionPipeline>();
 017        pipeline.Setup(setup);
 018        return services;
 19    }
 20
 21}