Make clients interfaces disposable.

This commit is contained in:
Christian
2018-01-21 14:10:23 +01:00
parent 8773117493
commit c7c84ad39b
4 changed files with 4 additions and 4 deletions
@@ -4,7 +4,7 @@ using System.Threading.Tasks;
namespace MQTTnet.Client
{
public interface IMqttClient : IApplicationMessageReceiver, IApplicationMessagePublisher
public interface IMqttClient : IApplicationMessageReceiver, IApplicationMessagePublisher, IDisposable
{
bool IsConnected { get; }
@@ -12,7 +12,7 @@ using MQTTnet.Protocol;
namespace MQTTnet.Client
{
public class MqttClient : IMqttClient, IDisposable
public class MqttClient : IMqttClient
{
private readonly IMqttClientAdapterFactory _adapterFactory;
private readonly MqttPacketDispatcher _packetDispatcher;