< Summary

Information
Class: Elsa.Workflows.Runtime.Tasks.PopulateRegistriesStartupTask
Assembly: Elsa.Workflows.Runtime
File(s): /home/runner/work/elsa-core/elsa-core/src/modules/Elsa.Workflows.Runtime/Tasks/PopulateRegistriesStartupTask.cs
Line coverage
100%
Covered lines: 3
Uncovered lines: 0
Coverable lines: 3
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%
ExecuteAsync()100%11100%

File(s)

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

#LineLine coverage
 1using Elsa.Common;
 2using Elsa.Common.RecurringTasks;
 3using JetBrains.Annotations;
 4
 5namespace Elsa.Workflows.Runtime.Tasks;
 6
 7/// <summary>
 8/// Updates the workflow store from <see cref="IWorkflowsProvider"/> implementations, creates triggers and updates the <
 9/// </summary>
 10[UsedImplicitly]
 11[SingleNodeTask]
 512public class PopulateRegistriesStartupTask(IRegistriesPopulator registriesPopulator) : IStartupTask
 13{
 14    public async Task ExecuteAsync(CancellationToken cancellationToken)
 15    {
 516        await registriesPopulator.PopulateAsync(cancellationToken);
 517    }
 18}