You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

30 lines
599 B

  1. using System;
  2. using System.Threading.Tasks;
  3. using MQTTnet.Serializer;
  4. namespace MQTTnet.Server
  5. {
  6. public interface IMqttClientSessionStatus
  7. {
  8. string ClientId { get; }
  9. string Endpoint { get; }
  10. bool IsConnected { get; }
  11. MqttProtocolVersion? ProtocolVersion { get; }
  12. TimeSpan LastPacketReceived { get; }
  13. TimeSpan LastNonKeepAlivePacketReceived { get; }
  14. int PendingApplicationMessagesCount { get; }
  15. Task DisconnectAsync();
  16. Task DeleteSessionAsync();
  17. Task ClearPendingApplicationMessagesAsync();
  18. }
  19. }