Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Injecting AppSettings from code using Windsor 3

I'm looking for ways of getting rid of Windsor Xml configuration files. I want to leave only necessary settings (mostly strings) and move them to AppSettings.

Is there a good way to do it? Preferably without manual mapping between AppSettings and dependencies (ctor params).

I don't mind implementing something for this to happen but I want to minimize boilerplate code of the actual business-problem-solving application.

like image 418
Kostassoid Avatar asked Aug 28 '26 00:08

Kostassoid


1 Answers

You can configure dependency on AppSettings.

like image 120
Aleš Roubíček Avatar answered Aug 30 '26 14:08

Aleš Roubíček



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!