< Summary

Information
Class: Elsa.Workflows.Runtime.Tasks.TriggerBookmarkQueueRecurringTask
Assembly: Elsa.Workflows.Runtime
File(s): /home/runner/work/elsa-core/elsa-core/src/modules/Elsa.Workflows.Runtime/Tasks/TriggerBookmarkQueueRecurringTask.cs
Line coverage
83%
Covered lines: 5
Uncovered lines: 1
Coverable lines: 6
Total lines: 28
Line coverage: 83.3%
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%
StartAsync(...)100%11100%
StopAsync(...)100%11100%
ExecuteAsync(...)100%210%

File(s)

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

#LineLine coverage
 1using Elsa.Common;
 2using JetBrains.Annotations;
 3
 4namespace Elsa.Workflows.Runtime.Tasks;
 5
 6/// <summary>
 7/// Periodically signals the bookmark queue processor to check for new items. This is a reliability measure that ensures
 8/// </summary>
 9[UsedImplicitly]
 510public class TriggerBookmarkQueueRecurringTask(IBookmarkQueueWorker bookmarkQueueWorker, IBookmarkQueueSignaler signaler
 11{
 12    public Task StartAsync(CancellationToken cancellationToken)
 13    {
 514        bookmarkQueueWorker.Start();
 515        return Task.CompletedTask;
 16    }
 17
 18    public Task StopAsync(CancellationToken cancellationToken)
 19    {
 520        bookmarkQueueWorker.Stop();
 521        return Task.CompletedTask;
 22    }
 23
 24    public Task ExecuteAsync(CancellationToken stoppingToken)
 25    {
 026        return signaler.TriggerAsync(stoppingToken);
 27    }
 28}