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

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

            // use suitable defaults if no configuration exists.
            if (m_configuration == null)
            {
                m_configuration = new TutorialServerConfiguration();
            }
        }
        /// <summary>
        /// Initializes the node manager.
        /// </summary>
        public TutorialNodeManager(IServerInternal server, ApplicationConfiguration configuration)
        :
            base(server, configuration, Namespaces.Tutorial)            
        {
            SystemContext.NodeIdFactory = this;

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

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