Gustavo Santos
Gustavo Santos
Hello @nilpunch, sorry for the big delay, I have a lot to do recently on my job plus im moving to a new apartment, so at the end of the...
Hello @nilpunch I just started reviewing it finally xD. Do you mind sharing a tiny, but complete use case of the decorator feature you implemented? Because from your example above...
@nilpunch A more complete example will not be necessary, I saw that microsoft DI solution also now accepts this type of pattern implementation and was easy to understand the expected...
@nilpunch `What will also be great, if you can add multiple layers of decoration to one type` This is exactly what I want to be able to achieve, something that...
@nilpunch Can you reach me on discord?
@nilpunch I've added decoration support on main branch, note that I havent done a release yet as I want to add some more changes, but you can already use this...
@nilpunch Hmm I see, as AddDecorator is a method from ContainerDescriptor, it decorates all currently binded services without knowing to decorate a specific binding. So in this case Number(10) will...
@nilpunch Your design can already be achieved by the following, what do you think? ```csharp [Test] public void Decorate_CanNestDecorators() { var numberOne = new ContainerDescriptor("1") .AddSingleton(Number.FromValue(10), typeof(INumber)) .AddDecorator(typeof(DoubledNumber), typeof(INumber)) .AddDecorator(typeof(DoubledNumber),...
@nilpunch I have been thinking here, but I cannot think nothing other than keying the descriptors, so when adding a decorator you would have the option to decorate a keyed...
@nilpunch Do you have any plans to continue on this topic of adding decoration support as a plugin as we discussed?