25개 이상의 토픽을 선택하실 수 없습니다.
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
- 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);
- }
- }
|