终端一体化运控平台
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.

пре 2 година
123456789101112131415161718192021222324252627282930313233
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6. /* ***********************************************
  7.  * subject 数据总线接口,定义原始数据、MAVLINK消息、状态数据、消息数据标准
  8.  * author 张原川
  9.  * date   2019/6/3 9:50:01
  10.  * ***********************************************/
  11. namespace BPASmartClient.Bus.DataBus
  12. {
  13. interface ISimpleDataBus<TData>: IDataBus<TData>,IDisposable
  14. {
  15. /// <summary>
  16. /// 订阅总线数据
  17. /// </summary>
  18. /// <param name="action">数据类型</param>
  19. void Subscribe(Action<TData> action);
  20. void Subscribe(Action<TData[]> action);
  21. /// <summary>
  22. /// 取消订阅数据
  23. /// </summary>
  24. /// <param name="action">数据类型</param>
  25. void UnSubcribe(Action<TData> action);
  26. void UnSubcribe(Action<TData[]> action);
  27. }
  28. }