public void PartitionsAssigned(List <TopicPartition> partitions)
 {
     Assignment.Clear();
     Assignment.AddRange(partitions);
 }