private TaskStore.TaskStore BuildTaskStore() { var taskstore = new TaskStore.TaskStore(); Infrastructure.TaskExecutionObserver.Kernal.FailedExecuteTaskEvent += ExecutedTaskEvent; Infrastructure.TaskExecutionObserver.Kernal.SuccessExecuteTaskEvent += ExecutedTaskEvent; return(taskstore); }
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); }