示例#1
0
 protected override bool IsForMe(Order order)
 {
     return(true);
 }
示例#2
0
 protected override bool IsForMe(Order order)
 {
     return(order.Price >= 1000000);
 }
示例#3
0
 protected override Order DoHandle(Order order)
 {
     return(order);
 }
示例#4
0
 protected override Order DoHandle(Order order)
 {
     order.Price -= 1000;
     return(order);
 }
示例#5
0
 protected override bool IsForMe(Order order)
 {
     return(order.Customer == "gopas");
 }
示例#6
0
 protected override Order DoHandle(Order order)
 {
     order.Price *= 0.9;
     return(order);
 }
示例#7
0
 protected abstract Order DoHandle(Order order);
示例#8
0
 protected abstract bool IsForMe(Order order);