diff --git a/src/modules/Elsa.Workflows.Core/Models/Argument.cs b/src/modules/Elsa.Workflows.Core/Models/Argument.cs index f30221cd1..8176c0732 100644 --- a/src/modules/Elsa.Workflows.Core/Models/Argument.cs +++ b/src/modules/Elsa.Workflows.Core/Models/Argument.cs @@ -1,21 +1,36 @@ +using System.Text.Json.Serialization; using Elsa.Expressions.Models; namespace Elsa.Workflows.Core.Models; +/// +/// A base type for the type. +/// public abstract class Argument { + /// + /// Initializes a new instance of the class. + /// protected Argument() { } + /// protected Argument(MemoryBlockReference memoryBlockReference) : this(() => memoryBlockReference) { } + /// + /// Initializes a new instance of the class. + /// + /// protected Argument(Func memoryBlockReference) { MemoryBlockReference = memoryBlockReference; } - public Func MemoryBlockReference { get; set; } = default!; + /// + /// Gets or sets the memory block reference. + /// + [JsonIgnore] public Func MemoryBlockReference { get; set; } = default!; } \ No newline at end of file