< Summary

Information
Class: Elsa.Workflows.Runtime.Tasks.PurgeBookmarkQueueRecurringTask
Assembly: Elsa.Workflows.Runtime
File(s): /home/runner/work/elsa-core/elsa-core/src/modules/Elsa.Workflows.Runtime/Tasks/PurgeBookmarkQueueRecurringTask.cs
Line coverage
50%
Covered lines: 1
Uncovered lines: 1
Coverable lines: 2
Total lines: 16
Line coverage: 50%
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%
ExecuteAsync(...)100%210%

File(s)

/home/runner/work/elsa-core/elsa-core/src/modules/Elsa.Workflows.Runtime/Tasks/PurgeBookmarkQueueRecurringTask.cs

#LineLine coverage
 1using Elsa.Common;
 2using JetBrains.Annotations;
 3
 4namespace Elsa.Workflows.Runtime.Tasks;
 5
 6/// <summary>
 7/// Periodically purges the bookmark queue of old items.
 8/// </summary>
 9[UsedImplicitly]
 510public class PurgeBookmarkQueueRecurringTask(IBookmarkQueuePurger bookmarkQueueWorker) : RecurringTask
 11{
 12    public override Task ExecuteAsync(CancellationToken stoppingToken)
 13    {
 014        return bookmarkQueueWorker.PurgeAsync(stoppingToken);
 15    }
 16}