Ejemplo n.º 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();
        }
Ejemplo n.º 2
0
 public override void DoWork(WorkRoom workPosition)
 {
     //var planlist, plan, investuser, targetlist, target;
 }
Ejemplo n.º 3
0
 /// <summary>
 /// 开始工作.抽象方法(派生类必须实现)
 /// </summary>
 /// <param name="workPosition"></param>
 public abstract void DoWork(WorkRoom workPosition);