< Summary

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

File(s)

/home/runner/work/elsa-core/elsa-core/src/modules/Elsa.Resilience/Recorders/ActivityExecutionContextRetryAttemptRecorder.cs

#LineLine coverage
 1using Elsa.Resilience.Models;
 2using JetBrains.Annotations;
 3
 4namespace Elsa.Resilience.Recorders;
 5
 6[UsedImplicitly]
 7public class ActivityExecutionContextRetryAttemptRecorder : IRetryAttemptRecorder
 8{
 9    public Task RecordAsync(RecordRetryAttemptsContext context)
 10    {
 011        context.ActivityExecutionContext.Properties["RetryAttempts"] = context.Attempts;
 012        return Task.CompletedTask;
 13    }
 14}