Opc.Ua.Server.NodeSource.NodeSource C# (CSharp) Method

NodeSource() protected method

Associates the object with a server (mandatory) and its model parent (optional).
protected NodeSource ( IServerInternal server, NodeSource parent ) : System
server IServerInternal
parent NodeSource
return System
        protected NodeSource(
            IServerInternal server,
            NodeSource      parent)
        {
            if (server == null) throw new ArgumentNullException("server");
            
            m_server     = server;
            m_parent     = parent;
            m_references = new ReferenceCollection();
            
            if (parent != null)
            {
                m_lock = parent.m_lock;
                parent.AddChild(this);
            }
        }
        #endregion