using System; using System.Threading.Tasks; namespace PhoenixLib.ServiceBus.MQTT { public interface IMessagingService : IAsyncDisposable { /// /// Should not be exposed but permits to send IMessage on the MessageQueue /// /// /// /// Task SendAsync(T eventToSend) where T : IMessage; Task StartAsync(); } }