Esempio n. 1
0
        /// <summary>
        /// Method to group together all the tasks associated with an execution being complete
        /// </summary>
        public void RunComplete()
        {
            controller.OnRunCompleted(this, false);

            lock (runControlMutex)
            {
                Running = false;
                controller.DynamoViewModel.RunEnabled = true;
            }
        }
Esempio n. 2
0
        private void RunSync()
        {
            do
            {
                Evaluate();

                if (execInternval == null)
                {
                    break;
                }

                var sleep = execInternval.Value;
                Thread.Sleep(sleep);
            }while (!cancelSet);

            controller.OnRunCompleted(this, false);

            lock (runControlMutex)
            {
                Running = false;
                controller.DynamoViewModel.RunEnabled = true;
            }
        }