net-feature-tests
net-feature-tests copied to clipboard
LightInject & Registration at any stage
Hi Guys,
According to the features table LightInject allows to register/override dependency at any stage, but it actually does not. Here is corresponding thread: https://github.com/seesharper/LightInject/issues/133
The reason is I didn't plan this test to cover overriding, just adding new registrations. According to the link above they do support new registrations, so that's why test passes.
I don't think overriding is possible anyway, e.g. if a singleton service already captured a dependency, overriding it later would either leave it with wrong dependency or container would need to recreate it, neither of which feels like a good option.