< Summary

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

File(s)

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

#LineLine coverage
 1using Elsa.Workflows.Helpers;
 2using Elsa.Workflows.Runtime.Results;
 3
 4namespace Elsa.Workflows.Runtime;
 5
 6/// <summary>
 7/// Contains extension methods for the <see cref="IStimulusSender"/> interface.
 8/// </summary>
 9public static class WorkflowBrokerExtensions
 10{
 11    /// <summary>
 12    /// Delivers a stimulus to an activity. This could result in new workflow instances as well as existing workflow ins
 13    /// </summary>
 14    [Obsolete("Use SendAsync(string name, object stimulus, StimulusMetadata? metadata = null, CancellationToken cancella
 15    public static Task<SendStimulusResult> SendAsync<TActivity>(this IStimulusSender stimulusSender, object stimulus, St
 16    {
 017        var name = ActivityTypeNameHelper.GenerateTypeName<TActivity>();
 018        return stimulusSender.SendAsync(name, stimulus, metadata, cancellationToken);
 19    }
 20}