< Summary

Information
Class: Elsa.Workflows.Runtime.Middleware.EvaluateLogPersistenceModesMiddleware
Assembly: Elsa.Workflows.Runtime
File(s): /home/runner/work/elsa-core/elsa-core/src/modules/Elsa.Workflows.Runtime/LogPersistence/Middleware/EvaluateLogPersistenceModesMiddleware.cs
Line coverage
100%
Covered lines: 5
Uncovered lines: 0
Coverable lines: 5
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%
InvokeAsync()100%11100%

File(s)

/home/runner/work/elsa-core/elsa-core/src/modules/Elsa.Workflows.Runtime/LogPersistence/Middleware/EvaluateLogPersistenceModesMiddleware.cs

#LineLine coverage
 1using Elsa.Workflows.Pipelines.ActivityExecution;
 2
 3namespace Elsa.Workflows.Runtime.Middleware;
 4
 4365public class EvaluateLogPersistenceModesMiddleware(ActivityMiddlewareDelegate next, IActivityPropertyLogPersistenceEvalu
 6{
 7    public async ValueTask InvokeAsync(ActivityExecutionContext context)
 8    {
 9        // Evaluate log persistence mode before executing the next middleware to ensure the mode is known before any pot
 365410        var persistenceLogMap = await persistenceEvaluator.EvaluateLogPersistenceModesAsync(context);
 365411        context.SetLogPersistenceModeMap(persistenceLogMap);
 12
 13        // Execute next middleware.
 365414        await next(context);
 364615    }
 16}