We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hey!
I was wondering if there's a way to register decorators in a “SimpleInjector-ish” way?
For example, like:
type SomeCommandHandler = CommandHandler<SomeCommand> class SomeHandler implements SomeCommandHandler { /*...*/ } class WithLogger implements SomeCommandHandler { /*...*/ } class WithProfiler implements SomeCommandHandler { /*...*/ } container.registerSingleton<SomeCommandHandler, SomeHandler>(); container.registerDecorator<SomeCommandHandler, WithLogger>(); container.registerDecorator<SomeCommandHandler, WithProfiler>();
I tried searching the docs and playing with “workarounds” by renaming types for decorators but didn't find anything that would work and look nicely.
P.S. Thanks for the library! :–)
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Hey!
I was wondering if there's a way to register decorators in a “SimpleInjector-ish” way?
For example, like:
I tried searching the docs and playing with “workarounds” by renaming types for decorators but didn't find anything that would work and look nicely.
P.S. Thanks for the library! :–)
The text was updated successfully, but these errors were encountered: