|
|
|
|
|
by adamconroy
3688 days ago
|
|
I was about to say the same thing as your parent. I recently had a nice feature toggle experience using a strategy pattern with DI. Basically there was one 'if' statement in the DI container configuration code that looked up a config. Basically if (newPricingStrategy)
bind IPricingStrategy to NewPricingStrategyImplementation
else
bind IPricingStrategy to OldPricingStrategyImplementation |
|