worker(alarms): WriteRecord as class not positional record (net48 has no IsExternalInit)

This commit is contained in:
Joseph Doherty
2026-06-13 09:30:52 -04:00
parent 5f6655de27
commit 1e2ed6d1ea
@@ -204,6 +204,23 @@ public sealed class LmxSubtagAlarmSourceTests
{
}
internal sealed record WriteRecord(int ServerHandle, int ItemHandle, object? Value, int UserId);
internal sealed class WriteRecord
{
public WriteRecord(int serverHandle, int itemHandle, object? value, int userId)
{
ServerHandle = serverHandle;
ItemHandle = itemHandle;
Value = value;
UserId = userId;
}
public int ServerHandle { get; }
public int ItemHandle { get; }
public object? Value { get; }
public int UserId { get; }
}
}
}