< Summary

Information
Class: Elsa.Extensions.WorkflowExecutionPipelineBuilderExtensions
Assembly: Elsa.Workflows.Runtime
File(s): /home/runner/work/elsa-core/elsa-core/src/modules/Elsa.Workflows.Runtime/Extensions/WorkflowExecutionPipelineBuilderExtensions.cs
Line coverage
75%
Covered lines: 9
Uncovered lines: 3
Coverable lines: 12
Total lines: 50
Line coverage: 75%
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
UseDefaultPipeline(...)100%11100%
UsePersistentVariables(...)100%11100%
UseWorkflowHeartbeat(...)100%11100%
UseBookmarkPersistence(...)100%210%
UseWorkflowExecutionLogPersistence(...)100%210%
UseActivityExecutionLogPersistence(...)100%210%

File(s)

/home/runner/work/elsa-core/elsa-core/src/modules/Elsa.Workflows.Runtime/Extensions/WorkflowExecutionPipelineBuilderExtensions.cs

#LineLine coverage
 1using Elsa.Workflows;
 2using Elsa.Workflows.Middleware.Workflows;
 3using Elsa.Workflows.Pipelines.WorkflowExecution;
 4using Elsa.Workflows.Runtime.Middleware.Workflows;
 5
 6// ReSharper disable once CheckNamespace
 7namespace Elsa.Extensions;
 8
 9/// <summary>
 10/// Provides extensions to <see cref="IWorkflowExecutionPipelineBuilder"/> that add various middleware components.
 11/// </summary>
 12public static class WorkflowExecutionPipelineBuilderExtensions
 13{
 14    /// <summary>
 15    /// Configures the workflow execution pipeline with commonly used components.
 16    /// </summary>
 17    public static IWorkflowExecutionPipelineBuilder UseDefaultPipeline(this IWorkflowExecutionPipelineBuilder pipelineBu
 43918        pipelineBuilder
 43919            .Reset()
 43920            .UseWorkflowHeartbeat()
 43921            .UseEngineExceptionHandling()
 43922            .UsePersistentVariables()
 43923            .UseExceptionHandling()
 43924            .UseDefaultActivityScheduler();
 25
 26    /// <summary>
 27    /// Installs middleware that persists the workflow instance before and after workflow execution.
 28    /// </summary>
 43929    public static IWorkflowExecutionPipelineBuilder UsePersistentVariables(this IWorkflowExecutionPipelineBuilder pipeli
 30
 43931    public static IWorkflowExecutionPipelineBuilder UseWorkflowHeartbeat(this IWorkflowExecutionPipelineBuilder pipeline
 32
 33    /// <summary>
 34    /// Installs middleware that persists bookmarks after workflow execution.
 35    /// </summary>
 36    [Obsolete("This middleware is no longer used and will be removed in a future version. Bookmarks are now persisted th
 037    public static IWorkflowExecutionPipelineBuilder UseBookmarkPersistence(this IWorkflowExecutionPipelineBuilder pipeli
 38
 39    /// <summary>
 40    /// Installs middleware that persists the workflow execution journal.
 41    /// </summary>
 42    [Obsolete("This middleware is no longer used and will be removed in a future version. Execution logs are now persist
 043    public static IWorkflowExecutionPipelineBuilder UseWorkflowExecutionLogPersistence(this IWorkflowExecutionPipelineBu
 44
 45    /// <summary>
 46    /// Installs middleware that persists activity execution records.
 47    /// </summary>
 48    [Obsolete("This middleware is no longer used and will be removed in a future version. Activity state is now persiste
 049    public static IWorkflowExecutionPipelineBuilder UseActivityExecutionLogPersistence(this IWorkflowExecutionPipelineBu
 50}