Is it possible to “inject” a .NET dll into another .NET application, by way of app.config perhaps?

This had me puzzled for a while on how to do it. I originally thought it could be achieved by creating a custom WebProxy that would configure the logging, and loading it into the main application using the defaultProxy configuration element. This however suffer from the same problem as the other configuration suggestions in that the code is only run when required (in this case when a HTTP request is used) - thus requiring a change to the original application.

It would probably be considered a hack, but if you put something that inherits ConfigurationSection in your dll, and add that configuration section to your app. Config, this would allow you to execute the code in the configuration section's constructor and thus do pretty much what you want to. It will of course only be invoked once, at application start-up but if I understood you correct that would be enough.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions