Esempio n. 1
0
        public IHandlerTask Run(Func <Task> actionAsync)
        {
            var handlerTask = new HandlerTask(this, actionAsync);

            _handlerTasks.Add(handlerTask);

            return(handlerTask);
        }
Esempio n. 2
0
        public IHandlerTask Run(Action action)
        {
            var handlerTask = new HandlerTask(this, action);

            _handlerTasks.Add(handlerTask);

            return(handlerTask);
        }