"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.DescriptorWorker = void 0;
const Di_1 = require("../../ioc/Di");
const VPContainerToken_1 = require("../../ioc/VPContainerToken");
const integration_engine_1 = require("@golemio/core/dist/integration-engine");
const constants_1 = require("./constants");
class DescriptorWorker extends integration_engine_1.AbstractWorker {
    constructor() {
        super();
        this.name = constants_1.WORKER_NAME;
        this.registerTask = (task) => {
            super.registerTask(task);
            task.queuePrefix = this.getQueuePrefix();
        };
        // Register tasks
        this.registerTask(Di_1.VPContainer.resolve(VPContainerToken_1.VPContainerToken.RefreshDescriptorsTask));
    }
}
exports.DescriptorWorker = DescriptorWorker;
//# sourceMappingURL=DescriptorWorker.js.map