Example #1
0
        /// <summary>
        /// Initializes the node manager.
        /// </summary>
        public DataTypesNodeManager(IServerInternal server, ApplicationConfiguration configuration)
            :
            base(server, configuration)
        {
            SystemContext.NodeIdFactory = this;

            SetNamespaces(
                Quickstarts.DataTypes.Namespaces.DataTypes,
                Quickstarts.DataTypes.Types.Namespaces.DataTypes,
                Quickstarts.DataTypes.Instances.Namespaces.DataTypeInstances);

            // get the configuration for the node manager.
            m_configuration = configuration.ParseExtension <DataTypesServerConfiguration>();

            // use suitable defaults if no configuration exists.
            if (m_configuration == null)
            {
                m_configuration = new DataTypesServerConfiguration();
            }
        }
Example #2
0
        /// <summary>
        /// Initializes the node manager.
        /// </summary>
        public DataTypesNodeManager(IServerInternal server, ApplicationConfiguration configuration)
        :
            base(server, configuration)            
        {
            SystemContext.NodeIdFactory = this;

            SetNamespaces(
                Quickstarts.DataTypes.Namespaces.DataTypes,
                Quickstarts.DataTypes.Types.Namespaces.DataTypes, 
                Quickstarts.DataTypes.Instances.Namespaces.DataTypeInstances);

            // get the configuration for the node manager.
            m_configuration = configuration.ParseExtension<DataTypesServerConfiguration>();

            // use suitable defaults if no configuration exists.
            if (m_configuration == null)
            {
                m_configuration = new DataTypesServerConfiguration();
            }
        }