示例#1
0
 public override void Update(ILoadJob job, JobEngine engine)
 {
     if (job == null)
     {
         engine.SetState(EngineStatus.Wait);
         return;
     }
     //	キャンセル時
     if (job.IsCanceled || job.IsDisposed)
     {
         engine.Refresh();
         engine.SetState(EngineStatus.Wait);
         return;
     }
     job.Update();
     //	エラー
     if (job.IsError)
     {
         engine.SetState(EngineStatus.Error);
         return;
     }
     //	完了
     if (job.IsCompleted)
     {
         engine.SetState(EngineStatus.Complete);
         return;
     }
 }
示例#2
0
 public override void Update(ILoadJob job, JobEngine engine)
 {
     if (!engine.MoveNext())
     {
         return;
     }
     engine.SetState(EngineStatus.Running);
 }
示例#3
0
 public override void Update(ILoadJob job, JobEngine engine)
 {
     engine.SetState(EngineStatus.Wait);
 }