< Summary

Information
Class: Elsa.Workflows.Runtime.Requests.DispatchWorkflowInstanceRequest
Assembly: Elsa.Workflows.Runtime
File(s): /home/runner/work/elsa-core/elsa-core/src/modules/Elsa.Workflows.Runtime/Requests/DispatchWorkflowInstanceRequest.cs
Line coverage
75%
Covered lines: 9
Uncovered lines: 3
Coverable lines: 12
Total lines: 47
Line coverage: 75%
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%
.ctor(...)100%11100%
get_InstanceId()100%11100%
get_BookmarkId()100%11100%
get_ActivityHandle()100%11100%
get_Input()100%11100%
get_Properties()100%11100%
get_CorrelationId()100%11100%
get_IngressSourceName()100%210%

File(s)

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

#LineLine coverage
 1using System.Text.Json.Serialization;
 2using Elsa.Workflows.Models;
 3
 4namespace Elsa.Workflows.Runtime.Requests;
 5
 6/// <summary>
 7/// A request to dispatch a workflow instance for execution.
 8/// </summary>
 9public class DispatchWorkflowInstanceRequest
 10{
 11    /// <summary>
 12    /// Initializes a new instance of the <see cref="DispatchWorkflowInstanceRequest"/> class.
 13    /// </summary>
 14    [JsonConstructor]
 015    public DispatchWorkflowInstanceRequest()
 16    {
 017    }
 18
 19    /// <summary>
 20    /// Initializes a new instance of the <see cref="DispatchWorkflowInstanceRequest"/> class.
 21    /// </summary>
 22    /// <param name="instanceId">The ID of the workflow instance to dispatch.</param>
 223    public DispatchWorkflowInstanceRequest(string instanceId)
 24    {
 225        InstanceId = instanceId;
 226    }
 27
 28    /// <summary>
 29    /// The ID of the workflow instance to dispatch.
 30    /// </summary>
 531    public string InstanceId { get; init; } = null!;
 32
 33    /// <summary>
 34    /// The ID of the bookmark to resume.
 35    /// </summary>
 236    public string? BookmarkId { get; set; }
 237    public ActivityHandle? ActivityHandle { get; init; }
 338    public IDictionary<string, object>? Input { get; init; }
 239    public IDictionary<string, object>? Properties { get; init; }
 440    public string? CorrelationId { get; init; }
 41
 42    /// <summary>
 43    /// Name of the ingress source that initiated this dispatch. Carried through to the execution cycle registry for
 44    /// drain-time accounting and the FR-018 inconsistency detection. Null when no attribution is available.
 45    /// </summary>
 046    public string? IngressSourceName { get; set; }
 47}