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

18 行
497 B

  1. using System;
  2. using System.Threading;
  3. using System.Threading.Tasks;
  4. namespace MQTTnet.Channel
  5. {
  6. public interface IMqttChannel : IDisposable
  7. {
  8. string Endpoint { get; }
  9. Task ConnectAsync(CancellationToken cancellationToken);
  10. Task DisconnectAsync();
  11. Task<int> ReadAsync(byte[] buffer, int offset, int count, CancellationToken cancellationToken);
  12. Task WriteAsync(byte[] buffer, int offset, int count, CancellationToken cancellationToken);
  13. }
  14. }