< Summary

Information
Class: Elsa.Workflows.Runtime.Options.WorkflowInboxCleanupOptions
Assembly: Elsa.Workflows.Runtime
File(s): /home/runner/work/elsa-core/elsa-core/src/modules/Elsa.Workflows.Runtime/Options/WorkflowInboxCleanupOptions.cs
Line coverage
0%
Covered lines: 0
Uncovered lines: 3
Coverable lines: 3
Total lines: 22
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
get_SweepInterval()100%210%
get_BatchSize()100%210%
get_IsEnabled()100%210%

File(s)

/home/runner/work/elsa-core/elsa-core/src/modules/Elsa.Workflows.Runtime/Options/WorkflowInboxCleanupOptions.cs

#LineLine coverage
 1namespace Elsa.Workflows.Runtime.Options;
 2
 3/// <summary>
 4/// Options for cleaning up the workflow inbox.
 5/// </summary>
 6public class WorkflowInboxCleanupOptions
 7{
 8    /// <summary>
 9    /// The sweep interval at which to clean up the workflow inbox.
 10    /// </summary>
 011    public TimeSpan SweepInterval { get; set; } = TimeSpan.FromMinutes(5);
 12
 13    /// <summary>
 14    /// The number of messages to clean up per sweep.
 15    /// </summary>
 016    public int BatchSize { get; set; } = 1000;
 17
 18    /// <summary>
 19    /// Whether the workflow inbox cleanup is enabled.
 20    /// </summary>
 021    public bool IsEnabled { get; set; } = true;
 22}