2121namespace Confluent . Kafka
2222{
2323 /// <summary>
24- /// A builder for <see cref="AdminClient " /> instances .
24+ /// A builder for <see cref="IAdminClient " />.
2525 /// </summary>
2626 public class AdminClientBuilder
2727 {
@@ -33,17 +33,17 @@ public class AdminClientBuilder
3333 /// <summary>
3434 /// The configured error handler.
3535 /// </summary>
36- internal protected Action < AdminClient , Error > ErrorHandler { get ; set ; }
36+ internal protected Action < IAdminClient , Error > ErrorHandler { get ; set ; }
3737
3838 /// <summary>
3939 /// The configured log handler.
4040 /// </summary>
41- internal protected Action < AdminClient , LogMessage > LogHandler { get ; set ; }
41+ internal protected Action < IAdminClient , LogMessage > LogHandler { get ; set ; }
4242
4343 /// <summary>
4444 /// The configured statistics handler.
4545 /// </summary>
46- internal protected Action < AdminClient , string > StatisticsHandler { get ; set ; }
46+ internal protected Action < IAdminClient , string > StatisticsHandler { get ; set ; }
4747
4848 /// <summary>
4949 /// Initialize a new <see cref="AdminClientBuilder" /> instance.
@@ -73,7 +73,7 @@ public AdminClientBuilder(IEnumerable<KeyValuePair<string, string>> config)
7373 /// Executes on the poll thread (a background thread managed by
7474 /// the admin client).
7575 /// </remarks>
76- public AdminClientBuilder SetStatisticsHandler ( Action < AdminClient , string > statisticsHandler )
76+ public AdminClientBuilder SetStatisticsHandler ( Action < IAdminClient , string > statisticsHandler )
7777 {
7878 if ( this . StatisticsHandler != null )
7979 {
@@ -93,7 +93,7 @@ public AdminClientBuilder SetStatisticsHandler(Action<AdminClient, string> stati
9393 /// Executes on the poll thread (a background thread managed by the admin
9494 /// client).
9595 /// </remarks>
96- public AdminClientBuilder SetErrorHandler ( Action < AdminClient , Error > errorHandler )
96+ public AdminClientBuilder SetErrorHandler ( Action < IAdminClient , Error > errorHandler )
9797 {
9898 if ( this . ErrorHandler != null )
9999 {
@@ -119,7 +119,7 @@ public AdminClientBuilder SetErrorHandler(Action<AdminClient, Error> errorHandle
119119 /// Confluent.Kafka APIs from within a log handler or perform any
120120 /// prolonged operations.
121121 /// </remarks>
122- public AdminClientBuilder SetLogHandler ( Action < AdminClient , LogMessage > logHandler )
122+ public AdminClientBuilder SetLogHandler ( Action < IAdminClient , LogMessage > logHandler )
123123 {
124124 if ( this . LogHandler != null )
125125 {
0 commit comments