Nevar pievienot vairāk kā 25 tēmas
Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.
|
- 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);
- }
- }
|