mikeobrien / WebApi.StructureMap

Web API StructureMap Integration
MIT License
12 stars 5 forks source link

Ability to configure Container after initialization #8

Open bpashkovskyi opened 5 years ago

bpashkovskyi commented 5 years ago

Is there any ability to configure Container after initialization. As I see in source in extensions dependency resolver is created each time we use Extensions method and we can't append any configuration without overwriting

mikeobrien commented 5 years ago

Sorry for the late reply. You should be able to get IContainer from the dependency resolver, then you can modify the container. Or you can define the container before initializing Web Api and reference it elsewhere to config it.