< Summary

Information
Class: Elsa.Workflows.CommitStates.CommitStateOptions
Assembly: Elsa.Workflows.Core
File(s): /home/runner/work/elsa-core/elsa-core/src/modules/Elsa.Workflows.Core/CommitStates/Options/CommitStateOptions.cs
Line coverage
100%
Covered lines: 4
Uncovered lines: 0
Coverable lines: 4
Total lines: 29
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_WorkflowCommitStrategies()100%11100%
get_ActivityCommitStrategies()100%11100%
get_DefaultWorkflowCommitStrategy()100%11100%
get_DefaultActivityCommitStrategy()100%11100%

File(s)

/home/runner/work/elsa-core/elsa-core/src/modules/Elsa.Workflows.Core/CommitStates/Options/CommitStateOptions.cs

#LineLine coverage
 1namespace Elsa.Workflows.CommitStates;
 2
 3/// <summary>
 4/// Configuration options for commit state strategies.
 5/// </summary>
 6public class CommitStateOptions
 7{
 8    /// <summary>
 9    /// Gets or sets the workflow commit strategies.
 10    /// </summary>
 17111    public IDictionary<string, WorkflowCommitStrategyRegistration> WorkflowCommitStrategies { get; set; } = new Dictiona
 12
 13    /// <summary>
 14    /// Gets or sets the activity commit strategies.
 15    /// </summary>
 16416    public IDictionary<string, ActivityCommitStrategyRegistration> ActivityCommitStrategies { get; set; } = new Dictiona
 17
 18    /// <summary>
 19    /// Gets or sets the default workflow commit strategy instance to use when a workflow does not specify its own.
 20    /// This strategy is not added to the registry and serves only as a fallback.
 21    /// </summary>
 712722    public IWorkflowCommitStrategy? DefaultWorkflowCommitStrategy { get; set; }
 23
 24    /// <summary>
 25    /// Gets or sets the default activity commit strategy instance to use when an activity does not specify its own.
 26    /// This strategy is not added to the registry and serves only as a fallback.
 27    /// </summary>
 661828    public IActivityCommitStrategy? DefaultActivityCommitStrategy { get; set; }
 29}