@@ -17,7 +17,7 @@ internal class Consumer : IConsumer
1717 private readonly ILogHandler _logHandler ;
1818 private readonly bool _stopTheWorldStrategy ;
1919
20- private readonly List < Action < IDependencyResolver , IConsumer < byte [ ] , byte [ ] > , List < TopicPartition > > >
20+ private readonly List < Action < IDependencyResolver , IConsumer < byte [ ] , byte [ ] > , List < Confluent . Kafka . TopicPartition > > >
2121 _partitionsAssignedHandlers = new ( ) ;
2222
2323 private readonly List < Action < IDependencyResolver , IConsumer < byte [ ] , byte [ ] > ,
@@ -26,7 +26,7 @@ private readonly List<Action<IDependencyResolver, IConsumer<byte[], byte[]>, Lis
2626
2727 private readonly List < Action < IConsumer < byte [ ] , byte [ ] > , Error > > _errorsHandlers = new ( ) ;
2828 private readonly List < Action < IConsumer < byte [ ] , byte [ ] > , string > > _statisticsHandlers = new ( ) ;
29- private readonly ConcurrentDictionary < TopicPartition , long > _currentPartitionsOffsets = new ( ) ;
29+ private readonly ConcurrentDictionary < Confluent . Kafka . TopicPartition , long > _currentPartitionsOffsets = new ( ) ;
3030 private readonly ConsumerFlowManager _flowManager ;
3131 private readonly Event _maxPollIntervalExceeded ;
3232
@@ -71,7 +71,7 @@ public Consumer(
7171
7272 public IReadOnlyList < string > Subscription { get ; private set ; } = new List < string > ( ) ;
7373
74- public IReadOnlyList < TopicPartition > Assignment { get ; private set ; } = new List < TopicPartition > ( ) ;
74+ public IReadOnlyList < Confluent . Kafka . TopicPartition > Assignment { get ; private set ; } = new List < Confluent . Kafka . TopicPartition > ( ) ;
7575
7676 public IConsumerFlowManager FlowManager => _flowManager ;
7777
@@ -101,7 +101,7 @@ public ConsumerStatus Status
101101 }
102102 }
103103
104- public void OnPartitionsAssigned ( Action < IDependencyResolver , IConsumer < byte [ ] , byte [ ] > , List < TopicPartition > > handler ) =>
104+ public void OnPartitionsAssigned ( Action < IDependencyResolver , IConsumer < byte [ ] , byte [ ] > , List < Confluent . Kafka . TopicPartition > > handler ) =>
105105 _partitionsAssignedHandlers . Add ( handler ) ;
106106
107107 public void OnPartitionsRevoked (
@@ -114,13 +114,13 @@ public void OnError(Action<IConsumer<byte[], byte[]>, Error> handler) =>
114114 public void OnStatistics ( Action < IConsumer < byte [ ] , byte [ ] > , string > handler ) =>
115115 _statisticsHandlers . Add ( handler ) ;
116116
117- public Offset GetPosition ( TopicPartition topicPartition ) =>
117+ public Offset GetPosition ( Confluent . Kafka . TopicPartition topicPartition ) =>
118118 _consumer . Position ( topicPartition ) ;
119119
120- public WatermarkOffsets GetWatermarkOffsets ( TopicPartition topicPartition ) =>
120+ public WatermarkOffsets GetWatermarkOffsets ( Confluent . Kafka . TopicPartition topicPartition ) =>
121121 _consumer . GetWatermarkOffsets ( topicPartition ) ;
122122
123- public WatermarkOffsets QueryWatermarkOffsets ( TopicPartition topicPartition , TimeSpan timeout ) =>
123+ public WatermarkOffsets QueryWatermarkOffsets ( Confluent . Kafka . TopicPartition topicPartition , TimeSpan timeout ) =>
124124 _consumer . QueryWatermarkOffsets ( topicPartition , timeout ) ;
125125
126126 public List < Confluent . Kafka . TopicPartitionOffset > OffsetsForTimes (
@@ -286,7 +286,7 @@ private void ManualAssign(IEnumerable<TopicPartitions> topics)
286286 var partitions = topics
287287 . SelectMany (
288288 topic => topic . Partitions . Select (
289- partition => new TopicPartition ( topic . Name , new Partition ( partition ) ) ) )
289+ partition => new Confluent . Kafka . TopicPartition ( topic . Name , new Partition ( partition ) ) ) )
290290 . ToList ( ) ;
291291
292292 _consumer . Assign ( partitions ) ;
@@ -295,7 +295,7 @@ private void ManualAssign(IEnumerable<TopicPartitions> topics)
295295
296296 private void FirePartitionsAssignedHandlers (
297297 IConsumer < byte [ ] , byte [ ] > consumer ,
298- List < TopicPartition > partitions )
298+ List < Confluent . Kafka . TopicPartition > partitions )
299299 {
300300 if ( _stopTheWorldStrategy )
301301 {
@@ -323,7 +323,7 @@ private void FirePartitionRevokedHandlers(IConsumer<byte[], byte[]> consumer, Li
323323 if ( _stopTheWorldStrategy )
324324 {
325325 _partitionsRevokedHandlers . ForEach ( handler => handler ( _dependencyResolver , consumer , partitions ) ) ;
326- this . Assignment = new List < TopicPartition > ( ) ;
326+ this . Assignment = new List < Confluent . Kafka . TopicPartition > ( ) ;
327327 this . Subscription = new List < string > ( ) ;
328328 _currentPartitionsOffsets . Clear ( ) ;
329329 _flowManager . Stop ( ) ;
0 commit comments