using System; using System.Collections.Generic; using System.Threading.Tasks; using MQTTnet.Core.Client; namespace MQTTnet.Core.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 topicFilters); } }