feat: expose mapped raw and uns data through grpc adapters
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
using Opc.Ua;
|
||||
using ZB.MOM.WW.OtOpcUa.Commons.OpcUa;
|
||||
|
||||
namespace ZB.MOM.WW.OtOpcUa.OpcUaServer;
|
||||
|
||||
/// <summary>Resolves the currently bound SDK page sink without retaining a retired node manager.</summary>
|
||||
public sealed class DeferredProjectedNamespacePageSink(DeferredAddressSpaceSink deferred) : IProjectedNamespacePageSink
|
||||
{
|
||||
public bool TryApply(NodeId parent, IReadOnlyList<ProjectedVariableDefinition> nodes, Func<bool> commit) =>
|
||||
deferred.GetCapability<IProjectedNamespacePageSink>()?.TryApply(parent, nodes, commit) ?? false;
|
||||
|
||||
public bool TryApplyRootLeaf(NodeId anchorId, ProjectedVariableDefinition rootDefinition, Func<bool> commit) =>
|
||||
deferred.GetCapability<IProjectedNamespacePageSink>()?.TryApplyRootLeaf(anchorId, rootDefinition, commit) ?? false;
|
||||
|
||||
public bool TryRemove(NodeId nodeId, ProjectedVariableDefinition expected) =>
|
||||
deferred.GetCapability<IProjectedNamespacePageSink>()?.TryRemove(nodeId, expected) ?? false;
|
||||
}
|
||||
Reference in New Issue
Block a user