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
{{ message }}
Repository navigation
Can anybody tell me why I only get one object in the accumulator? #68
The accumulator contains one object, because in fact one object of ISetupStep type was created.
To embed two objects you can embed a collection as in the example below. Also you have an error in the line .Bind<ISetupStep>().As(Lifetime.Transient).To<CoreSetupStep>() you have overridden the binding .Bind<ISetupStep>().As(Lifetime.Transient).To<LoadConfigs>() with a new one, the generator warned about it. To add a new one it can be labelled with some tag, in the example below it is ‘abc’.
Activity
NikolayPianikov commentedon Aug 14, 2024
The accumulator contains one object, because in fact one object of ISetupStep type was created.
To embed two objects you can embed a collection as in the example below. Also you have an error in the line
.Bind<ISetupStep>().As(Lifetime.Transient).To<CoreSetupStep>()you have overridden the binding.Bind<ISetupStep>().As(Lifetime.Transient).To<LoadConfigs>()with a new one, the generator warned about it. To add a new one it can be labelled with some tag, in the example below it is ‘abc’.UMDev-Brian commentedon Aug 14, 2024
Thanks for the explanation! That makes a lot of sense. I will make the relevant changes.