z4kn4fein / stashbox

A lightweight, fast, and portable dependency injection framework for .NET-based solutions.

Home Page:https://z4kn4fein.github.io/stashbox

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Look's like closed generic decorators broken since 3.2.2

ogorodov opened this issue · comments

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?

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?

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

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