Skip to content
New issue

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

Look's like closed generic decorators broken since 3.2.2 #144

Closed
ogorodov opened this issue Sep 3, 2023 · 2 comments
Closed

Look's like closed generic decorators broken since 3.2.2 #144

ogorodov opened this issue Sep 3, 2023 · 2 comments

Comments

@ogorodov
Copy link

ogorodov commented Sep 3, 2023

Greeting.

container.RegisterSingleton(typeof(ICommand<Context>), typeof(Command<Context>));
container.RegisterDecorator(typeof(ICommand<>), typeof(Decorator<>)); // ok
container.RegisterDecorator(typeof(ICommand<Context>), typeof(Decorator<Context>)); // NOT ok since 3.2.2, but ok on 3.2.1

is that bug or i miss something?

z4kn4fein added a commit that referenced this issue Sep 4, 2023
@z4kn4fein
Copy link
Owner

Hi @ogorodov, thank you for reporting this! It's a bug that I've fixed now in 5.12.1-preview-822, could you please check that it works with that version as expected?

@ogorodov
Copy link
Author

ogorodov commented Sep 4, 2023

Yes. All good. Thank you very much.
Your DI-container is awesome!

And thank you for fast reaction. Have a nice day.

@ogorodov ogorodov closed this as completed Sep 4, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants