/// <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; } }
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; } }