Opc.Ua.Com.Server.ComNamespaceMapper.GetLocalNodeId C# (CSharp) Метод

GetLocalNodeId() публичный Метод

Gets the local node id.
public GetLocalNodeId ( NodeId remoteId ) : NodeId
remoteId NodeId The remote id.
Результат NodeId
        public NodeId GetLocalNodeId(NodeId remoteId)
        {
            if (remoteId == null || remoteId.NamespaceIndex == 0)
            {
                return remoteId;
            }

            ushort localIndex = GetLocalNamespaceIndex(remoteId.NamespaceIndex);

            if (localIndex == remoteId.NamespaceIndex)
            {
                return remoteId;
            }

            return new NodeId(remoteId.Identifier, localIndex);
        }