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; } }
public override void Update(ILoadJob job, JobEngine engine) { if (!engine.MoveNext()) { return; } engine.SetState(EngineStatus.Running); }
public override void Update(ILoadJob job, JobEngine engine) { engine.SetState(EngineStatus.Wait); }