< Summary

Information
Class: Elsa.Workflows.Runtime.Handlers.IndexTriggers
Assembly: Elsa.Workflows.Runtime
File(s): /home/runner/work/elsa-core/elsa-core/src/modules/Elsa.Workflows.Runtime/Handlers/IndexTriggers.cs
Line coverage
66%
Covered lines: 2
Uncovered lines: 1
Coverable lines: 3
Total lines: 14
Line coverage: 66.6%
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%
HandleAsync()100%11100%
HandleAsync()100%210%

File(s)

/home/runner/work/elsa-core/elsa-core/src/modules/Elsa.Workflows.Runtime/Handlers/IndexTriggers.cs

#LineLine coverage
 1using Elsa.Mediator.Contracts;
 2using Elsa.Workflows.Management.Notifications;
 3using JetBrains.Annotations;
 4
 5namespace Elsa.Workflows.Runtime.Handlers;
 6
 7[UsedImplicitly]
 4678internal class IndexTriggers(ITriggerIndexer triggerIndexer) :
 9    INotificationHandler<WorkflowDefinitionPublished>,
 10    INotificationHandler<WorkflowDefinitionRetracted>
 11{
 5012    public async Task HandleAsync(WorkflowDefinitionPublished notification, CancellationToken cancellationToken) => awai
 013    public async Task HandleAsync(WorkflowDefinitionRetracted notification, CancellationToken cancellationToken) => awai
 14}