< Summary

Information
Class: Elsa.Api.Client.Resources.WorkflowInstances.Models.Bookmark
Assembly: Elsa.Api.Client
File(s): /home/runner/work/elsa-core/elsa-core/src/clients/Elsa.Api.Client/Resources/WorkflowInstances/Models/Bookmark.cs
Line coverage
0%
Covered lines: 0
Uncovered lines: 13
Coverable lines: 13
Total lines: 36
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_Id()100%210%
get_Name()100%210%
get_Hash()100%210%
get_Payload()100%210%
get_ActivityNodeId()100%210%
get_ActivityInstanceId()100%210%
get_AutoBurn()100%210%
get_CallbackMethodName()100%210%
get_Metadata()100%210%
.ctor()100%210%

File(s)

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

#LineLine coverage
 1using System.Text.Json.Serialization;
 2using JetBrains.Annotations;
 3
 4namespace Elsa.Api.Client.Resources.WorkflowInstances.Models;
 5
 6/// <summary>
 7/// A bookmark represents a location in a workflow where the workflow can be resumed at a later time.
 8/// </summary>
 9/// <param name="Id">The ID of the bookmark.</param>
 10/// <param name="Name">The name of the bookmark.</param>
 11/// <param name="Hash">The hash of the bookmark.</param>
 12/// <param name="Payload">The data associated with the bookmark.</param>
 13/// <param name="ActivityNodeId">The ID of the activity node associated with the bookmark.</param>
 14/// <param name="ActivityInstanceId">The ID of the activity instance associated with the bookmark.</param>
 15/// <param name="AutoBurn">Whether the bookmark should be automatically burned.</param>
 16/// <param name="CallbackMethodName">The name of the method on the activity class to invoke when the bookmark is resumed
 17/// <param name="Metadata">The metadata associated with this bookmark.</param>
 18[PublicAPI]
 019public record Bookmark(
 020    string Id,
 021    string Name,
 022    string Hash,
 023    object? Payload,
 024    string ActivityNodeId,
 025    string ActivityInstanceId,
 026    bool AutoBurn = true,
 027    string? CallbackMethodName = default,
 028    IDictionary<string, string>? Metadata = default
 029)
 30{
 31    /// <inheritdoc />
 32    [JsonConstructor]
 033    public Bookmark() : this("", "", "", null, "", "")
 34    {
 035    }
 36}