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

Django REST Framework perform_create: You cannot call `.save()` after accessing `serializer.data` -

Why does Go error when trying to marshal this JSON? -