< Summary

Information
Class: Elsa.Workflows.Management.Options.ManagementOptions
Assembly: Elsa.Workflows.Management
File(s): /home/runner/work/elsa-core/elsa-core/src/modules/Elsa.Workflows.Management/Options/ManagementOptions.cs
Line coverage
100%
Covered lines: 5
Uncovered lines: 0
Coverable lines: 5
Total lines: 35
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
get_ActivityTypes()100%11100%
get_VariableDescriptors()100%11100%
get_CompressionAlgorithm()100%11100%
get_LogPersistenceMode()100%11100%
get_IsReadOnlyMode()100%11100%

File(s)

/home/runner/work/elsa-core/elsa-core/src/modules/Elsa.Workflows.Management/Options/ManagementOptions.cs

#LineLine coverage
 1using Elsa.Workflows.LogPersistence;
 2using Elsa.Workflows.Management.Models;
 3
 4namespace Elsa.Workflows.Management.Options;
 5
 6/// <summary>
 7/// Options for the management module.
 8/// </summary>
 9public class ManagementOptions
 10{
 11    /// <summary>
 12    /// A collection of activity types that are available to the system.
 13    /// </summary>
 5814    public HashSet<Type> ActivityTypes { get; set; } = new();
 15
 16    /// <summary>
 17    /// A collection of types that are available to the system as variable types.
 18    /// </summary>
 4819    public HashSet<VariableDescriptor> VariableDescriptors { get; set; } = new(new VariableDescriptor.VariableDescriptor
 20
 21    /// <summary>
 22    /// The format to use for compressing workflow state.
 23    /// </summary>
 285824    public string? CompressionAlgorithm { get; set; }
 25
 26    /// <summary>
 27    /// The default Log Persistence Mode to use for all the system
 28    /// </summary>
 489129    public LogPersistenceMode LogPersistenceMode { get; set; }
 30
 31    /// <summary>
 32    /// A mode that does not allow editing workflows.
 33    /// </summary>
 234    public bool IsReadOnlyMode { get; set; }
 35}