< 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
81%
Covered lines: 13
Uncovered lines: 3
Coverable lines: 16
Total lines: 64
Line coverage: 81.2%
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

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
 52218        pipelineBuilder
 52219            .Reset()
 52220            .UseExecutionCycleTracking()
 52221            .UseWorkflowDispatchOutbox()
 52222            .UseWorkflowHeartbeat()
 52223            .UseEngineExceptionHandling()
 52224            .UsePersistentVariables()
 52225            .UseExceptionHandling()
 52226            .UseDefaultActivityScheduler();
 27
 28    /// <summary>
 29    /// Installs middleware that persists the workflow instance before and after workflow execution.
 30    /// </summary>
 52231    public static IWorkflowExecutionPipelineBuilder UsePersistentVariables(this IWorkflowExecutionPipelineBuilder pipeli
 32
 52233    public static IWorkflowExecutionPipelineBuilder UseWorkflowHeartbeat(this IWorkflowExecutionPipelineBuilder pipeline
 34
 35    /// <summary>
 36    /// Installs middleware that registers an <see cref="Elsa.Workflows.Runtime.ExecutionCycleHandle"/> for the duration
 37    /// each workflow execution cycle, so the drain orchestrator can count active executions and force-cancel them on
 38    /// deadline breach.
 39    /// </summary>
 52240    public static IWorkflowExecutionPipelineBuilder UseExecutionCycleTracking(this IWorkflowExecutionPipelineBuilder pip
 41
 42    /// <summary>
 43    /// Installs middleware that scopes the current workflow execution context for transactional workflow dispatch outbo
 44    /// </summary>
 52245    public static IWorkflowExecutionPipelineBuilder UseWorkflowDispatchOutbox(this IWorkflowExecutionPipelineBuilder pip
 46
 47    /// <summary>
 48    /// Installs middleware that persists bookmarks after workflow execution.
 49    /// </summary>
 50    [Obsolete("This middleware is no longer used and will be removed in a future version. Bookmarks are now persisted th
 051    public static IWorkflowExecutionPipelineBuilder UseBookmarkPersistence(this IWorkflowExecutionPipelineBuilder pipeli
 52
 53    /// <summary>
 54    /// Installs middleware that persists the workflow execution journal.
 55    /// </summary>
 56    [Obsolete("This middleware is no longer used and will be removed in a future version. Execution logs are now persist
 057    public static IWorkflowExecutionPipelineBuilder UseWorkflowExecutionLogPersistence(this IWorkflowExecutionPipelineBu
 58
 59    /// <summary>
 60    /// Installs middleware that persists activity execution records.
 61    /// </summary>
 62    [Obsolete("This middleware is no longer used and will be removed in a future version. Activity state is now persiste
 063    public static IWorkflowExecutionPipelineBuilder UseActivityExecutionLogPersistence(this IWorkflowExecutionPipelineBu
 64}