示例#1
0
 public virtual void RegistContinuTasks(
     TaskBuildHandler taskBuilder,
     TaskStateChangedHandler handler,
     int seconds)
 {
     this._taskManager.RegistContinuTasks(taskBuilder, handler, seconds);
 }
示例#2
0
        internal void RegistContinuTasks(
            TaskBuildHandler taskBuilder,
            TaskStateChangedHandler handler,
            int minseconds)
        {
            new Thread(() =>
            {
                while (true)
                {
                    try
                    {
                        this.RegistTask(taskBuilder(), handler);
                    }
                    catch (Exception exc)
                    {
                        this._syncBox.Notifing(taskBuilder, "任务创建失败!");
                    }

                    Thread.Sleep(minseconds);
                }
            }).Start();
        }
示例#3
0
        internal void RegistContinuTasks(
            TaskBuildHandler taskBuilder,
            TaskStateChangedHandler handler,
            int minseconds)
        {
            new Thread(() =>
            {
                while (true)
                {
                    try
                    {
                        this.RegistTask(taskBuilder(), handler);
                    }
                    catch (Exception exc)
                    {
                        this._syncBox.Notifing(taskBuilder, "���񴴽�ʧ��!");
                    }

                    Thread.Sleep(minseconds);
                }
            }).Start();
        }
示例#4
0
 public virtual void RegistContinuTasks(
     TaskBuildHandler taskBuilder,
     TaskStateChangedHandler handler,
     int seconds)
 {
     this._taskManager.RegistContinuTasks(taskBuilder, handler, seconds);
 }