Esempio n. 1
0
        /// <summary>Starts this system.</summary>
        public override void Start()
        {
            this.SystemHost.UpdateSystemHost(this, "Starting...");

            // @@@ TODO: Test > 1, then allow total command processors to be configurable.
            int totalCommandProcessors = 1;

            for (int i = 0; i < totalCommandProcessors; i++)
            {
                var commandProcessor = new CommandProcessor(this);
                commandProcessor.Start();
                this.commandProcessors.Add(commandProcessor);
            }

            this.SystemHost.UpdateSystemHost(this, "Started");
        }
Esempio n. 2
0
        /// <summary>Starts this system.</summary>
        public override void Start()
        {
            this.SystemHost.UpdateSystemHost(this, "Starting...");

            // TODO: Test > 1, then allow total command processors to be configurable.
            //  This will take a significant effort to work out any race conditions which may leave
            //  things with multiple parents (essentially duplication bugs), deadlocks should we try
            //  to use multiple locks for transaction-like parenting changes, and so on. (We may need
            //  to end up using a fairly global lock for any Parent changes, etc. Note that the Thing
            //  locks in place now on getters and setters are definitely not effective / sufficient.)
            int totalCommandProcessors = 1;

            for (int i = 0; i < totalCommandProcessors; i++)
            {
                var commandProcessor = new CommandProcessor(this);
                commandProcessor.Start();
                this.commandProcessors.Add(commandProcessor);
            }

            this.SystemHost.UpdateSystemHost(this, "Started");
        }
Esempio n. 3
0
        /// <summary>Starts this system.</summary>
        public override void Start()
        {
            this.SystemHost.UpdateSystemHost(this, "Starting...");

            // @@@ TODO: Test > 1, then allow total command processors to be configurable.
            int totalCommandProcessors = 1;
            for (int i = 0; i < totalCommandProcessors; i++)
            {
                var commandProcessor = new CommandProcessor(this);
                commandProcessor.Start();
                this.commandProcessors.Add(commandProcessor);
            }

            this.SystemHost.UpdateSystemHost(this, "Started");
        }