Beispiel #1
0
 public virtual void RegistContinuTasks(
     TaskBuildHandler taskBuilder,
     TaskStateChangedHandler handler,
     int seconds)
 {
     this._taskManager.RegistContinuTasks(taskBuilder, handler, seconds);
 }
Beispiel #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();
        }
Beispiel #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();
        }
Beispiel #4
0
 public virtual void RegistContinuTasks(
     TaskBuildHandler taskBuilder,
     TaskStateChangedHandler handler,
     int seconds)
 {
     this._taskManager.RegistContinuTasks(taskBuilder, handler, seconds);
 }