< Summary

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

#LineLine coverage
 1using Elsa.Common;
 2using JetBrains.Annotations;
 3
 4namespace Elsa.Http.Tasks;
 5
 6/// <summary>
 7/// Update the route table based on workflow triggers and bookmarks.
 8/// </summary>
 9[UsedImplicitly]
 110public class UpdateRouteTableStartupTask(IRouteTableUpdater routeTableUpdater) : IStartupTask
 11{
 12    public async Task ExecuteAsync(CancellationToken stoppingToken)
 13    {
 114        await routeTableUpdater.UpdateAsync(stoppingToken);
 115    }
 16}