Пример #1
0
 private static byte[] EncodeRequest(IRequestContext context, GroupCoordinatorRequest request)
 {
     using (var writer = EncodeHeader(context, request)) {
         writer.Write(request.GroupId);
         return(writer.ToBytes());
     }
 }
Пример #2
0
 /// <inheritdoc />
 public bool Equals(GroupCoordinatorRequest other)
 {
     if (ReferenceEquals(null, other))
     {
         return(false);
     }
     if (ReferenceEquals(this, other))
     {
         return(true);
     }
     return(string.Equals(group_id, other.group_id));
 }