< Summary

Information
Class: Elsa.Workflows.Api.Serialization.SerializationConfigurator
Assembly: Elsa.Workflows.Api
File(s): /home/runner/work/elsa-core/elsa-core/src/modules/Elsa.Workflows.Api/Serialization/SerializationConfigurator.cs
Line coverage
100%
Covered lines: 3
Uncovered lines: 0
Coverable lines: 3
Total lines: 12
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%
Configure(...)100%11100%

File(s)

/home/runner/work/elsa-core/elsa-core/src/modules/Elsa.Workflows.Api/Serialization/SerializationConfigurator.cs

#LineLine coverage
 1using System.Text.Json;
 2using Microsoft.Extensions.DependencyInjection;
 3
 4namespace Elsa.Workflows.Api.Serialization;
 5
 16internal class SerializationConfigurator(IServiceProvider serviceProvider) : SerializationOptionsConfiguratorBase
 7{
 8    public override void Configure(JsonSerializerOptions options)
 9    {
 58810        options.Converters.Add(ActivatorUtilities.GetServiceOrCreateInstance<ArgumentJsonConverterFactory>(serviceProvid
 58811    }
 12}