@@ -33,17 +33,17 @@ public class ProducerBuilder<TKey, TValue>
3333 /// <summary>
3434 /// The configured error handler.
3535 /// </summary>
36- internal protected Action < Producer < TKey , TValue > , Error > ErrorHandler { get ; set ; }
36+ internal protected Action < IProducer < TKey , TValue > , Error > ErrorHandler { get ; set ; }
3737
3838 /// <summary>
3939 /// The configured log handler.
4040 /// </summary>
41- internal protected Action < Producer < TKey , TValue > , LogMessage > LogHandler { get ; set ; }
41+ internal protected Action < IProducer < TKey , TValue > , LogMessage > LogHandler { get ; set ; }
4242
4343 /// <summary>
4444 /// The configured statistics handler.
4545 /// </summary>
46- internal protected Action < Producer < TKey , TValue > , string > StatisticsHandler { get ; set ; }
46+ internal protected Action < IProducer < TKey , TValue > , string > StatisticsHandler { get ; set ; }
4747
4848
4949 /// <summary>
@@ -108,7 +108,7 @@ public ProducerBuilder(IEnumerable<KeyValuePair<string, string>> config)
108108 /// Executes on the poll thread (by default, a background thread managed by
109109 /// the producer).
110110 /// </remarks>
111- public ProducerBuilder < TKey , TValue > SetStatisticsHandler ( Action < Producer < TKey , TValue > , string > statisticsHandler )
111+ public ProducerBuilder < TKey , TValue > SetStatisticsHandler ( Action < IProducer < TKey , TValue > , string > statisticsHandler )
112112 {
113113 if ( this . StatisticsHandler != null )
114114 {
@@ -128,7 +128,7 @@ public ProducerBuilder<TKey, TValue> SetStatisticsHandler(Action<Producer<TKey,
128128 /// Executes on the poll thread (by default, a background thread managed by
129129 /// the producer).
130130 /// </remarks>
131- public ProducerBuilder < TKey , TValue > SetErrorHandler ( Action < Producer < TKey , TValue > , Error > errorHandler )
131+ public ProducerBuilder < TKey , TValue > SetErrorHandler ( Action < IProducer < TKey , TValue > , Error > errorHandler )
132132 {
133133 if ( this . ErrorHandler != null )
134134 {
@@ -154,7 +154,7 @@ public ProducerBuilder<TKey, TValue> SetErrorHandler(Action<Producer<TKey, TValu
154154 /// Confluent.Kafka APIs from within a log handler or perform any
155155 /// prolonged operations.
156156 /// </remarks>
157- public ProducerBuilder < TKey , TValue > SetLogHandler ( Action < Producer < TKey , TValue > , LogMessage > logHandler )
157+ public ProducerBuilder < TKey , TValue > SetLogHandler ( Action < IProducer < TKey , TValue > , LogMessage > logHandler )
158158 {
159159 if ( this . LogHandler != null )
160160 {
0 commit comments