终端一体化运控平台
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 години
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6. /* ***********************************************
  7.  * subject 数据总线接口
  8.  * author 张原川
  9.  * date   2019/6/3 11:33:57
  10.  * ***********************************************/
  11. namespace BPASmartClient.Bus.DataBus
  12. {
  13. /// <summary>
  14. /// 数据总线接口
  15. /// </summary>
  16. public interface IDataBus<TData>
  17. {
  18. /// <summary>
  19. /// 多数据订阅数量
  20. /// </summary>
  21. int MultSubscriberCount { get; }
  22. /// <summary>
  23. /// 单数据订阅数量
  24. /// </summary>
  25. int SingleSubscriberCount { get; }
  26. /// <summary>
  27. /// 数据量
  28. /// </summary>
  29. int DataCount { get; }
  30. /// <summary>
  31. /// 开启总线
  32. /// </summary>
  33. void StartBus();
  34. /// <summary>
  35. /// 关闭总线
  36. /// </summary>
  37. void StopBus();
  38. /// <summary>
  39. /// 数据放入总线
  40. /// </summary>
  41. /// <param name="data">数据</param>
  42. void Put(TData data);
  43. /// <summary>
  44. /// 数据放入总线
  45. /// </summary>
  46. /// <param name="data">数据</param>
  47. void Put(TData[] data);
  48. }
  49. }