public static Guid ExecuteProjectItem(string filename, string instancePath, ZeusProcessStatusDelegate callback)
 {
     ZeusProcess zp = new ZeusProcess(ZeusProcessType.ExecuteProjectItem, callback, filename, instancePath);
     processQueue.Enqueue(zp);
     Start();
     return zp.ID;
 }
 public static Guid RecordProjectItem(string filename, string instancePath, string templateFilename, ZeusProcessStatusDelegate callback)
 {
     ZeusProcess zp = new ZeusProcess(ZeusProcessType.RecordProjectItem, callback, filename, instancePath, templateFilename);
     processQueue.Enqueue(zp);
     Start();
     return zp.ID;
 }
 public static Guid ExecuteSavedInput(string filename, ZeusProcessStatusDelegate callback)
 {
     ZeusProcess zp = new ZeusProcess(ZeusProcessType.ExecuteSavedInput, callback, filename);
     processQueue.Enqueue(zp);
     Start();
     return zp.ID;
 }
 public static Guid RecordTemplateInput(string templateFilename, string saveToFilename, ZeusProcessStatusDelegate callback)
 {
     ZeusProcess zp = new ZeusProcess(ZeusProcessType.RecordTemplateInput, callback, templateFilename, saveToFilename);
     processQueue.Enqueue(zp);
     Start();
     return zp.ID;
 }
Пример #5
0
        private static void runMonitorThread()
        {
            try
            {
                while (processQueue.Count > 0 || runningProcess != null)
                {
                    if (runningProcess == null)
                    {
                        runningProcess = processQueue.Dequeue();
                    }

                    runningProcess.Start();
                    while (!runningProcess.IsDormant)
                    {
                        Thread.Sleep(250);
                    }
                    runningProcess.Join();
                    runningProcess = null;
                }
            }
            catch (ThreadAbortException)
            {
                if (runningProcess != null)
                {
                    runningProcess.Kill();
                }
                processQueue.Clear();
            }
        }
Пример #6
0
        public static Guid RecordProjectItem(string filename, string instancePath, string templateFilename, ZeusProcessStatusDelegate callback)
        {
            ZeusProcess zp = new ZeusProcess(ZeusProcessType.RecordProjectItem, callback, filename, instancePath, templateFilename);

            processQueue.Enqueue(zp);
            Start();
            return(zp.ID);
        }
Пример #7
0
        public static Guid ExecuteProjectItem(string filename, string instancePath, ZeusProcessStatusDelegate callback)
        {
            ZeusProcess zp = new ZeusProcess(ZeusProcessType.ExecuteProjectItem, callback, filename, instancePath);

            processQueue.Enqueue(zp);
            Start();
            return(zp.ID);
        }
Пример #8
0
        public static Guid RecordTemplateInput(string templateFilename, string saveToFilename, ZeusProcessStatusDelegate callback)
        {
            ZeusProcess zp = new ZeusProcess(ZeusProcessType.RecordTemplateInput, callback, templateFilename, saveToFilename);

            processQueue.Enqueue(zp);
            Start();
            return(zp.ID);
        }
Пример #9
0
        public static Guid ExecuteSavedInput(string filename, ZeusProcessStatusDelegate callback)
        {
            ZeusProcess zp = new ZeusProcess(ZeusProcessType.ExecuteSavedInput, callback, filename);

            processQueue.Enqueue(zp);
            Start();
            return(zp.ID);
        }
        private static void runMonitorThread()
        {
            try
            {
                while (processQueue.Count > 0 || runningProcess != null)
                {
                    if (runningProcess == null)
                    {
                        runningProcess = processQueue.Dequeue();
                    }

                    runningProcess.Start();
                    while (!runningProcess.IsDormant)
                    {
                        Thread.Sleep(250);
                    }
                    runningProcess.Join();
                    runningProcess = null;
                }
            }
            catch (ThreadAbortException)
            {
                if (runningProcess != null)
                {
                    runningProcess.Kill();
                }
                processQueue.Clear();
            }
        }