fix(alarms): OnEnableDisable native-check via lock-guarded IsNativeAlarmNode + unstale AlarmCommand doc (code-review)

This commit is contained in:
Joseph Doherty
2026-06-15 14:30:17 -04:00
parent 328bd1b9ee
commit be6858baa1
2 changed files with 4 additions and 4 deletions
@@ -642,7 +642,7 @@ public sealed class OtOpcUaNodeManager : CustomNodeManager2
// engine enable/disable surface (Phase 3 decision #2) — they short-circuit to BadNotSupported.
alarm.OnEnableDisable = (context, condition, enabling) =>
{
if (_nativeAlarmNodeIds.Contains(alarmNodeId))
if (IsNativeAlarmNode(alarmNodeId))
return new ServiceResult(StatusCodes.BadNotSupported);
return HandleAlarmCommand(context, condition, enabling ? "Enable" : "Disable", comment: null, unshelveAt: null);
};