< 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
0%
Covered lines: 0
Uncovered lines: 11
Coverable lines: 11
Total lines: 41
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%
.ctor(...)100%210%
get_InstanceId()100%210%
get_BookmarkId()100%210%
get_ActivityHandle()100%210%
get_Input()100%210%
get_Properties()100%210%
get_CorrelationId()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>
 023    public DispatchWorkflowInstanceRequest(string instanceId)
 24    {
 025        InstanceId = instanceId;
 026    }
 27
 28    /// <summary>
 29    /// The ID of the workflow instance to dispatch.
 30    /// </summary>
 031    public string InstanceId { get; init; } = null!;
 32
 33    /// <summary>
 34    /// The ID of the bookmark to resume.
 35    /// </summary>
 036    public string? BookmarkId { get; set; }
 037    public ActivityHandle? ActivityHandle { get; init; }
 038    public IDictionary<string, object>? Input { get; init; }
 039    public IDictionary<string, object>? Properties { get; init; }
 040    public string? CorrelationId { get; init; }
 41}