public void StartWork() { if (Started) { return; } Started = true; Canceled = false; InitialLogger(); InitialCache(); InitialDatabase(); if (_workRoom == null) { _workRoom = new WorkRoom() { Cache = cache, DatabaseProvider = databaseProvider, ExtendService = new WorkRoomService(), Logger = logger }; _workRoom.Workers = new WorkerCollection(_workRoom); } _workRoom.Workers.Add(new InvestSchedule()); _workRoom.StartWork(); }
public override void DoWork(WorkRoom workPosition) { //var planlist, plan, investuser, targetlist, target; }
/// <summary> /// 开始工作.抽象方法(派生类必须实现) /// </summary> /// <param name="workPosition"></param> public abstract void DoWork(WorkRoom workPosition);