< Summary

Information
Class: Elsa.Workflows.Runtime.WorkflowClientExtensions
Assembly: Elsa.Workflows.Runtime
File(s): /home/runner/work/elsa-core/elsa-core/src/modules/Elsa.Workflows.Runtime/Extensions/WorkflowClientExtensions.cs
Line coverage
0%
Covered lines: 0
Uncovered lines: 1
Coverable lines: 1
Total lines: 17
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
RunInstanceAsync(...)100%210%

File(s)

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

#LineLine coverage
 1using Elsa.Workflows.Runtime.Messages;
 2
 3namespace Elsa.Workflows.Runtime;
 4
 5/// <summary>
 6/// Provides extension methods for the <see cref="IWorkflowClient"/> interface.
 7/// </summary>
 8public static class WorkflowClientExtensions
 9{
 10    /// <summary>
 11    /// Executes the workflow instance and waits for it to complete or reach a suspend point.
 12    /// </summary>
 13    public static Task<RunWorkflowInstanceResponse> RunInstanceAsync(this IWorkflowClient workflowClient, CancellationTo
 14    {
 015        return workflowClient.RunInstanceAsync(RunWorkflowInstanceRequest.Empty, cancellationToken);
 16    }
 17}