コード例 #1
0
 public static TcpStump WhenMessageContainsBytesBeforePosition(this TcpStump stump, byte[] messageSegment, int position)
 {
     stump.AddRule(new ContainsBytesRule(messageSegment, BytesPlacement.BeforePosition, position));
     return(stump);
 }
コード例 #2
0
 public static TcpStump WhenLengthIsEqualTo(this TcpStump stump, int value)
 {
     stump.AddRule(new MessageLengthRule(LengthEvaluation.EqualToValue, value));
     return(stump);
 }
コード例 #3
0
 public static TcpStump WhenMessageIsAnything(this TcpStump stump)
 {
     stump.AddRule(new AnyMessageRule());
     return(stump);
 }
コード例 #4
0
 public static TcpStump WhenMessageContainsBytes(this TcpStump stump, byte[] messageSegment)
 {
     stump.AddRule(new ContainsBytesRule(messageSegment));
     return(stump);
 }
コード例 #5
0
 public static TcpStump WhenLengthIsLessThan(this TcpStump stump, int value)
 {
     stump.AddRule(new MessageLengthRule(LengthEvaluation.LessThanValue, value));
     return(stump);
 }