Skip to content

Commit 5977c65

Browse files
authored
Added IDisposable to Web example KafkaClientHandle (#1445)
1 parent 78d51b6 commit 5977c65

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

examples/Web/KafkaClientHandle.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
//
1515
// Refer to LICENSE for more information.
1616

17+
using System;
1718
using Confluent.Kafka;
1819
using Microsoft.Extensions.Configuration;
1920

@@ -33,7 +34,7 @@ namespace Web
3334
/// Confluent.Kafka.IProducer instances for each Message type you wish to
3435
/// produce.
3536
/// </summary>
36-
public class KafkaClientHandle
37+
public class KafkaClientHandle : IDisposable
3738
{
3839
IProducer<byte[], byte[]> kafkaProducer;
3940

0 commit comments

Comments
 (0)