< Summary

Information
Class: Elsa.Caching.Services.ChangeTokenSignaler
Assembly: Elsa.Caching
File(s): /home/runner/work/elsa-core/elsa-core/src/modules/Elsa.Caching/Services/ChangeTokenSignaler.cs
Line coverage
100%
Covered lines: 3
Uncovered lines: 0
Coverable lines: 3
Total lines: 19
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%
GetToken(...)100%11100%
TriggerTokenAsync(...)100%11100%

File(s)

/home/runner/work/elsa-core/elsa-core/src/modules/Elsa.Caching/Services/ChangeTokenSignaler.cs

#LineLine coverage
 1using Microsoft.Extensions.Primitives;
 2
 3namespace Elsa.Caching.Services;
 4
 5/// <inheritdoc />
 16public class ChangeTokenSignaler(IChangeTokenSignalInvoker invoker) : IChangeTokenSignaler
 7{
 8    /// <inheritdoc />
 9    public IChangeToken GetToken(string key)
 10    {
 371411        return invoker.GetToken(key);
 12    }
 13
 14    /// <inheritdoc />
 15    public ValueTask TriggerTokenAsync(string key, CancellationToken cancellationToken = default)
 16    {
 267317        return invoker.TriggerTokenAsync(key, cancellationToken);
 18    }
 19}