Пример #1
0
        public void Execute <T>(params dynamic[] parameters) where T : Subtask
        {
            isRunning = true;

            taskThread = new Thread(() =>
            {
                try
                {
                    TaskCore.Begin();
                    TaskCore.Bind(container.Add);

                    Result = TaskCore.Require <T>(parameters);
                }
                catch (Exception ex)
                {
                    threadException = ex;
                }
                finally
                {
                    TaskCore.End();
                    isRunning = false;
                }
            });

            taskThread.Start();
        }
Пример #2
0
        public dynamic Execute <T>(params dynamic[] parameters) where T : Subtask
        {
            try
            {
                TaskCore.Begin();
                TaskCore.Bind(container.Add);

                return(TaskCore.Require <T>(parameters));
            }
            finally
            {
                TaskCore.End();
            }
        }
Пример #3
0
 public static dynamic Require <T1, T2>(ref bool received, params dynamic[] parameters)
     where T1 : Subtask
     where T2 : Subtask
 {
     return(TaskCore.Require <T1, T2>(ref received, parameters));
 }
Пример #4
0
 public void Trigger <T>(string message)
 {
     TaskCore.Trigger <T>(message);
     McsfRestoreLogger.WriteLog(message);
 }
Пример #5
0
 public dynamic Require <T>(params dynamic[] parameters) where T : Subtask
 {
     return(TaskCore.Require <T>(parameters));
 }