public bool Subscribe(Type dataType, Func <object, Task> callback, bool hierarchy, IEnumerable <BusHeader> filter) { AsyncActionHandler <object> asyncActionHandler = new AsyncActionHandler <object>(callback); return(_helper.Subscribe(dataType, asyncActionHandler, hierarchy, filter)); }
public bool Subscribe <TData>(Func <TData, Task> callback, bool hierarchy, IEnumerable <BusHeader> filter) { AsyncActionHandler <TData> asyncActionHandler = new AsyncActionHandler <TData>(callback); return(_helper.Subscribe(typeof(TData), asyncActionHandler, hierarchy, filter)); }