< Summary

Information
Class: Elsa.WorkflowProviders.BlobStorage.ElsaScript.Features.ElsaScriptBlobStorageFeature
Assembly: Elsa.WorkflowProviders.BlobStorage.ElsaScript
File(s): /home/runner/work/elsa-core/elsa-core/src/modules/Elsa.WorkflowProviders.BlobStorage.ElsaScript/Features/ElsaScriptBlobStorageFeature.cs
Line coverage
100%
Covered lines: 3
Uncovered lines: 0
Coverable lines: 3
Total lines: 25
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.WorkflowProviders.BlobStorage.ElsaScript/Features/ElsaScriptBlobStorageFeature.cs

#LineLine coverage
 1using Elsa.Dsl.ElsaScript.Features;
 2using Elsa.Features.Abstractions;
 3using Elsa.Features.Attributes;
 4using Elsa.Features.Services;
 5using Elsa.WorkflowProviders.BlobStorage.Contracts;
 6using Elsa.WorkflowProviders.BlobStorage.ElsaScript.Handlers;
 7using Elsa.WorkflowProviders.BlobStorage.Features;
 8using Microsoft.Extensions.DependencyInjection;
 9
 10namespace Elsa.WorkflowProviders.BlobStorage.ElsaScript.Features;
 11
 12/// <summary>
 13/// A feature that enables ElsaScript support for the BlobStorage workflow provider.
 14/// </summary>
 15[DependsOn(typeof(BlobStorageFeature))]
 16[DependsOn(typeof(ElsaScriptFeature))]
 717public class ElsaScriptBlobStorageFeature(IModule module) : FeatureBase(module)
 18{
 19    /// <inheritdoc />
 20    public override void Apply()
 21    {
 22        // Register the ElsaScript format handler
 723        Services.AddScoped<IBlobWorkflowFormatHandler, ElsaScriptBlobWorkflowFormatHandler>();
 724    }
 25}