< Summary

Information
Class: Elsa.ShellFeatures.ElsaFastEndpointsFeature
Assembly: Elsa.Api.Common
File(s): /home/runner/work/elsa-core/elsa-core/src/common/Elsa.Api.Common/ShellFeatures/ElsaFastEndpointsFeature.cs
Line coverage
0%
Covered lines: 0
Uncovered lines: 2
Coverable lines: 2
Total lines: 22
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/common/Elsa.Api.Common/ShellFeatures/ElsaFastEndpointsFeature.cs

#LineLine coverage
 1using CShells.FastEndpoints.Contracts;
 2using CShells.Features;
 3using Elsa.FastEndpointConfigurators;
 4using JetBrains.Annotations;
 5using Microsoft.Extensions.DependencyInjection;
 6
 7namespace Elsa.ShellFeatures;
 8
 9/// <summary>
 10/// Registers the Elsa-specific FastEndpoints configurator.
 11/// This feature should be enabled alongside the CShells FastEndpointsFeature to apply Elsa's serialization settings.
 12/// </summary>
 13[ShellFeature(DependsOn = ["FastEndpoints"])]
 14[UsedImplicitly]
 15public class ElsaFastEndpointsFeature : IShellFeature
 16{
 17    /// <inheritdoc />
 18    public void ConfigureServices(IServiceCollection services)
 19    {
 020        services.AddSingleton<IFastEndpointsConfigurator, ElsaFastEndpointsConfigurator>();
 021    }
 22}