Пример #1
0
        /// <summary>
        /// Stops the process of dispatching jobs. the process can be resumed by calling StartDispatch().
        /// </summary>
        public void StopDispatch()
        {
            _controlUnit.Stop();
            _jobResultReciver.Stop();
            _jobDispatcher.StopDispatch();

            // Generate JobDispatcherStoppedLog Log
            Log.JobDispatcherStoppedLog log = new Log.JobDispatcherStoppedLog();
            log.Message = "Stop request sent to the job dispatcher.";
            EventExtensions.Raise(NewLogItem, new object[] { log });
        }