You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm currently using request scopes on my project and I'd like to start using the decorators, but it seems there is no support for request scope in the library.
Expected Behavior
I'd like to use the request scope on the decorated classes.
Current Behavior
The class ProvideInSyntax just has methods for singleton and transient scope, but no support for request scope.
Possible Solution
Add a new method to this class to support in request scope
public inRequestScope(): interfaces.ProvideWhenOnSyntax<T> {
let bindingWhenOnSyntax = (bind: inversifyInterfaces.Bind, target: any) => this._bindingInSyntax(bind, target).inRequestScope();
let inDoneSyntax = new ProvideDoneSyntax(bindingWhenOnSyntax);
let provideWhenSyntax = new ProvideWhenSyntax<T>(bindingWhenOnSyntax, inDoneSyntax);
let provideOnSyntax = new ProvideOnSyntax<T>(bindingWhenOnSyntax, inDoneSyntax);
return new ProvideWhenOnSyntax(provideWhenSyntax, provideOnSyntax);
}
The text was updated successfully, but these errors were encountered:
Summary:
I'm currently using request scopes on my project and I'd like to start using the decorators, but it seems there is no support for request scope in the library.
Expected Behavior
I'd like to use the request scope on the decorated classes.
Current Behavior
The class ProvideInSyntax just has methods for singleton and transient scope, but no support for request scope.
Possible Solution
Add a new method to this class to support in request scope
The text was updated successfully, but these errors were encountered: