using System; using System.Collections.Generic; using System.Threading.Tasks; using MQTTnet.Client; namespace MQTTnet.ManagedClient { public interface IManagedMqttClient : IApplicationMessageReceiver, IApplicationMessagePublisher { bool IsConnected { get; } event EventHandler Connected; event EventHandler Disconnected; Task StartAsync(IManagedMqttClientOptions options); Task StopAsync(); Task SubscribeAsync(IEnumerable topicFilters); Task UnsubscribeAsync(IEnumerable topics); } }