< Summary

Information
Class: Elsa.Resilience.VoidRetryAttemptRecorder
Assembly: Elsa.Resilience.Core
File(s): /home/runner/work/elsa-core/elsa-core/src/modules/Elsa.Resilience.Core/Services/VoidRetryAttemptRecorder.cs
Line coverage
50%
Covered lines: 1
Uncovered lines: 1
Coverable lines: 2
Total lines: 14
Line coverage: 50%
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
get_Instance()100%11100%
RecordAsync(...)100%210%

File(s)

/home/runner/work/elsa-core/elsa-core/src/modules/Elsa.Resilience.Core/Services/VoidRetryAttemptRecorder.cs

#LineLine coverage
 1using Elsa.Resilience.Models;
 2
 3namespace Elsa.Resilience;
 4
 5public class VoidRetryAttemptRecorder : IRetryAttemptRecorder
 6{
 27    public static VoidRetryAttemptRecorder Instance { get; } = new();
 8
 9    public Task RecordAsync(RecordRetryAttemptsContext context)
 10    {
 11        // Send records into the void.
 012        return Task.CompletedTask;
 13    }
 14}