CodePlexProject Hosting for Open Source Software
Let's say I have some configuration in my application such as host and port of the server. I would like to inject host and port configuration into my connection object to the server. How can this be done best with MEF?
I'm thinking about having a connection builder class that will wrap the creation of the connection.
this builder can have it's own Import for the configuration injection and with that knowledge you will
be able of building the concrete connection
For this one, I resolved it by having an interface exposing all the configurations and having all classes needed the configuration to refer to this interface.
Are you sure you want to delete this post? You will not be able to recover it later.
Are you sure you want to delete this thread? You will not be able to recover it later.