Пример #1
0
        /// <summary>
        /// Stops execution in non-dedicated mode.
        /// </summary>
        public void StopNonDedicatedExecuting()
        {
            if (!_Dedicated & ExecutingNonDedicated)
            {
                logger.Debug("Stopping Non-dedicated execution monitor thread...");
                this._NDEWorker.Stop();
                _NDEWorker = null;

                logger.Debug("Raising event: NonDedicatedExecutingStatusChanged");
                OnNonDedicatedExecutingStatusChanged();
            }
        }
Пример #2
0
        /// <summary>
        /// StartApplication execution in non-dedicated mode.
        /// </summary>
        /// <param name="emptyThreadInterval">Interval to wait in between attempts to get a thread from the manager</param>
        public void StartNonDedicatedExecuting(int emptyThreadInterval)
        {
            if (!_Dedicated & !ExecutingNonDedicated)
            {
                logger.Debug("Starting Non-dedicatedMonitor thread");
                _NDEWorker = new NonDedicatedExecutorWorker(this);
                _NDEWorker.Start();

                //raise the nde status change event.
                OnNonDedicatedExecutingStatusChanged();

                //start the heartbeat thread.
                logger.Debug("Starting heart-beat thread: non-dedicated mode");
                StartHeartBeat(HeartbeatWorker.DEFAULT_INTERVAL);
            }
        }