Files
ScadaBridge/src/ScadaLink.Commons/Entities/Scripts/SharedScript.cs
T
Joseph Doherty 1eb6e972b0 docs: add XML doc comments across src + Sister Projects section in CLAUDE.md
Bulk CommentChecker pass: fills in <param>/<inheritdoc> tags on public
APIs across all 23 src/ projects so the doc-coverage gate is green. Also
adds a Sister Projects section to CLAUDE.md pointing at the MxAccess
Gateway and OtOpcUa sibling repos, and gitignores local credential
captures (*login*.txt) and the wonder-app-vd03 deploy/ artifacts.
2026-05-28 01:55:24 -04:00

27 lines
1.1 KiB
C#

namespace ScadaLink.Commons.Entities.Scripts;
public class SharedScript
{
/// <summary>Primary key.</summary>
public int Id { get; set; }
/// <summary>Unique script name used to reference this script from templates.</summary>
public string Name { get; set; }
/// <summary>C# script source code.</summary>
public string Code { get; set; }
/// <summary>JSON-serialized parameter definitions, or null when the script takes no parameters.</summary>
public string? ParameterDefinitions { get; set; }
/// <summary>JSON-serialized return type definition, or null when the script has no return value.</summary>
public string? ReturnDefinition { get; set; }
/// <summary>
/// Initializes a new shared script with the required name and code.
/// </summary>
/// <param name="name">Unique script name.</param>
/// <param name="code">C# script source code.</param>
public SharedScript(string name, string code)
{
Name = name ?? throw new ArgumentNullException(nameof(name));
Code = code ?? throw new ArgumentNullException(nameof(code));
}
}