UNPKG

dino-core

Version:

A dependency injection framework for NodeJS applications

18 lines 582 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.ContextScope = void 0; class ContextScope { constructor(scope, applicationContext) { this.scope = scope; this.applicationContext = applicationContext; } register(componentDescriptor) { this.scope.register(componentDescriptor.getName(), componentDescriptor.resolve(this.applicationContext)); return this; } async dispose() { await this.scope.dispose(); } } exports.ContextScope = ContextScope; //# sourceMappingURL=ContextScope.js.map