示例#1
0
        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();
        }
示例#2
0
 public override void DoWork(WorkRoom workPosition)
 {
     //var planlist, plan, investuser, targetlist, target;
 }
示例#3
0
文件: Worker.cs 项目: DarkMoon4CN/CLT
 /// <summary>
 /// 开始工作.抽象方法(派生类必须实现)
 /// </summary>
 /// <param name="workPosition"></param>
 public abstract void DoWork(WorkRoom workPosition);