< Summary

Information
Class: Elsa.Extensions.WorkflowInstanceStoreExtensions
Assembly: Elsa.Workflows.Management
File(s): /home/runner/work/elsa-core/elsa-core/src/modules/Elsa.Workflows.Management/Extensions/WorkflowInstanceStoreExtensions.cs
Line coverage
100%
Covered lines: 2
Uncovered lines: 0
Coverable lines: 2
Total lines: 20
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
FindAsync()100%11100%

File(s)

/home/runner/work/elsa-core/elsa-core/src/modules/Elsa.Workflows.Management/Extensions/WorkflowInstanceStoreExtensions.cs

#LineLine coverage
 1using Elsa.Workflows.Management;
 2using Elsa.Workflows.Management.Entities;
 3using Elsa.Workflows.Management.Filters;
 4
 5// ReSharper disable once CheckNamespace
 6namespace Elsa.Extensions;
 7
 8/// <summary>
 9/// Provides a set of extension methods for <see cref="IWorkflowInstanceStore"/>.
 10/// </summary>
 11public static class WorkflowInstanceStoreExtensions
 12{
 13    /// <summary>
 14    /// Finds a workflow instance matching the specified ID.
 15    /// </summary>
 16    public static async ValueTask<WorkflowInstance?> FindAsync(this IWorkflowInstanceStore store, string id, Cancellatio
 17    {
 8718        return await store.FindAsync(new() { Id = id }, cancellationToken);
 8719    }
 20}

Methods/Properties

FindAsync()