< 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: 26
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.Compiler;
 2using Elsa.Dsl.ElsaScript.Features;
 3using Elsa.Features.Abstractions;
 4using Elsa.Features.Attributes;
 5using Elsa.Features.Services;
 6using Elsa.WorkflowProviders.BlobStorage.Contracts;
 7using Elsa.WorkflowProviders.BlobStorage.ElsaScript.Handlers;
 8using Elsa.WorkflowProviders.BlobStorage.Features;
 9using Microsoft.Extensions.DependencyInjection;
 10
 11namespace Elsa.WorkflowProviders.BlobStorage.ElsaScript.Features;
 12
 13/// <summary>
 14/// A feature that enables ElsaScript support for the BlobStorage workflow provider.
 15/// </summary>
 16[DependsOn(typeof(BlobStorageFeature))]
 17[DependsOn(typeof(ElsaScriptFeature))]
 118public class ElsaScriptBlobStorageFeature(IModule module) : FeatureBase(module)
 19{
 20    /// <inheritdoc />
 21    public override void Apply()
 22    {
 23        // Register the ElsaScript format handler
 124        Services.AddScoped<IBlobWorkflowFormatHandler, ElsaScriptBlobWorkflowFormatHandler>();
 125    }
 26}