< Summary

Information
Class: Elsa.Mediator.HostedServices.JobRunnerHostedService
Assembly: Elsa.Mediator
File(s): /home/runner/work/elsa-core/elsa-core/src/common/Elsa.Mediator/HostedServices/JobRunnerHostedService.cs
Line coverage
100%
Covered lines: 2
Uncovered lines: 0
Coverable lines: 2
Total lines: 13
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/common/Elsa.Mediator/HostedServices/JobRunnerHostedService.cs

#LineLine coverage
 1using Elsa.Mediator.Services;
 2using Microsoft.Extensions.Hosting;
 3
 4namespace Elsa.Mediator.HostedServices;
 5
 6/// <summary>
 7/// Hosted service adapter for <see cref="BackgroundJobProcessor"/>.
 8/// </summary>
 39public class JobRunnerHostedService(BackgroundJobProcessor processor) : BackgroundService
 10{
 11    /// <inheritdoc />
 312    protected override Task ExecuteAsync(CancellationToken stoppingToken) => processor.ExecuteAsync(stoppingToken);
 13}