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 数据总线接口,定义原始数据、MAVLINK消息、状态数据、消息数据标准
- * author 张原川
- * date 2019/6/3 9:50:01
- * ***********************************************/
-
- namespace BPASmartClient.Bus.DataBus
- {
- interface ISimpleDataBus<TData>: IDataBus<TData>,IDisposable
- {
- /// <summary>
- /// 订阅总线数据
- /// </summary>
- /// <param name="action">数据类型</param>
- void Subscribe(Action<TData> action);
- void Subscribe(Action<TData[]> action);
-
- /// <summary>
- /// 取消订阅数据
- /// </summary>
- /// <param name="action">数据类型</param>
- void UnSubcribe(Action<TData> action);
- void UnSubcribe(Action<TData[]> action);
-
- }
- }
|