< Summary

Information
Class: Elsa.Bpmn.Interchange.ShellFeatures.BpmnInterchangeFeature
Assembly: Elsa.Bpmn.Interchange
File(s): /home/runner/work/elsa-core/elsa-core/src/modules/Elsa.Bpmn.Interchange/ShellFeatures/BpmnInterchangeFeature.cs
Line coverage
0%
Covered lines: 0
Uncovered lines: 7
Coverable lines: 7
Total lines: 39
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/modules/Elsa.Bpmn.Interchange/ShellFeatures/BpmnInterchangeFeature.cs

#LineLine coverage
 1using Bpmn.Interchange;
 2using CShells.FastEndpoints.Features;
 3using CShells.Features;
 4using Elsa.Bpmn.Interchange.Binding;
 5using Elsa.Bpmn.Interchange.Handlers.Notifications;
 6using Elsa.Bpmn.Interchange.Services;
 7using Elsa.Bpmn.ShellFeatures;
 8using Elsa.Common.ShellFeatures;
 9using JetBrains.Annotations;
 10using Microsoft.Extensions.DependencyInjection;
 11
 12namespace Elsa.Bpmn.Interchange.ShellFeatures;
 13
 14/// <summary>
 15/// Provides BPMN XML interchange support to the system.
 16/// </summary>
 17/// <remarks>
 18/// The task-to-activity binding this module reads lives inside the BPMN document as an <c>elsa:</c> vendor extension,
 19/// so an exported <c>.bpmn</c> carries binding configuration — including input expressions — verbatim. Exporting a
 20/// process discloses its implementation detail; see <see cref="BpmnActivityBindingFormat"/> for the format and for why
 21/// nothing is redacted.
 22/// </remarks>
 23[ShellFeature(
 24    DisplayName = "BPMN Interchange",
 25    Description = "Provides BPMN XML interchange (import/export) capabilities for workflows.",
 26    DependsOn = [typeof(BpmnFeature)])]
 27[UsedImplicitly]
 28public class BpmnInterchangeFeature : IFastEndpointsShellFeature
 29{
 30    public void ConfigureServices(IServiceCollection services)
 31    {
 032        services.AddSingleton<BpmnActivityBindingFormat>();
 033        services.AddSingleton<BpmnWorkBinder>();
 034        services.AddSingleton<BpmnXmlReader>();
 035        services.AddSingleton<BpmnXmlWriter>();
 036        services.AddScoped<BpmnInterchangeDocumentService>();
 037        services.AddNotificationHandler<ValidateBpmnProcessBindings>();
 038    }
 39}