|
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354 |
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
-
-
- /* ***********************************************
- * subject 数据总线接口
- * author 张原川
- * date 2019/6/3 11:33:57
- * ***********************************************/
-
- namespace BPASmartClient.Bus.DataBus
- {
- /// <summary>
- /// 数据总线接口
- /// </summary>
- public interface IDataBus<TData>
- {
- /// <summary>
- /// 多数据订阅数量
- /// </summary>
- int MultSubscriberCount { get; }
- /// <summary>
- /// 单数据订阅数量
- /// </summary>
- int SingleSubscriberCount { get; }
- /// <summary>
- /// 数据量
- /// </summary>
- int DataCount { get; }
- /// <summary>
- /// 开启总线
- /// </summary>
- void StartBus();
-
- /// <summary>
- /// 关闭总线
- /// </summary>
- void StopBus();
-
- /// <summary>
- /// 数据放入总线
- /// </summary>
- /// <param name="data">数据</param>
- void Put(TData data);
- /// <summary>
- /// 数据放入总线
- /// </summary>
- /// <param name="data">数据</param>
- void Put(TData[] data);
- }
- }
|