Example #1
0
 private static byte[] EncodeRequest(IRequestContext context, DeleteTopicsRequest request)
 {
     using (var writer = EncodeHeader(context, request)) {
         writer.Write(request.Topics, true)
         .Write((int)request.Timeout.TotalMilliseconds);
         return(writer.ToBytes());
     }
 }
 public bool Equals(DeleteTopicsRequest other)
 {
     if (ReferenceEquals(null, other))
     {
         return(false);
     }
     if (ReferenceEquals(this, other))
     {
         return(true);
     }
     return(base.Equals(other) &&
            topics.HasEqualElementsInOrder(other.topics) &&
            timeout.Equals(other.timeout));
 }