< Summary

Information
Class: Elsa.Workflows.IOutputConverter
Assembly: Elsa.Workflows.Core
File(s): /home/runner/work/elsa-core/elsa-core/src/modules/Elsa.Workflows.Core/Contracts/IOutputConverter.cs
Line coverage
100%
Covered lines: 1
Uncovered lines: 0
Coverable lines: 1
Total lines: 21
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
ValidateSettings(...)100%11100%

File(s)

/home/runner/work/elsa-core/elsa-core/src/modules/Elsa.Workflows.Core/Contracts/IOutputConverter.cs

#LineLine coverage
 1using System.Text.Json;
 2using Elsa.Workflows.Models;
 3
 4namespace Elsa.Workflows;
 5
 6/// <summary>
 7/// Converts a native activity output into a value suitable for one output binding.
 8/// Implementations must be synchronous, deterministic and side-effect free.
 9/// </summary>
 10public interface IOutputConverter
 11{
 12    /// <summary>
 13    /// Converts a non-null native output value into a bound value.
 14    /// </summary>
 15    object? Convert(OutputConversionContext context);
 16
 17    /// <summary>
 18    /// Validates optional per-binding settings. Returned messages must not include sensitive setting values.
 19    /// </summary>
 820    IEnumerable<string> ValidateSettings(JsonElement? settings) => [];
 21}