< Summary

Information
Class: Elsa.Http.Handlers.ConfigureWorkflowStateSerialization
Assembly: Elsa.Http
File(s): /home/runner/work/elsa-core/elsa-core/src/modules/Elsa.Http/Handlers/ConfigureWorkflowStateSerialization.cs
Line coverage
0%
Covered lines: 0
Uncovered lines: 2
Coverable lines: 2
Total lines: 17
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
Configure(...)100%210%

File(s)

/home/runner/work/elsa-core/elsa-core/src/modules/Elsa.Http/Handlers/ConfigureWorkflowStateSerialization.cs

#LineLine coverage
 1using System.Text.Json;
 2using Elsa.Http.Serialization;
 3using Elsa.Workflows;
 4using Elsa.Workflows.State;
 5
 6namespace Elsa.Http.Handlers;
 7
 8/// <summary>
 9/// Configures the serialization of <see cref="WorkflowState"/> objects.
 10/// </summary>
 11public class ConfigureWorkflowStateSerialization : SerializationOptionsConfiguratorBase
 12{
 13    public override void Configure(JsonSerializerOptions options)
 14    {
 015        options.Converters.Add(new HttpStatusCodeCaseForWorkflowInstanceConverter());
 016    }
 17}