SB-6.1-PRE
This commit is contained in:
1 parent
690169a409
commit
358a25f522
3760 files changed
+300059
-36
No files matched your search
+25
@@ -0,0 +1,25 @@
|
||||
define(["require", "exports", "../utils/id"], function (require, exports, id_1) {
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
var Request = (function () {
|
||||
function Request(serviceIdentifier, parentContext, parentRequest, bindings, target) {
|
||||
this.id = id_1.id();
|
||||
this.serviceIdentifier = serviceIdentifier;
|
||||
this.parentContext = parentContext;
|
||||
this.parentRequest = parentRequest;
|
||||
this.target = target;
|
||||
this.childRequests = [];
|
||||
this.bindings = (Array.isArray(bindings) ? bindings : [bindings]);
|
||||
this.requestScope = parentRequest === null
|
||||
? new Map()
|
||||
: null;
|
||||
}
|
||||
Request.prototype.addChildRequest = function (serviceIdentifier, bindings, target) {
|
||||
var child = new Request(serviceIdentifier, this.parentContext, this, bindings, target);
|
||||
this.childRequests.push(child);
|
||||
return child;
|
||||
};
|
||||
return Request;
|
||||
}());
|
||||
exports.Request = Request;
|
||||
});
|
||||
Reference in new issue
Block a user