Exemple #1
0
 public override void DoStrategyWork(StrategyContext strategyContext)
 {
     Console.Write("执行上传配件业务 ");
     Console.WriteLine("我是可变参数:" + strategyContext.pars);
 }
Exemple #2
0
 public User(TaskType taskType, string pars)
 {
     this.strategyContext      = new StrategyContext(new InstanceFactory <IStrategy>().CreateInstanceBySubClass(taskType));
     this.strategyContext.pars = pars;
 }
Exemple #3
0
 public abstract void DoStrategyWork(StrategyContext strategyContext);