コード例 #1
0
        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));
        }
コード例 #2
0
        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));
        }