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