SB-6.1-PRE
This commit is contained in:
1 parent
690169a409
commit
358a25f522
3760 files changed
+300059
-36
No files matched your search
+23
@@ -0,0 +1,23 @@
|
||||
define(["require", "exports", "../constants/literal_types", "./binding_when_on_syntax"], function (require, exports, literal_types_1, binding_when_on_syntax_1) {
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
var BindingInSyntax = (function () {
|
||||
function BindingInSyntax(binding) {
|
||||
this._binding = binding;
|
||||
}
|
||||
BindingInSyntax.prototype.inRequestScope = function () {
|
||||
this._binding.scope = literal_types_1.BindingScopeEnum.Request;
|
||||
return new binding_when_on_syntax_1.BindingWhenOnSyntax(this._binding);
|
||||
};
|
||||
BindingInSyntax.prototype.inSingletonScope = function () {
|
||||
this._binding.scope = literal_types_1.BindingScopeEnum.Singleton;
|
||||
return new binding_when_on_syntax_1.BindingWhenOnSyntax(this._binding);
|
||||
};
|
||||
BindingInSyntax.prototype.inTransientScope = function () {
|
||||
this._binding.scope = literal_types_1.BindingScopeEnum.Transient;
|
||||
return new binding_when_on_syntax_1.BindingWhenOnSyntax(this._binding);
|
||||
};
|
||||
return BindingInSyntax;
|
||||
}());
|
||||
exports.BindingInSyntax = BindingInSyntax;
|
||||
});
|
||||
Reference in new issue
Block a user