< Summary

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

File(s)

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

#LineLine coverage
 1using Elsa.Workflows.Pipelines.WorkflowExecution;
 2
 3namespace Elsa.Workflows.Runtime.Middleware.Workflows;
 4
 5/// <summary>
 6/// Takes care of loading and persisting bookmarks.
 7/// </summary>
 8[Obsolete("This middleware is no longer used and will be removed in a future version. Bookmarks are now persisted throug
 09public class PersistBookmarkMiddleware(WorkflowMiddlewareDelegate next) : WorkflowExecutionMiddleware(next)
 10{
 11    /// <inheritdoc />
 12    public override async ValueTask InvokeAsync(WorkflowExecutionContext context)
 13    {
 014        await Next(context);
 15
 16        // Not used anymore.
 17        // var bookmarkRequest = new UpdateBookmarksRequest(context, context.BookmarksDiff, context.CorrelationId);
 18        // await _bookmarksPersister.PersistBookmarksAsync(bookmarkRequest);
 019    }
 20}