Exemplo n.º 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();
        }
Exemplo n.º 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();
            }
        }
Exemplo n.º 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));
 }
Exemplo n.º 4
0
 public void Trigger <T>(string message)
 {
     TaskCore.Trigger <T>(message);
     McsfRestoreLogger.WriteLog(message);
 }
Exemplo n.º 5
0
 public dynamic Require <T>(params dynamic[] parameters) where T : Subtask
 {
     return(TaskCore.Require <T>(parameters));
 }