Ejemplo n.º 1
0
        /// <summary>
        /// Initializes the node manager.
        /// </summary>
        public PerfTestNodeManager(IServerInternal server, ApplicationConfiguration configuration)
            :
            base(server, configuration, Namespaces.PerfTest)
        {
            SystemContext.NodeIdFactory = this;
            SystemContext.SystemHandle  = m_system = new UnderlyingSystem();

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

            // use suitable defaults if no configuration exists.
            if (m_configuration == null)
            {
                m_configuration = new PerfTestServerConfiguration();
            }
        }
Ejemplo n.º 2
0
        /// <summary>
        /// Initializes the node manager.
        /// </summary>
        public PerfTestNodeManager(IServerInternal server, ApplicationConfiguration configuration)
        :
            base(server, configuration, Namespaces.PerfTest)
        {
            SystemContext.NodeIdFactory = this;
            SystemContext.SystemHandle = m_system = new UnderlyingSystem();

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

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