< Summary

Information
Class: Elsa.Workflows.Runtime.WorkflowDispatchOutboxAccessor
Assembly: Elsa.Workflows.Runtime
File(s): /home/runner/work/elsa-core/elsa-core/src/modules/Elsa.Workflows.Runtime/Services/WorkflowDispatchOutboxAccessor.cs
Line coverage
66%
Covered lines: 2
Uncovered lines: 1
Coverable lines: 3
Total lines: 14
Line coverage: 66.6%
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%
get_WorkflowExecutionContext()100%11100%
set_WorkflowExecutionContext(...)100%210%

File(s)

/home/runner/work/elsa-core/elsa-core/src/modules/Elsa.Workflows.Runtime/Services/WorkflowDispatchOutboxAccessor.cs

#LineLine coverage
 1namespace Elsa.Workflows.Runtime;
 2
 3/// <inheritdoc />
 4public class WorkflowDispatchOutboxAccessor : IWorkflowDispatchOutboxAccessor
 5{
 1526    private readonly AsyncLocal<WorkflowExecutionContext?> _currentWorkflowExecutionContext = new();
 7
 8    /// <inheritdoc />
 9    public WorkflowExecutionContext? WorkflowExecutionContext
 10    {
 2811        get => _currentWorkflowExecutionContext.Value;
 012        set => _currentWorkflowExecutionContext.Value = value;
 13    }
 14}