1 | "use strict";
|
2 | Object.defineProperty(exports, "__esModule", { value: true });
|
3 | exports.BindingInSyntax = void 0;
|
4 | const literal_types_1 = require("../constants/literal_types");
|
5 | const binding_when_on_syntax_1 = require("./binding_when_on_syntax");
|
6 | class BindingInSyntax {
|
7 | constructor(binding) {
|
8 | this._binding = binding;
|
9 | }
|
10 | inRequestScope() {
|
11 | this._binding.scope = literal_types_1.BindingScopeEnum.Request;
|
12 | return new binding_when_on_syntax_1.BindingWhenOnSyntax(this._binding);
|
13 | }
|
14 | inSingletonScope() {
|
15 | this._binding.scope = literal_types_1.BindingScopeEnum.Singleton;
|
16 | return new binding_when_on_syntax_1.BindingWhenOnSyntax(this._binding);
|
17 | }
|
18 | inTransientScope() {
|
19 | this._binding.scope = literal_types_1.BindingScopeEnum.Transient;
|
20 | return new binding_when_on_syntax_1.BindingWhenOnSyntax(this._binding);
|
21 | }
|
22 | }
|
23 | exports.BindingInSyntax = BindingInSyntax;
|
24 |
|
\ | No newline at end of file |