c# - Resolving a type with Structuremap at runtime through a configurable option -


i not have experience di yet, have project have 2 implementations of interface , want able switch between them after application has been compiled. assumed xml config natural choice has been deprecated in current release of structuremap.

the code uses hard coded concrete name of 1 of implementations assigns interface, not have code edit implement injection, few places instance new'ed up. not see how configure ability 1 or other after app compiled.

what preferred pattern accomplish after compilation?


Comments

Popular posts from this blog

html - Styling progress bar with inline style -

java - Oracle Sql developer error: could not install some modules -

How to use autoclose brackets in Jupyter notebook? -