net-feature-tests icon indicating copy to clipboard operation
net-feature-tests copied to clipboard

LightInject & Registration at any stage

Open yahorsi opened this issue 7 years ago • 1 comments

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

yahorsi avatar Apr 22 '17 14:04 yahorsi

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.

ashmind avatar May 05 '17 23:05 ashmind