public void CommitPartition(MapImpl offset) { var consumer = consumerAsync; var topicFix = offset.Retrieve( ValueFactory.Create("Канал")).AsString(); var partFix = (int)offset.Retrieve( ValueFactory.Create("Раздел")).AsNumber(); var offsetFix = (int)offset.Retrieve( ValueFactory.Create("Смещение")).AsNumber(); TopicPartitionOffset[] topicsCommit = { new TopicPartitionOffset( topicFix, partFix, offsetFix ) }; var commiterList = new List <TopicPartitionOffset>(); consumer.Commit( new List <TopicPartitionOffset>(topicsCommit) ); }