您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
 
 
 
 

30 行
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. }