using Opc.Ua; using ZB.MOM.WW.OtOpcUa.Commons.OpcUa; namespace ZB.MOM.WW.OtOpcUa.OpcUaServer; /// Resolves the currently bound SDK page sink without retaining a retired node manager. public sealed class DeferredProjectedNamespacePageSink(DeferredAddressSpaceSink deferred) : IProjectedNamespacePageSink { public bool TryApply(NodeId parent, IReadOnlyList nodes, Func commit) => deferred.GetCapability()?.TryApply(parent, nodes, commit) ?? false; public bool TryApplyRootLeaf(NodeId anchorId, ProjectedVariableDefinition rootDefinition, Func commit) => deferred.GetCapability()?.TryApplyRootLeaf(anchorId, rootDefinition, commit) ?? false; public bool TryRemove(NodeId nodeId, ProjectedVariableDefinition expected) => deferred.GetCapability()?.TryRemove(nodeId, expected) ?? false; public bool TryRenewExact(NodeId nodeId, ProjectedVariableDefinition expected, ProjectedVariableDefinition replacement, Func commit) => deferred.GetCapability()?.TryRenewExact(nodeId, expected, replacement, commit) ?? false; }