< Summary

Information
Class: Elsa.Workflows.Runtime.Requests.DispatchTriggerWorkflowsRequest
Assembly: Elsa.Workflows.Runtime
File(s): /home/runner/work/elsa-core/elsa-core/src/modules/Elsa.Workflows.Runtime/Requests/DispatchTriggerWorkflowsRequest.cs
Line coverage
100%
Covered lines: 8
Uncovered lines: 0
Coverable lines: 8
Total lines: 29
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
.ctor(...)100%11100%
get_ActivityTypeName()100%11100%
get_BookmarkPayload()100%11100%
get_CorrelationId()100%11100%
get_WorkflowInstanceId()100%11100%
get_ActivityInstanceId()100%11100%
get_Input()100%11100%
get_Properties()100%11100%

File(s)

/home/runner/work/elsa-core/elsa-core/src/modules/Elsa.Workflows.Runtime/Requests/DispatchTriggerWorkflowsRequest.cs

#LineLine coverage
 1namespace Elsa.Workflows.Runtime.Requests;
 2
 3/// <summary>
 4/// Represents a dispatch request to trigger all workflows using the provided information.
 5/// </summary>
 6/// <param name="activityTypeName">The type name of the activity to trigger.</param>
 7/// <param name="bookmarkPayload">AnyAsync bookmark payload to use to find the workflows to trigger.</param>
 18public class DispatchTriggerWorkflowsRequest(string activityTypeName, object bookmarkPayload)
 9{
 10    /// <summary>The type name of the activity to trigger.</summary>
 211    public string ActivityTypeName { get; init; } = activityTypeName;
 12
 13    /// <summary>AnyAsync bookmark payload to use to find the workflows to trigger.</summary>
 214    public object BookmarkPayload { get; init; } = bookmarkPayload;
 15
 16    /// <summary>AnyAsync correlation ID to use to find the workflows to trigger.</summary>
 117    public string? CorrelationId { get; set; }
 18
 119    public string? WorkflowInstanceId { get; set; }
 120    public string? ActivityInstanceId { get; set; }
 21
 22    /// <summary>Any input to send along.</summary>
 123    public IDictionary<string, object>? Input { get; set; }
 24
 25    /// <summary>
 26    /// Any properties to attach to the workflow instance.
 27    /// </summary>
 128    public IDictionary<string, object>? Properties { get; set; }
 29}