< 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
0%
Covered lines: 0
Uncovered lines: 8
Coverable lines: 8
Total lines: 29
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%
get_ActivityTypeName()100%210%
get_BookmarkPayload()100%210%
get_CorrelationId()100%210%
get_WorkflowInstanceId()100%210%
get_ActivityInstanceId()100%210%
get_Input()100%210%
get_Properties()100%210%

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>
 08public class DispatchTriggerWorkflowsRequest(string activityTypeName, object bookmarkPayload)
 9{
 10    /// <summary>The type name of the activity to trigger.</summary>
 011    public string ActivityTypeName { get; init; } = activityTypeName;
 12
 13    /// <summary>AnyAsync bookmark payload to use to find the workflows to trigger.</summary>
 014    public object BookmarkPayload { get; init; } = bookmarkPayload;
 15
 16    /// <summary>AnyAsync correlation ID to use to find the workflows to trigger.</summary>
 017    public string? CorrelationId { get; set; }
 18
 019    public string? WorkflowInstanceId { get; set; }
 020    public string? ActivityInstanceId { get; set; }
 21
 22    /// <summary>Any input to send along.</summary>
 023    public IDictionary<string, object>? Input { get; set; }
 24
 25    /// <summary>
 26    /// Any properties to attach to the workflow instance.
 27    /// </summary>
 028    public IDictionary<string, object>? Properties { get; set; }
 29}