/// <inheritdoc/> public void LoadUaDefinedTypes(ISystemContext context) { if (m_uaTypesLoaded) { return; } NodeStateCollection predefinedNodes = new NodeStateCollection(); var assembly = typeof(ArgumentCollection).GetTypeInfo().Assembly; predefinedNodes.LoadFromBinaryResource(context, "Opc.Ua.Stack.Generated.Opc.Ua.PredefinedNodes.uanodes", assembly, true); for (int ii = 0; ii < predefinedNodes.Count; ii++) { BaseTypeState type = predefinedNodes[ii] as BaseTypeState; if (type == null) { continue; } type.Export(context, m_nodes); } m_uaTypesLoaded = true; }
/// <summary> /// Loads the UA defined types into the cache. /// </summary> /// <param name="context">The context.</param> public void LoadUaDefinedTypes(ISystemContext context) { NodeStateCollection predefinedNodes = new NodeStateCollection(); predefinedNodes.LoadFromBinaryResource(context, "Opc.Ua.Stack.Generated.Opc.Ua.PredefinedNodes.uanodes", typeof(NodeState).Assembly, true); for (int ii = 0; ii < predefinedNodes.Count; ii++) { BaseTypeState type = predefinedNodes[ii] as BaseTypeState; if (type == null) { continue; } type.Export(context, m_nodes); } }