Beispiel #1
0
        /// <summary>
        /// Initializes the node manager.
        /// </summary>
        public DataAccessServerNodeManager(IServerInternal server, ApplicationConfiguration configuration)
            :
            base(server, configuration, Namespaces.DataAccess)
        {
            this.AliasRoot = "DA";

            SystemContext.SystemHandle  = m_system = new UnderlyingSystem();
            SystemContext.NodeIdFactory = this;

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

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

            // create the table to store the cached blocks.
            m_blocks = new Dictionary <NodeId, BlockState>();
        }
        /// <summary>
        /// Initializes the node manager.
        /// </summary>
        public DataAccessServerNodeManager(IServerInternal server, ApplicationConfiguration configuration)
        :
            base(server, configuration, Namespaces.DataAccess)
        {
            this.AliasRoot = "DA";

            SystemContext.SystemHandle = m_system = new UnderlyingSystem();
            SystemContext.NodeIdFactory = this;

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

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

            // create the table to store the cached blocks.
            m_blocks = new Dictionary<NodeId, BlockState>();
        }