< Summary

Information
Class: Elsa.Workflows.Runtime.WorkflowDefinitionsReloader
Assembly: Elsa.Workflows.Runtime
File(s): /home/runner/work/elsa-core/elsa-core/src/modules/Elsa.Workflows.Runtime/Services/WorkflowDefinitionsReloader.cs
Line coverage
100%
Covered lines: 6
Uncovered lines: 0
Coverable lines: 6
Total lines: 18
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
.ctor(...)100%11100%
ReloadWorkflowDefinitionsAsync()100%11100%

File(s)

/home/runner/work/elsa-core/elsa-core/src/modules/Elsa.Workflows.Runtime/Services/WorkflowDefinitionsReloader.cs

#LineLine coverage
 1using Elsa.Mediator.Contracts;
 2using Elsa.Workflows.Runtime.Models;
 3using Elsa.Workflows.Runtime.Notifications;
 4
 5namespace Elsa.Workflows.Runtime;
 6
 7/// <inheritdoc />
 58public class WorkflowDefinitionsReloader(IWorkflowDefinitionStorePopulator workflowDefinitionStorePopulator, INotificati
 9{
 10    /// <inheritdoc />
 11    public async Task ReloadWorkflowDefinitionsAsync(CancellationToken cancellationToken)
 12    {
 613        var workflowDefinitions = await workflowDefinitionStorePopulator.PopulateStoreAsync(true, cancellationToken);
 614        var reloadedWorkflowDefinitions = workflowDefinitions.Select(ReloadedWorkflowDefinition.FromDefinition).ToList()
 615        var notification = new WorkflowDefinitionsReloaded(reloadedWorkflowDefinitions);
 616        await notificationSender.SendAsync(notification, cancellationToken);
 617    }
 18}