< Summary

Information
Class: Elsa.Http.Features.HttpJavaScriptFeature
Assembly: Elsa.Http
File(s): /home/runner/work/elsa-core/elsa-core/src/modules/Elsa.Http/Features/HttpJavaScriptFeature.cs
Line coverage
100%
Covered lines: 4
Uncovered lines: 0
Coverable lines: 4
Total lines: 27
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
.ctor(...)100%11100%
Apply()100%11100%

File(s)

/home/runner/work/elsa-core/elsa-core/src/modules/Elsa.Http/Features/HttpJavaScriptFeature.cs

#LineLine coverage
 1using Elsa.Features.Abstractions;
 2using Elsa.Features.Attributes;
 3using Elsa.Features.Services;
 4using Elsa.Http.Scripting.JavaScript;
 5using Elsa.Expressions.JavaScript.Features;
 6using Microsoft.Extensions.DependencyInjection;
 7
 8namespace Elsa.Http.Features;
 9
 10/// <summary>
 11/// Enabled when both <see cref="HttpFeature"/> and <see cref="JavaScriptFeature"/> are enabled.
 12/// </summary>
 13[DependencyOf(typeof(HttpFeature))]
 14[DependencyOf(typeof(JavaScriptFeature))]
 15public class HttpJavaScriptFeature : FeatureBase
 16{
 17    /// <inheritdoc />
 518    public HttpJavaScriptFeature(IModule module) : base(module)
 19    {
 520    }
 21
 22    /// <inheritdoc />
 23    public override void Apply()
 24    {
 525        Services.AddNotificationHandler<HttpJavaScriptHandler>();
 526    }
 27}