IMessage.cs 533 B

123456789101112131415161718192021222324
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6. namespace NEIntelligentControl2.Service.WebSocket
  7. {
  8. /// <summary>
  9. /// 订阅数据接口
  10. /// </summary>
  11. public interface IMessage
  12. {
  13. /// <summary>
  14. /// 要订阅的消息类型消息类型
  15. /// </summary>
  16. List<string> MessageTypes { get; set; }
  17. /// <summary>
  18. /// 获得消息
  19. /// </summary>
  20. Task OnMessage(object message);
  21. }
  22. }