Opc.Ua.Com.Client.AeTypeCache.GetMappingNode C# (CSharp) Method

GetMappingNode() public method

Returns the node for the event type mapping identified by the node id.
public GetMappingNode ( ServerSystemContext context, Opc.Ua.NodeId nodeId ) : AeEventTypeMappingState
context Opc.Ua.Server.ServerSystemContext
nodeId Opc.Ua.NodeId
return AeEventTypeMappingState
        public AeEventTypeMappingState GetMappingNode(ServerSystemContext context, NodeId nodeId)
        {
            BaseObjectTypeState objectType = null;

            if (!EventTypeNodes.TryGetValue(nodeId, out objectType))
            {
                return null;
            }

            AeEventTypeMappingState mappingNode = objectType as AeEventTypeMappingState;

            if (mappingNode == null)
            {
                return null;
            }

            if (context.TypeTable.FindSubTypes(mappingNode.NodeId).Count == 0)
            {
                return null;
            }

            return mappingNode;
        }