< Summary

Information
Class: Elsa.Api.Client.Resources.WorkflowInstances.Models.CompletionCallbackState
Assembly: Elsa.Api.Client
File(s): /home/runner/work/elsa-core/elsa-core/src/clients/Elsa.Api.Client/Resources/WorkflowInstances/Models/CompletionCallbackState.cs
Line coverage
0%
Covered lines: 0
Uncovered lines: 5
Coverable lines: 5
Total lines: 32
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_OwnerInstanceId()100%210%
get_ChildNodeId()100%210%
get_MethodName()100%210%

File(s)

/home/runner/work/elsa-core/elsa-core/src/clients/Elsa.Api.Client/Resources/WorkflowInstances/Models/CompletionCallbackState.cs

#LineLine coverage
 1using System.Text.Json.Serialization;
 2
 3namespace Elsa.Api.Client.Resources.WorkflowInstances.Models;
 4
 5/// <summary>
 6/// Represents a completion callback state.
 7/// </summary>
 8public class CompletionCallbackState
 9{
 10    /// <summary>
 11    /// Initializes a new instance of the <see cref="CompletionCallbackState"/> class.
 12    /// </summary>
 13    [JsonConstructor]
 014    public CompletionCallbackState()
 15    {
 016    }
 17
 18    /// <summary>
 19    /// The ID of the activity instance that owns the callback.
 20    /// </summary>
 021    public string OwnerInstanceId { get; init; } = default!;
 22
 23    /// <summary>
 24    /// The ID of the child activity node.
 25    /// </summary>
 026    public string ChildNodeId { get; init; } = default!;
 27
 28    /// <summary>
 29    /// The name of the method to invoke on the owner when the child completes.
 30    /// </summary>
 031    public string? MethodName { get; init; } = default!;
 32}