Example #1
0
        private TaskStore.TaskStore BuildTaskStore()
        {
            var taskstore = new TaskStore.TaskStore();

            Infrastructure.TaskExecutionObserver.Kernal.FailedExecuteTaskEvent  += ExecutedTaskEvent;
            Infrastructure.TaskExecutionObserver.Kernal.SuccessExecuteTaskEvent += ExecutedTaskEvent;
            return(taskstore);
        }
Example #2
0
 internal Queue(int queueWorkersCount, BehaviorTaskExecution executer, string queueName)
 {
     QueueName = queueName;
     this.QueueWorkersCount = queueWorkersCount;
     _executer       = executer;
     attemptMaxCount = 0;
     QueueTaskStore  = new TaskStore.TaskStore(QueueName);
     QueueWorkers    = BuildWorkers(QueueWorkersCount, Executer, QueueName);
 }