IMqttServerAdapter.cs 314 B

1234567891011121314
  1. using System;
  2. using System.Threading.Tasks;
  3. using MQTTnet.Server;
  4. namespace MQTTnet.Adapter
  5. {
  6. public interface IMqttServerAdapter : IDisposable
  7. {
  8. Func<IMqttChannelAdapter, Task> ClientHandler { get; set; }
  9. Task StartAsync(IMqttServerOptions options);
  10. Task StopAsync();
  11. }
  12. }