Exemple #1
0
 public override void Rule(Packet packet)
 {
     if (!AccessSubject(packet))
     {
         throw new ExceptionWhenAccess();
     }
     else if (NextRules != null)
     {
         NextRules.Rule(packet);
     }
 }
Exemple #2
0
 public override void Rule(Packet packet)
 {
     if (!(packet.Head != null) && (packet.Body != null))
     {
         throw new ExceptionWhenCorrecherss();
     }
     else if (NextRules != null)
     {
         NextRules.Rule(packet);
     }
 }
Exemple #3
0
 public override void Rule(Packet packet)
 {
     if (!AnswerUser(packet))
     {
         throw new ExceptionWhenAnswer();
     }
     else if (NextRules != null)
     {
         NextRules.Rule(packet);
     }
 }