elsa-core/src/modules/Elsa.Expressions/Models/MemoryBlock.cs

33 lines
688 B
C#
Raw Normal View History

namespace Elsa.Expressions.Models;
2022-01-04 08:42:12 +00:00
/// <summary>
/// Represents a piece of memory within a memory register
2022-01-04 08:42:12 +00:00
/// </summary>
2022-06-04 18:01:20 +00:00
public class MemoryBlock
2022-01-04 08:42:12 +00:00
{
/// <summary>
/// Constructor.
/// </summary>
2022-06-04 18:01:20 +00:00
public MemoryBlock()
2022-01-04 08:42:12 +00:00
{
}
/// <summary>
/// Constructor.
/// </summary>
public MemoryBlock(object? value, object? metadata = default)
2022-01-04 08:42:12 +00:00
{
Value = value;
Metadata = metadata;
2022-01-04 08:42:12 +00:00
}
/// <summary>
/// The value stored in this block.
/// </summary>
2022-01-04 08:42:12 +00:00
public object? Value { get; set; }
/// <summary>
/// Optional metadata about this block.
/// </summary>
public object? Metadata { get; set; }
2022-01-04 08:42:12 +00:00
}